[Interest] qt giving the ld error

Nilesh Kokane nilesh.kokane at mindastoneridge.com
Fri Aug 8 08:16:15 CEST 2014


Hi Christiab,

Thanks for your valuable reply first of all.

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++

I gave me the following.
/usr/bin/arm-linux-gnueabi-g++


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

I just checked by giving the full path in the qt mkspec as* but its showing
the warning sign

(*/opt/poky/1.6.1/sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi/usr/lib/qt5/mkspecs/linux-arm-gnueabi-g++)


can you please suggest

Thanks
Nilesh kokane


On Fri, Aug 8, 2014 at 10:50 AM, Christian Gagneraud <chgans at gna.org> wrote:

> 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
> >
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
>



-- 
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.”
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20140808/11c1df9d/attachment.html>


More information about the Interest mailing list