[Development] Cross compile Qt5 for QtCreator -Problem

Nilesh Kokane nilesh.kokane at mindastoneridge.com
Fri Jul 25 12:49:05 CEST 2014


Hello Christian & Thiago

First of all thanks for your suggestions.


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"?

can you please provide the URL for "bitbake meta-toolchain-qt5"?

I found out
http://wiki.wandboard.org/index.php/Setup_QT_creator_for_developing_QT_apps_on_wandboard
for that, will that work?

sorry, I'm novice to Qt


Thanks
Nilesh kokane


On Fri, Jul 25, 2014 at 10:58 AM, Christian Gagneraud <chgans at gna.org>
wrote:

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



-- 
Thanks

-- 
“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/development/attachments/20140725/ae1aed71/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 67631 bytes
Desc: not available
URL: <http://lists.qt-project.org/pipermail/development/attachments/20140725/ae1aed71/attachment.png>


More information about the Development mailing list