[Development] Cross compile Qt5 for QtCreator -Problem
Ch'Gans
chgans at gna.org
Sat Jul 26 10:47:58 CEST 2014
On 25/07/14 22:49, Nilesh Kokane wrote:
> HelloChristian & 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"?
This is just a command line to be run within your poky/yocto directory.
>
> I found out
> http://wiki.wandboard.org/index.php/Setup_QT_creator_for_developing_QT_apps_on_wandboard
> for that, will that work?
Yes, although it's ugly, but to my knowledge it's the only way to go.
I'm saying it's ugly because it will lock your QtCreator to your
cross-Qt version, you won't be able to build for anything else than for
your i.mx6 board.
You might get better support on the yocto mailing lists or on IRC:
https://www.yoctoproject.org/tools-resources/community/mailing-lists
Chris
>
> sorry, I'm novice to Qt
>
>
> Thanks
> Nilesh kokane
>
>
> On Fri, Jul 25, 2014 at 10:58 AM, Christian Gagneraud <chgans at gna.org
> <mailto: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 <mailto:Development at qt-project.org>
> > http://lists.qt-project.org/mailman/listinfo/development
> >
> _______________________________________________
> Development mailing list
> Development at qt-project.org <mailto: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.”
--
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 Development
mailing list