This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CCS/CC3200: Can't Build MQTT Library Project

Part Number: CC3200

Tool/software: Code Composer Studio

I'm trying to build the mqtt library project in CCS because I want to build the MQTT Client example in my CC3200 launch Pad. However, I get the following error message below. Thank you for your help in advanced.


**** Build of configuration client__TI for project mqtt ****

"C:\\Users\\David\\Documents\\ti\\ccsv8\\utils\\bin\\gmake" -k -j 4 all -O

Building file: "C:/Users/David/Documents/ti/CC3200SDK_1.3.0/cc3200-sdk/netapps/mqtt/client/mqtt_client.c"
Invoking: ARM Compiler
"C:/Users/David/Documents/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/bin/armcl" -mv7M4 --code_state=16 --float_support=FPv4SPD16 -me -O2 --include_path="C:/Users/David/Documents/ti/CC3200SDK_1.3.0/cc3200-sdk/netapps/mqtt/ccs" --include_path="C:/Users/David/Documents/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include" --define=cc3200 --diag_warning=225 --diag_wrap=off --display_error_number --abi=eabi --preproc_with_compile --preproc_dependency="mqtt_client.d_raw" "C:/Users/David/Documents/ti/CC3200SDK_1.3.0/cc3200-sdk/netapps/mqtt/client/mqtt_client.c"

>> Compilation failure
subdir_rules.mk:23: recipe for target 'mqtt_client.obj' failed
gmake: *** No rule to make target 'C:/Users/David/Documents/ti/CC3200SDK_1.3.0/cc3200-sdk/netapps/mqtt/platform/cc31xx_sl_net.c', needed by 'cc31xx_sl_net.obj'.
gmake: *** No rule to make target 'C:/Users/David/Documents/ti/CC3200SDK_1.3.0/cc3200-sdk/netapps/mqtt/platform/cc3200_platform.c', needed by 'cc3200_platform.obj'.
"C:\Users\David\Documents\ti\CC3200SDK_1.3.0\cc3200-sdk\netapps\mqtt\client\mqtt_client.h", line 76: fatal error #1965: cannot open source file "mqtt_common.h"
1 catastrophic error detected in the compilation of "C:/Users/David/Documents/ti/CC3200SDK_1.3.0/cc3200-sdk/netapps/mqtt/client/mqtt_client.c".
Compilation terminated.
gmake: *** [mqtt_client.obj] Error 1
Building file: "C:/Users/David/Documents/ti/CC3200SDK_1.3.0/cc3200-sdk/netapps/mqtt/sl/sl_mqtt_client.c"
Invoking: ARM Compiler
"C:/Users/David/Documents/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/bin/armcl" -mv7M4 --code_state=16 --float_support=FPv4SPD16 -me -O2 --include_path="C:/Users/David/Documents/ti/CC3200SDK_1.3.0/cc3200-sdk/netapps/mqtt/ccs" --include_path="C:/Users/David/Documents/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include" --define=cc3200 --diag_warning=225 --diag_wrap=off --display_error_number --abi=eabi --preproc_with_compile --preproc_dependency="sl_mqtt_client.d_raw" "C:/Users/David/Documents/ti/CC3200SDK_1.3.0/cc3200-sdk/netapps/mqtt/sl/sl_mqtt_client.c"

>> Compilation failure
subdir_rules.mk:37: recipe for target 'sl_mqtt_client.obj' failed
"C:/Users/David/Documents/ti/CC3200SDK_1.3.0/cc3200-sdk/netapps/mqtt/sl/sl_mqtt_client.c", line 16: fatal error #1965: cannot open source file "sl_mqtt_client.h"
1 catastrophic error detected in the compilation of "C:/Users/David/Documents/ti/CC3200SDK_1.3.0/cc3200-sdk/netapps/mqtt/sl/sl_mqtt_client.c".
Compilation terminated.
gmake: *** [sl_mqtt_client.obj] Error 1
Building file: "C:/Users/David/Documents/ti/CC3200SDK_1.3.0/cc3200-sdk/netapps/mqtt/common/mqtt_common.c"
Invoking: ARM Compiler
"C:/Users/David/Documents/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/bin/armcl" -mv7M4 --code_state=16 --float_support=FPv4SPD16 -me -O2 --include_path="C:/Users/David/Documents/ti/CC3200SDK_1.3.0/cc3200-sdk/netapps/mqtt/ccs" --include_path="C:/Users/David/Documents/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include" --define=cc3200 --diag_warning=225 --diag_wrap=off --display_error_number --abi=eabi --preproc_with_compile --preproc_dependency="mqtt_common.d_raw" "C:/Users/David/Documents/ti/CC3200SDK_1.3.0/cc3200-sdk/netapps/mqtt/common/mqtt_common.c"

>> Compilation failure
subdir_rules.mk:30: recipe for target 'mqtt_common.obj' failed
"C:\Users\David\Documents\ti\CC3200SDK_1.3.0\cc3200-sdk\netapps\mqtt\common\mqtt_common.h", line 47: fatal error #1965: cannot open source file "platform.h"
1 catastrophic error detected in the compilation of "C:/Users/David/Documents/ti/CC3200SDK_1.3.0/cc3200-sdk/netapps/mqtt/common/mqtt_common.c".
Compilation terminated.
gmake: *** [mqtt_common.obj] Error 1
gmake: Target 'all' not remade because of errors.

**** Build Finished ****

  • Hi David,

    You seem to be missing the below include search path:

    "${CC3200_SDK_ROOT}/netapps/mqtt/platform/"

    I tried importing the mqtt project and I see several issues with that project in regards to include search paths and broken links.

    I imported mqtt_client project and that one builds fine. I am not sure what is going on with the mqtt project (or if it supposed to be used). The examples come from the device group so you may want to check with them in the Wi-Fi forum. I suspect it may be a deprecated project.

    Thanks

    ki

  • Hello David,

    I hope mqtt_client project is good for your needs.
    If you really need mqtt I will try to help.
    Which mqtt broker do you use?
  • Hi Ki, Solved the issue by right clicking on the two files that were missing and re-entered loaction.
    Thanks for your help,