[Interest] qt giving the ld error

Ch'Gans chgans at gna.org
Fri Aug 8 09:11:17 CEST 2014



On 08/08/14 18:55, Nilesh Kokane wrote:
> Hi Ch'Gans,
>
>
> Thanks for your valuable reply
>
> This is not the right file, try this instead:
> /opt/poky/1.6/sysroots/x86_64-
> pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-linux-gnueabi-g++
>
>
> i just tried with
> (/opt/poky/1.6.1/sysroots/i686-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-g++)
> in qt mkspec. But, its popping out warning symbol

IIRC, I think you have to have you cross tools in your PATH, so try this:
$ export 
PATH=/opt/poky/1.6.1/sysroots/i686-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/:$PATH
$ qtcreator.sh

And check if you still have this warning.

As well, which "warning symbol" are you referring to? Is it on the 
"Compilers" tab, "Qt versions" or "Kits". Please provide more details.

Chris


>
>
>
>
>
>
>
>
> On Fri, Aug 8, 2014 at 12:17 PM, Ch'Gans <chgans at gna.org
> <mailto:chgans at gna.org>> wrote:
>
>
>
>     On 08/08/14 18:16, Nilesh Kokane wrote:
>
>         Hi Christiab,
>
>     [...]
>
>
>         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++)
>
>
>     This is not the right file, try this instead:
>     /opt/poky/1.6/sysroots/x86_64-__pokysdk-linux/usr/bin/arm-__poky-linux-gnueabi/arm-linux-__gnueabi-g++
>
>     Chris
>
>
>
>
>         can you please suggest
>
>         Thanks
>         Nilesh kokane
>
>
>         On Fri, Aug 8, 2014 at 10:50 AM, Christian Gagneraud
>         <chgans at gna.org <mailto:chgans at gna.org>
>         <mailto:chgans at gna.org <mailto: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
>         <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 <mailto:Interest at qt-project.org>
>         <mailto:Interest at qt-project.__org <mailto:Interest at qt-project.org>>
>
>               > http://lists.qt-project.org/__mailman/listinfo/interest
>         <http://lists.qt-project.org/mailman/listinfo/interest>
>               >
>              _________________________________________________
>              Interest mailing list
>         Interest at qt-project.org <mailto:Interest at qt-project.org>
>         <mailto:Interest at qt-project.__org <mailto:Interest at qt-project.org>>
>
>         http://lists.qt-project.org/__mailman/listinfo/interest
>         <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.”
>
>
>     --
>     QtCreator/qmakeparser.cpp:42
>     ////////// Parser ///////////
>     #define fL1S(s) QString::fromLatin1(s)
>     namespace { // MSVC2010 doesn't seem to know the semantics of
>     "static" ...
>
>
>
>
> --
> 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.”

-- 
QtCreator/qmakeparser.cpp:42
////////// Parser ///////////
#define fL1S(s) QString::fromLatin1(s)
namespace { // MSVC2010 doesn't seem to know the semantics of "static" ...



More information about the Interest mailing list