Community news, upcoming events and general discussions
Threads: 36 Posts: 88
Get technical support from the community
Threads: 1407 Posts: 7538
Threads: 18 Posts: 64
Tell us how to make XDK better!
Threads: 36 Posts: 119
Share and discuss community member projects
Threads: 78 Posts: 343
i am new here and i have a problem to complie the demo project mqtt ibm broker.
I think it is not a problem of the project, it is a problem with the workbench.
The workbench didn't work proper with spaces in path names. does anybody know this problem?
What can i do?
Here is the error message i got from the workbench:
13:08:32 **** Incremental Build of configuration Default for project MQTT IBM **** mingw32-make debug C:/Program Files/XDK-Workbench/make\mingw32-make.exe -C C:\Program Files\XDK-Workbench\SDK/xdk110/Common -f application.mk debug make\mingw32-make.exe: Entering directory 'C:/Program' make\mingw32-make.exe: application.mk: No such file or directory make\mingw32-make.exe: Leaving directory 'C:/Program' make\mingw32-make.exe: *** No rule to make target 'application.mk'. Stop. mingw32-make: *** [debug] Error 2 Makefile:50: recipe for target 'debug' failed
13:08:33 Build Finished (took 600ms)
Hello Frank, welcome to the XDK community. The white spaces in path names is a known issue in the workbench. We recommend to install the workbench directly to: C:/XDK-Workbench Don’t forget to make PAHO source changes, otherwise the demo won’t compile anyway. Kind regards Manuel
what do you mean with
"Don’t forget to make PAHO source changes, otherwise the demo won’t compile anyway."
I have installed the workbench new. Now i get the following error:
07:55:33 **** Build of configuration Default for project MQTT IBM **** mingw32-make 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. mingw32-make: *** [debug] Error 2 make\mingw32-make.exe: Leaving directory 'C:/XDK-Workbench/SDK/xdk110/Common' Makefile:50: recipe for target 'debug' failed
07:55:34 Build Finished (took 574ms)
What can i do?
if you download the MQTT PAHO Demo, you need to make required source changes. The demo requires some additional interfaces to be placed in the project files.
There is a description how to get the demo running here. See 1.1.
Your error just tells, that the build failed.
Kind regards, Manuel
thanks a lot for your help.
I have done this code changes, than i compliled the project and get this error.
I dndn't know what i should do now.
I hopped that i can use the MQTT demo project just out of the box to use the XDK, but i think this is not possible.
Hi Frank, it’s difficult to say, witch step in the source changes failed. So I decided to share my code with you: https://github.com/appropos-de/mqtt-paho.git In this repository I already did the required includes for compiling. You can simply clone and import it in the workbench. But you still need to make the configuration of your own network settings ( Paho-Guide 1.2). Tell me, if you get your code working. Kind regards, Manuel
i have the same problem. but i know that the inclueds are empty and somehow the includes can not be found therefore the header files can not be found.
i installed the SDK on the C: directly. i can not solve the problem as well
How are you importing the project into the XDK Workbench? I see that it is trying to compile MQTT IBM, this should not be the name of the project, out of the box it should be MQTT_Paho. Did you change this name, or create it through the import process?
To import the project please follow the instructions here:
If the import process is not followed correctly the project will not properly bring in the projects properties and this looks like the issue you are facing.
Please see my reply to Frank on how to import the project and please read and follow the tutorial instructions for the MQTT demo. The tutorial file instructs you to download the paho source code and also instructs you how and where to edit this source code to link the XDK platform to the paho code.
i did the way you told me to do. i still have the same problem.
i dont want to compile MQTT edmo. last year when i was working with the XDK i could run any demo program provided. i think maybe after new update something has changed. right now except one demo for LED band button the other ones dont compile because headers like
thank you very much. The import was the problem. Now the demo project compiles.
i installed the XDK again and this time worked with no pronlem.
later i understood that projects which i was importing where not compelet !
Hello Arash and Frank, Great to hear that you got it working! And Big thanks to Chris for solving this issue. I will close this thread now. Kind regards, Manuel