Hi All,

After using latest MQTT Paho project from https://xdk.bosch-connectivity.com/demos and

Makefile has error in Line 50, hence no out and bin file generated. If comment off line 50, no out. no bin file generated either.

The workbench is installed under c:\ directly.

Description Resource Path Location Type
make\mingw32-make.exe[1]: *** No rule to make target 'C:/XDK-Workbench/workspace/MQTT_Paho/debug/objects/paho/MQTTClient.o', needed by 'C:/XDK-Workbench/workspace/MQTT_Paho/debug/XDK_PAHO_DEMO.out'.  Stop. MQTT_Paho    C/C++ Problem
make\mingw32-make.exe[1]: *** Waiting for unfinished jobs.... MQTT_Paho    C/C++ Problem
mingw32-make: *** [debug] Error 2 MQTT_Paho    C/C++ Problem
recipe for target 'debug' failed Makefile /MQTT_Paho line 50 C/C++ Problem

Any hint would be very much appreciated!

Ms. Zhu

0 (0 Votes)
RE: Makefile line 50 error for MQTT Paho IBM IoT Demo
Answer
5/18/17 3:35 PM as a reply to Bochun Zhu.

Hello Bochun,

I tried to reproduce your issue regarding the MQTT paho demo. Unfortunately I was not able to reproduce it by following the instructions of the getting started guide of the MQTT paho demo.

Therefore I would ask you to delete the project in the project explorer of the XDK Workbench.

I wrote down all necessary steps to build the MQTT paho demo without issues, for you. Please follow them and then it should work without issues.

1. Download the latest MQTT paho demo from the XDK community and download the latest MQTT package from http://git.eclipse.org/c/paho/org.eclipse.paho.mqtt.embedded-c.git/.
2. Extract the files of the downloaded zip file from http://git.eclipse.org/c/paho/org.eclipse.paho.mqtt.embedded-c.git/.  Then navigate to the MQTTPacket/src folder and copy all files to the paho folder in the source folder of the MQTT paho demo project.
3. Afterwards go to the previously extracted MQTTClient-C/src folder and copy the MQTTClient.h and MQTTClient.c files to the paho folder in the source folder of the MQTT paho demo project.
4. Import the MQTT paho demo project and open MQTTClient.h and add #include "mqttXDK.h" as the platform specific implementation header file.
5. Afterwards, build the project.

Please tell me if this solves your issue and do not hesitate to ask if you have further questions.

Kind regards,
Franjo

0 (0 Votes)
RE: Makefile line 50 error for MQTT Paho IBM IoT Demo
Answer
5/20/17 3:30 AM as a reply to Franjo Stjepandic.

Hi Franjo,

Thank you so much.

I re-extract the project to c:\XDK-Workbench/workspace, and follow the your steps again, still the Makefile Line 50 error exists:(There are other XDK project in the workspace without errors)

(Line 50 of Makefile:     $(MAKE) -C $(BCDS_BASE_DIR)/xdk110/Common -f application.mk debug)

4 Errors:

Description    Resource    Path    Location    Type
make\mingw32-make.exe[1]: *** No rule to make target 'C:/XDK-Workbench/workspace/MQTT_Paho/debug/objects/paho/MQTTClient.o', needed by 'C:/XDK-Workbench/workspace/MQTT_Paho/debug/XDK_PAHO_DEMO.out'.  Stop.    MQTT_Paho             C/C++ Problem
make\mingw32-make.exe[1]: *** Waiting for unfinished jobs....    MQTT_Paho             C/C++ Problem
mingw32-make: *** [debug] Error 2    MQTT_Paho             C/C++ Problem
recipe for target 'debug' failed    Makefile    /MQTT_Paho    line 50    C/C++ Problem

1 warning:

Invalid project path: Include path not found (C:\XDK-Workbench\SDK\xdk110\Common\config\HW_XDK_v1).    MQTT_Paho        pathentry    Path Entry Problem

(There is no HW_XDK_v1 subfolder under c:XDK-Workbench\SDK\xdk110\Common\config)

Any hint would be very much appreciated!

Ms. Zhu

0 (0 Votes)
RE: Makefile line 50 error for MQTT Paho IBM IoT Demo
Answer
5/21/17 5:20 AM as a reply to Bochun Zhu.

I delete the MQTT_Paho project, re-extract the latest MQTTPaho project, copy neccessary files from org.eclipse.paho.mqtt.embedded-c-1.0.0.zip, import the project again. The line 50 of Makefile error is still there.

The uninstall the XDK-Workbench, restart the laptop, reinstall XDK-Workbench, re-extract the latest MQTTPaho project, copy neccessary files from org.eclipse.paho.mqtt.embedded-c-1.0.0.zip, import the project again. Same,the line 50 of Makefile error is still there.

Any other setting needs to be modified?

Thanks for any hint.

Ms. Zhu

0 (0 Votes)
RE: Makefile line 50 error for MQTT Paho IBM IoT Demo
Answer
5/22/17 4:03 PM as a reply to Bochun Zhu.

Hello Bochun,

this issue is really difficult for me to reproduce because it sounds like a missing detail.
I guess this issue is project related and exchanging the project files will easily lead us to the solution.

Therefore I would ask you to post your email in here, that I can contact you to exchange your MQTT paho demo project.

Kind regards,
Franjo

0 (0 Votes)
RE: Makefile line 50 error for MQTT Paho IBM IoT Demo
Answer
5/25/17 2:20 AM as a reply to Franjo Stjepandic.

Hi Franjo,

My email: s37893@sp.edu.sg

Thanks.

Ms. Zhu 

0 (0 Votes)