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.

RTOS/SIMPLELINK-CC3220-SDK: Failed to compile rtos demo mqtt_client with GCC

Part Number: SIMPLELINK-CC3220-SDK

Tool/software: TI-RTOS

Hi!

I'm trying to compile the RTOS demo app mqtt_client with GCC, but it fails due to mqttserver.h is missing.I'm using SDK 2.40.01.01. What have I missed?

From the output:

usr@comp:/opt/ti/simplelink_cc32xx_sdk_2_40_01_01/examples/rtos/CC3220SF_LAUNCHXL/demos/mqtt_client/tirtos/gcc$ make
Building uart_term.obj
Building ti_drivers_net_wifi_Config.obj
Building main_tirtos.obj
Building CC3220SF_LAUNCHXL.obj
Building network_if.obj
Building client_cbs.obj
In file included from ../../client_cbs.c:50:0:
../../client_cbs.h:48:10: fatal error: ti/net/mqtt/mqttserver.h: No such file or directory
 #include <ti/net/mqtt/mqttserver.h>
          ^~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
makefile:95: recipe for target 'client_cbs.obj' failed
make: *** [client_cbs.obj] Error 1

I've searched for the mqttserver.h in the installed path, but without any success. I've also imported the project in CCV8 and tried to compile it there, no success. Same issue, mqttserver.h seems missing.

Br / Fredrik

  • Hi Fredrik,

    I'm not having issues building the mqtt_client TI-RTOS GCC example in SDK 2.40.1.01. I simply imported project from SDK directory with the copy projects into workspace box checked. This is important because if you ever make changes to the example it won't effect the original in the SDK that should work.

    Could you navigate to your SDK root directory in file explorer and confirm mqtt_server.h is there? It should be in SDK_ROOT/source/ti/net/mqtt/mqtt_server.h.

    Also, to confirm your project is using the correct SDK, right click on project->properties->general->products and verify SDK 2.40.1.01 is checked.

    Jesu

  • Hi Jesu,

    thanks for at fast answer.

    After reinstalling the sdk I can see the mqttserver.h. I must have deleted it without my knowledge.

    You can close the case now. :)

    Br / Fredrik