Not able to compile MQTT_Paho
응답
16. 6. 22 오후 5:16

Hello,

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.

 

Regards,

Parth Desai

0 (0 투표)
RE: Not able to compile MQTT_Paho
응답
16. 6. 23 오전 7:08 as a reply to Parth Desai.

Hello Parth,

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

0 (0 투표)
RE: Not able to compile MQTT_Paho
응답
16. 6. 23 오후 8:48 as a reply to Manuel Cerny.

Hey 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.

 

Regards,

Parth Desai

 

0 (0 투표)
RE: Not able to compile MQTT_Paho
응답
16. 6. 24 오후 7:01 as a reply to Parth Desai.

Hey Manuel,

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,

Parth Desai

0 (0 투표)
RE: Not able to compile MQTT_Paho
응답
16. 6. 27 오전 9:09 as a reply to Parth Desai.

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

0 (0 투표)
RE: Not able to compile MQTT_Paho
응답
16. 6. 27 오후 2:41 as a reply to Manuel Cerny.

Parth,

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.

https://xdk.bosch-connectivity.com/importing-a-project

If this is still giving you and error please let me know and I will can move forward from there.

Christopher

0 (0 투표)
RE: Not able to compile MQTT_Paho
응답
16. 6. 27 오후 4:36 as a reply to Christopher Koch.

Hey Christopher,

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[1]: Entering directory 'C:/XDK-Workbench/SDK/xdk110/Common'
application.mk:75: *** mixed implicit and normal rules.  Stop.
make\mingw32-make.exe[1]: 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.

Regards,

Parth Desai

 

 

0 (0 투표)
RE: Not able to compile MQTT_Paho
응답
16. 6. 27 오후 5:26 as a reply to Parth Desai.

Parth,

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

0 (0 투표)
RE: Not able to compile MQTT_Paho
응답
16. 6. 28 오전 12:25 as a reply to Christopher Koch.

Hello,

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 :

18:57:58 **** Incremental 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[1]: Entering directory 'C:/XDK-Workbench/SDK/xdk110/Common'
application.mk:75: *** mixed implicit and normal rules.  Stop.
make\mingw32-make.exe[1]: Leaving directory 'C:/XDK-Workbench/SDK/xdk110/Common'
Makefile:50: recipe for target 'debug' failed
mingw32-make: *** [debug] Error 2
 
18:57:58 Build Finished (took 74ms)
 

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.

Regards,

Parth Desai

 

 

 

 

 

0 (0 투표)
RE: Not able to compile MQTT_Paho
응답
16. 6. 28 오전 7:17 as a reply to Parth Desai.

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

0 (0 투표)
RE: Not able to compile MQTT_Paho
응답
16. 6. 28 오후 3:26 as a reply to Manuel Cerny.

Hello 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.

Regards,

Parth Desai

 

 

0 (0 투표)
RE: Not able to compile MQTT_Paho
응답
16. 6. 28 오후 3:59 as a reply to Parth Desai.

Parth,

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.

Thank you, Christopher

0 (0 투표)
RE: Not able to compile MQTT_Paho
응답
16. 6. 28 오후 4:03 as a reply to Christopher Koch.

Christopher,

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.

Regards,

Parth

 

0 (0 투표)
RE: Not able to compile MQTT_Paho
응답
16. 6. 28 오후 4:13 as a reply to Parth Desai.

Parth,

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.

Christopher

0 (0 투표)
RE: Not able to compile MQTT_Paho
응답
16. 6. 28 오후 10:32 as a reply to Christopher Koch.

Christopher,

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.

Regards,

Parth Desai

0 (0 투표)
RE: Not able to compile MQTT_Paho
응답
16. 6. 29 오전 9:13 as a reply to Parth Desai.

Parth,

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.

- Manuel

0 (0 투표)
RE: Not able to compile MQTT_Paho
응답
16. 6. 29 오후 3:06 as a reply to Manuel Cerny.

Manuel,

Thanks for all the support.

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

 

10:02:03 **** 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[1]: Entering directory 'C:/XDK-Workbench/SDK/xdk110/Common'
application.mk:75: *** mixed implicit and normal rules.  Stop.
make\mingw32-make.exe[1]: Leaving directory 'C:/XDK-Workbench/SDK/xdk110/Common'
mingw32-make: *** [debug] Error 2
Makefile:50: recipe for target 'debug' failed
 
10:02:05 Build Finished (took 2s.312ms)

 

It could be great if I get a stable release of the code it would be great for development over it.

Regards,

Parth Desai 

 
 

 

0 (0 투표)
RE: Not able to compile MQTT_Paho
응답
16. 6. 30 오전 9:22 as a reply to Parth Desai.

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

0 (0 투표)
RE: Not able to compile MQTT_Paho
응답
16. 6. 30 오후 5:00 as a reply to Manuel Cerny.

Hello 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.

Regards,

Parth Desai

0 (0 투표)
RE: Not able to compile MQTT_Paho
응답
16. 7. 1 오전 6:48 as a reply to Parth Desai.

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

0 (0 투표)