[Interest] qt giving the ld error

Christian Gagneraud chgans at gna.org
Fri Aug 8 07:20:24 CEST 2014


On 8/08/2014 4:25 p.m., Nilesh Kokane wrote:
> Hi ,
>
> Based on the url
> http://wiki.wandboard.org/index.php/Building_Qt5_using_yocto_on_Wandboard
>
> bitbake core-image-minimal and  bitbake meta-toolchain-qt5
>
> Both gave me success.
>
>
> 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
>
> /usr/lib/gcc-cross/arm-linux-gnueabi/4.7/../../../../arm-linux-gnueabi/bin/ld:
> cannot find /lib/libpthread.so.0 inside
>
> /usr/lib/gcc-cross/arm-linux-gnueabi/4.7/../../../../arm-linux-gnueabi/bin/ld:
> cannot find /usr/lib/libpthread_nonshared.a inside

It looks like you didn't setup QtCreator correctly, your poky cross-gcc 
is not on the PATH (or is after /usr/lib/gcc-cross/arm-linux-gnueabi/...)

make sure that arm-linux-gnueabi-g++ refers to /opt/poky/1.6.1/... and 
not /usr/lib/gcc-cross/..., from a console you can check for this with 
this command:
$ which arm-linux-gnueabi-g++

Or set the full path to your cross-gcc in QtCreator "Build&run" config.

Actually, I've just check the url you gave and obviously you didn't do 
(correctly) the 3 steps they give in "Configure Qt creator"

Chris

>
> collect2: error: ld returned 1 exit status
>
> make: *** [clocks] Error 1
>
> 09:41:15: The process "/usr/bin/make" exited with code 2.
>
> Error while building/deploying project clocks (kit: wandboard)
>
> When executing step 'Make'
>
> 09:41:15: Elapsed time: 00:00.
>
>
>
>
>
> I've assuared that the set up in the Configure Qt creators OK , but its
> still giving the error.
>
>
> can you suggest me for that.
>
>
>
> --
> Thanks
> Nilesh Kokane
>
>
> “The contents of this e-mail message and any attachments are
> confidential and are intended solely for addressee. The information may
> also be legally privileged. This transmission is sent in trust, for the
> sole purpose of delivery to the intended recipient. If you have received
> this transmission in error, any use, reproduction or dissemination of
> this transmission is strictly prohibited. If you are not the intended
> recipient, please immediately notify the sender by reply e-mail or phone
> and delete this message and its attachments, if any.”
>
>
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
>



More information about the Interest mailing list