paho c client cross compile: getting build error

45 views
Skip to first unread message

hardik...@sciter.in

unread,
Dec 27, 2016, 2:39:50 AM12/27/16
to MQTT
HI,

I am trying to build paho mqtt c client for raspi using cross gcc on eclipse running on windows 10 and  Pre-built binaries of mqtt lib for unix.
I getting following error.

11:44:38 **** Incremental Build of configuration Debug for project mqtt ****
make all 
'Building target: mqtt'
'Invoking: Cross GCC Linker'
arm-linux-gnueabihf-gcc -L"D:\current\ProjectWiseSourceCode\IOT_Gateway\Eclipse_workspace\mqtt\lib" -o "mqtt"  ./src/MQTTClient_publish.o   -lpaho-mqtt3a -lpaho-mqtt3as -lpaho-mqtt3c -lpaho-mqtt3cs
c:/sysgcc/raspberry/bin/../lib/gcc/arm-linux-gnueabihf/4.9/../../../../arm-linux-gnueabihf/bin/ld.exe:D:\current\ProjectWiseSourceCode\IOT_Gateway\Eclipse_workspace\mqtt\lib/libpaho-mqtt3a.so: file format not recognized; treating as linker script
c:/sysgcc/raspberry/bin/../lib/gcc/arm-linux-gnueabihf/4.9/../../../../arm-linux-gnueabihf/bin/ld.exe:D:\current\ProjectWiseSourceCode\IOT_Gateway\Eclipse_workspace\mqtt\lib/libpaho-mqtt3a.so:1: syntax error
collect2.exe: error: ld returned 1 exit status
make: *** [mqtt] Error 1


any suggestion  I am new to eclipse.
Reply all
Reply to author
Forward
0 new messages