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
I tried to download the latest MQTT_Paho code from github but was still not able to build it. The screenshot of my XDK is attached for your reference. I tried to build my BOSCH_IOT_Suite code and it works fine.
Please let me know what can be done as I am sure I am following the correct procedure to import the code.
Let me know if any other changes are to be made apart from my Network settings.
Please do let me know if any other files or logs are needed from my side so that you can help me debug this issue.
Have you been using the code from github this whole time, or have you also had trouble with the code provided on this website? If you have been using github this whole time, please download the code from this website and let me know if you are still running into issues.
I have been using the code from the website this whole time. I tried to download the updated code from github today and I still was not able to build the code. I was gettig the same error.
The error indicates that the issue is not with any specific line of code, or with any missing files. The error is occuring with the compiler settings or the project properties itself. Since I cannot replicate this issue, my next suggestion would be to completely uninstall and delete all rememnants of the XDK Workbench and reinstall it again. This should sync the project properties back up correctly if they somehow become corrupted in the past.
I uninstalled the XDK workbench and then reinstalled it and now I am able to run the project that I downloaded from github. I still get the same error if I try to run the code available on the website.
I guess the code on the website is not updated yet.
Thanks for all the support.
the code on github is based on the code that is available in the download section of the community. I guess there was a mistake when making the source changes. But I’m glad to hear that it is working now.
Please tell me if you have further questions.
The code on github has the debug already created which has the object files created. When I use the code from the dowload section of the community and use the sources of the githb code I still get the erroe as given below
It could be great if I get a stable release of the code it would be great for development over it.
Hello Parth, “debug failed” means, that the workbench was unable to build the binaries of the project. The code on github is based on the code of the download section, and won’t work, if the other one wouldn’t either. As I said before, the code on gibthub only makes the source changes that are described in the documentation of the mqtt tutorial that you can find in 1 and 1.1. You don’t need to make the changes any more, but you can try to reproduce it, of course. You can simply develop based on the code on github. Otherwise, please follow exactly the instructions in the mqtt tutorial. I liked it for you below. Kind regards, Manuel
Thanks for the information. I have been following the exact steps from day one but even today when I tried to download the code from the community and make the necssary changes and try to build it, i got the same error. Then I tried to delete that code and import the one from github with the debug created already, it worked fine.
I do not know what might be the problem with the source code on the community as I tried to compare all the files and they are exatly identical.
Please let me know if I can send any log files or screen shot so that you can help me debug it.
Hello Parth, the log file won’t be enough to determine where the problem will be with the source files. I would like to see all project files. Would you be so kind and post your email in here? I will contact you to send me your broken project. Kind regards, Manuel