Community news, upcoming events and general discussions
Threads: 36 Posts: 88
Get technical support from the community
Threads: 1427 Posts: 7608
Threads: 18 Posts: 64
Tell us how to make XDK better!
Threads: 36 Posts: 119
Share and discuss community member projects
Threads: 81 Posts: 350
I tried to compile the MQTT_Paho code after making the necessary changes in the paho source files and also including the platform but it gave me an error in the make file.
I want the data onto the ibm cloud and so need the paho client to work.
It gives me the folowing error on compilation:
application.mk:75: *** mixed implicit and normal rules. Stop. Makefile:50: recipe for target 'debug' failed mingw32-make: *** [debug] Error 2
Please help me resolve the issue,
Thanks in advance.
I’m not quite sure, what went wrong when making the necessary changes. But we provide an example where all the changes are made, see here.
Please take care about your workbench version. The example is currently only available for the workbench 1.5.1 and lower. If you try to run it on the newest workbench version 1.5.2 it will fail because of FreeRTOS changes.
We will realese an updated version of the example soon.
Kind regards, Manuel
Thanks for the reply.
I am using the 1.5.2 version of the workbench. I will try to run on a testbench with lower version and guess should run fine as suggested by you.
I was only able to find the 1.3.0 version of the XDK on the website and I tried to run the MQTT paho project in the same but was facing the same error as before.
make\mingw32-make.exe: *** C:\XDK-Workbench\1.30\SDK/xdk110/Common: No such file or directory. Stop. mingw32-make: *** [debug] Error 2 Makefile:50: recipe for target 'debug' failed
Can you please suggest where can i download the 1.5.1 version from?
Is it okay if I have both the versions installed on my computer or do i need to uninstall the latest version?
Thanks and Regards,
Hello Parth, I’m really sorry, but the example doesn’t run on 1.3 either, because the project structure changed between 1.3 to 1.5. Maybe my reply was not clear enough. The example was developed for workbench 1.5 and only runs on the workbench 1.5 and 1.5.1. I will ask if we can provide you a download to one of the workbench versions, till we have updated the example. Kind regards, Manuel
The code on the website should compile with version 1.5.2. This code has been updated to be compatible with the latest workbench. From the error you are showing me, I am lead to believe the code is not being imported into the workbench correctly. Please follow this tutorial to import the project into the workbench.
If this is still giving you and error please let me know and I will can move forward from there.
Thanks for the information. I tried to build the project on Woekbench version 1.5.2 and still was not able to do it.
I got the following error.
11:32:29 **** Build of configuration Default for project MQTT_Paho **** mingw32-make -j debug C:/XDK-Workbench/make\mingw32-make.exe -C C:\XDK-Workbench\SDK/xdk110/Common -f application.mk debug make\mingw32-make.exe: Entering directory 'C:/XDK-Workbench/SDK/xdk110/Common' application.mk:75: *** mixed implicit and normal rules. Stop. make\mingw32-make.exe: Leaving directory 'C:/XDK-Workbench/SDK/xdk110/Common' mingw32-make: *** [debug] Error 2 Makefile:50: recipe for target 'debug' failed
I am sure i am importing the projet as per the tutorial as my IOT _suite works fine.
Please let me know what additional steps are required for my MQTT_Paho to compile.
No additional steps should be required. I just started with a blank slate on my computer and following the MQTT Paho turtorial, I redownloaded the XDK code from the website. Downloaded the paho code. Moved the paho files over. Imported the project. Edited the MQTTClient.h file and then was able to compile the code without any issue. So I cannot replicate this issue. My thought is that somehow the properties of your project are not set up properly. Since you have a working IoT Suite code, I would look at the project properites of the IoT Suite and compare it to the properties of the Paho code. These should be the same, except where the properties point to the specific project of course (in other words some of the properties point to project specific paths so the Bosch IoT Suite will point to Bosch IoT Suite path and the MQTT_Paho properties will point to MQTT_Paho path). Please let me know if you see any differences.
Also could you run the clean project once for me and let me know if you run into any errors with that?
Thank you, Christopher
I tried to clean the project and tried compiling it but i am still facing the same error.
I compared the properties of the BOSCH_IOT_Suite and MQTT_Paho and found that all the properties were same except the include directories inside paths and Symbols under c/c++ ( i guess that are supposed to be).
THe error I got is :
The log file attached is the error I get when i load the code ad compile from https://github.com/appropos-de/mqtt-paho
Please let me know the reason and the solution of the same.
Hello Parth, the code at https://github.com/appropos-de/mqtt-paho simply includes the source changes that need to be made, based on the mqtt example of https://xdk.bosch-connectivity.com/documentation and wasn’t updated to the workbench version 1.5.2. It should work now, please try again and tell me if it compiles successfully. Note that you still need to make your own network and ID settings in mqttConfig.h. Kind regards, Manuel