[Qt-creator] qt giving the ld error

Tobias Hunger tobias.hunger at digia.com
Fri Aug 8 10:29:44 CEST 2014


On Friday 08 August 2014 10:14:45 Nilesh Kokane wrote:
> Hi ,
> 
> Based on the url
> http://wiki.wandboard.org/index.php/Building_Qt5_using_yocto_on_Wandboard

I am afraid I can not really help, I have never used Yocto before.
 
> But after setting the qt creator and running the example clocks code  its
> giving me the ld errors as follows
> 
> 09:41:15: Running steps for project clocks...
> 
> 09:41:15: Configuration unchanged, skipping qmake step.
> 
> 09:41:15: Starting: "/usr/bin/make"
> 
> arm-linux-gnueabi-g++ -o clocks main.o qrc_clocks.o
> -L/opt/poky/1.6.1/sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi/usr/lib
> -lQt5Quick -lQt5Qml -lQt5Network -lQt5Gui -lQt5Core -lGLESv2 -lpthread

That line is wrong and points to having the toolchain set up incorrectly. You 
need the sysroot in there, without the compiler will try to use the libraries 
and headers installed by your desktop system which obviously can not work.
 
> /usr/lib/gcc-cross/arm-linux-gnueabi/4.7/../../../../arm-linux-gnueabi/bin/l
> d: cannot find /lib/libpthread.so.0 inside

That is a library installed by your desktop, not one for the board.

> /usr/lib/gcc-cross/arm-linux-gnueabi/4.7/../../../../arm-linux-gnueabi/bin/l
> d: cannot find /usr/lib/libpthread_nonshared.a inside

Same here...

> collect2: error: ld returned 1 exit status
> 
> make: *** [clocks] Error 1
> 
> 09:41:15: The process "/usr/bin/make" exited with code 2.

Why are you runnig 'bitbake' above and 'make' here? Is that how you are 
supposed to build things for the board?

Best Regards,
Tobias

-- 
Tobias Hunger, Senior Software Engineer - Digia, Qt
Digia Germany GmbH, Rudower Chaussee 13, D-12489 Berlin
Geschäftsführer: Mika Pälsi, Juha Varelius, Tuula Haataja
Sitz der Gesellschaft: Berlin. USt-IdNr: DE 286 306 868
Registergericht: Amtsgericht Charlottenburg, HRB 144331 B



More information about the Qt-creator mailing list