Qt giving the ld error
-
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
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.
-
I think you have a problem with your LIB-Path.
The Linker tries to find the pthread-Libs in "/lib" but you are using a arm envirement, so try to find the libs for arm in your toolchane and add
@LIBS += -L/where_your_toolchane_libs_are -lpthread....@
in your .pro file. -
i just included * in the .pro file but even then its throwing me thw errors as follows
11:55:09: Running steps for project clocks...
11:55:09: Configuration unchanged, skipping qmake step.
11:55:09: Starting: "/usr/bin/make"
/opt/poky/1.6.1/sysroots/i686-pokysdk-linux/usr/bin/qt5/qmake -spec /opt/poky/1.6.1/sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi/usr/lib/qt5/mkspecs/linux-arm-gnueabi-g++ CONFIG+=debug CONFIG+=declarative_debug CONFIG+=qml_debug -o Makefile ../clocks/clocks.pro
arm-linux-gnueabi-g++ -o clocks main.o qrc_clocks.o -L/opt/poky/1.6.1/sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi/lib/ -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
collect2: error: ld returned 1 exit status
make: *** [clocks] Error 1
11:55:09: The process "/usr/bin/make" exited with code 2.
Error while building/deploying project clocks (kit: wandboard)
When executing step 'Make'
11:55:09: Elapsed time: 00:00(*LIBS += -L/opt/poky/1.6.1/sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi/lib/)
Please suggest
-
Hello
My settings are as follows
1.The qt compiler setting is posted
http://picpaste.com/DSC_0029-Z4H0ho2Y.jpg2)Th qt version http://picpaste.com/DSC_0028-Q8tV8259.jpg
3.qt mk specs here http://picpaste.com/DSC_0030-QXGHGWTh.jpg
but that is giving me ld error.
can any one tell me whats wrong in the setting.?
I probabily guess the qt mk specs ...caan you specify what exactly to feed there?
-
waiting for reply
-
please if any one can help me