[Development] Cross compile Qt5 for QtCreator -Problem

Christian Gagneraud chgans at gna.org
Fri Jul 25 07:28:31 CEST 2014


On 25/07/2014 4:59 p.m., Nilesh Kokane wrote:
> Hello,
>
> i followed
> http://wiki.wandboard.org/index.php/Building_Qt5_using_yocto_on_Wandboard#Cross_compile_Qt5_for_QtCreator
> and
>
> 1)I've downloaded the QtCreator from
> http://download.qt-project.org/official_releases/qt/5.1/5.1.1/single/qt-everywhere-opensource-src-5.1.1.tar.gz.mirrorlist
>
> 2)/home
>   export PATH=$PATH:/opt/poky/1.6.1/
> sysroots/i686-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi
>
>
> 3)/qt-everywhere-opensource-src-5.1.1
>
>   ./configure -v -opensource -confirm-license -device imx6
> -device-option
> CROSS_COMPILE=/opt/poky/1.6.1/sysroots/i686-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-
> -sysroot /home/bin/fsl-community-bsp/build/tmp/sysroots/wandboard-solo
> -prefix ~/qt5arm -platform linux-g++ -shared -no-pch -no-rpath
> -pkg-config -no-accessibility -no-dbus -no-icu -no-directfb -evdev
> -no-fontconfig -no-opengl -opengl es2 -eglfs -no-glib -no-gtkstyle
> -no-iconv -system-libjpeg -no-kms -system-libpng -no-linuxfb -no-mitshm
> -no-nis -openssl -qt-pcre -release -no-sm -no-sql-db2 -no-sql-ibase
> -no-sql-mysql -no-sql-oci -no-sql-odbc -no-sql-psql -no-sql-sqlite
> -no-sql-sqlite2 -no-sql-tds -nomake tests -tslib -libudev -widgets
> -no-xcb -no-xcursor -no-xfixes -no-xinerama -no-xinput -no-xinput2
> -no-xkb -no-xrandr -no-xrender -no-xshape -no-xsync -no-xvideo -system-zlib

Why do you set the sysroot to /home/bin/fsl-community-bsp/build/...?
Is it really where you built the toolchain?

> it popped with ld errors and
>
> /opt/poky/1.6.1/sysroots/i686-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-g++
> -c -fvisibility=hidden fvisibility.c
> Symbol visibility control enabled.
> /opt/poky/1.6.1/sysroots/i686-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-g++
> --sysroot=/home/bin/fsl-community-bsp/build/tmp/sysroots/wandboard-solo
> -o libtest.so -shared -Wl,-Bsymbolic-functions -fPIC bsymbolic_functions.c
> /opt/poky/1.6.1/sysroots/i686-pokysdk-linux/usr/libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/4.8.2/ld:
> cannot find crti.o: No such file or directory
> /opt/poky/1.6.1/sysroots/i686-pokysdk-linux/usr/libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/4.8.2/ld:
> cannot find crtbeginS.o: No such file or directory
> /opt/poky/1.6.1/sysroots/i686-pokysdk-linux/usr/libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/4.8.2/ld:
> cannot find -lstdc++
> /opt/poky/1.6.1/sysroots/i686-pokysdk-linux/usr/libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/4.8.2/ld:
> cannot find -lm
> /opt/poky/1.6.1/sysroots/i686-pokysdk-linux/usr/libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/4.8.2/ld:
> cannot find -lgcc_s
> /opt/poky/1.6.1/sysroots/i686-pokysdk-linux/usr/libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/4.8.2/ld:
> cannot find -lc
> /opt/poky/1.6.1/sysroots/i686-pokysdk-linux/usr/libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/4.8.2/ld:
> cannot find -lgcc_s
> /opt/poky/1.6.1/sysroots/i686-pokysdk-linux/usr/libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/4.8.2/ld:
> cannot find crtendS.o: No such file or directory
> /opt/poky/1.6.1/sysroots/i686-pokysdk-linux/usr/libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/4.8.2/ld:
> cannot find crtn.o: No such file or directory
> collect2: error: ld returned 1 exit status
> Symbolic function binding disabled.

Because it sounds like there's nothing in this directory...

I know the documentation you cited states to manually cross-build Qt5 to 
setup QtCreator, but why don't you just "bitbake meta-toolchain-qt5"?

Chris

>
> This is the Qt Open Source Edition.
>
> You are licensed to use this software under the terms of
> the Lesser GNU General Public License (LGPL) versions 2.1.
>
> You have already accepted the terms of the  license.
>
> Creating qmake...
> make: Nothing to be done for `first'.
> Running configuration tests...
> Error: PKG_CONFIG_LIBDIR has not been set. This could mean
> the host's .pc files will be used (even if you set PKG_CONFIG_PATH).
> Set this variable to the directory that contains target .pc files
> for pkg-config to function correctly when cross-compiling or
> use -force-pkg-config to override this test.
>
>
>
> please suggest
>
>
> --
> 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.”
>
>
> _______________________________________________
> Development mailing list
> Development at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/development
>



More information about the Development mailing list