Can't complie the MQTT project
응답
16. 5. 31 오전 10:52

Hello community,

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[1]: Entering directory 'C:/Program'
make\mingw32-make.exe[1]: application.mk: No such file or directory
make\mingw32-make.exe[1]: Leaving directory 'C:/Program'
make\mingw32-make.exe[1]: *** 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)

 

Best regards

Frank

0 (0 투표)
RE: Can't complie the MQTT project
응답
16. 5. 31 오전 11:27 as a reply to Frank Benkart.

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

0 (0 투표)
RE: Can't complie the MQTT project
응답
16. 6. 1 오전 4:10 as a reply to Manuel Cerny.

Hello 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[1]: 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[1]: 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?

Best regards

Frank

0 (0 투표)
RE: Can't complie the MQTT project
응답
16. 6. 1 오전 7:44 as a reply to Frank Benkart.

Hi Frank,

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

0 (0 투표)
RE: Can't complie the MQTT project
응답
16. 6. 1 오전 9:04 as a reply to Manuel Cerny.

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

Best regards

Frank

0 (0 투표)
RE: Can't complie the MQTT project
응답
16. 6. 1 오전 11:19 as a reply to Frank Benkart.

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

0 (0 투표)
RE: Can't complie the MQTT project
응답
16. 6. 1 오후 12:41 as a reply to Manuel Cerny.

Hi everybody,

 

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  

 

Arash

0 (0 투표)
RE: Can't complie the MQTT project
응답
16. 6. 1 오후 1:42 as a reply to Frank Benkart.

Frank,

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:

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

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.


Christopher Koch

0 (0 투표)
RE: Can't complie the MQTT project
응답
16. 6. 1 오후 1:44 as a reply to Arash Eftekhar.

Arash,

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.

Christopher Koch

0 (0 투표)
RE: Can't complie the MQTT project
응답
16. 6. 2 오전 5:41 as a reply to Christopher Koch.

Hi Christopher,

 

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 

 "BST_support.h"

"xdk_sensors.h"

...

are missing

 

0 (0 투표)
RE: Can't complie the MQTT project
응답
16. 6. 2 오전 6:09 as a reply to Christopher Koch.

Hello Christopher,

thank you very much. The import was the problem. Now the demo project compiles.

Best regards

Frank

0 (0 투표)
RE: Can't complie the MQTT project
응답
16. 6. 2 오전 7:04 as a reply to Frank Benkart.

Hello Christopher,

i installed the XDK again and this time worked with no pronlem.

later i understood that projects which i was importing where not compelet !

Thnx anyway

0 (0 투표)
RE: Can't complie the MQTT project
응답
16. 6. 2 오전 9:47 as a reply to Arash Eftekhar.

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

0 (0 투표)