[meta-freescale] R: Qt5 with Yocto

Simone cjb.sw.nospam at gmail.com
Fri Dec 27 06:54:53 PST 2013


Hello Alfonso,

some steps are done.

 

Now the make can complete well.

But make install fail, with this error: cannot find -lQt5Designer

Here below the last part of the make output:

 

/opt/poky/1.5mx6/sysroots/i686-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/
arm-poky-linux-gnueabi-g++
-Wl,-rpath-link,/home/cx/fsl-bsp/build/tmp/sysroots/imx6qsabresd/usr/lib
--sysroot=/home/cx/fsl-bsp/build/tmp/sysroots/imx6qsabresd
-Wl,--no-undefined -Wl,-O1
-Wl,-rpath-link,/qt-everywhere-opensource-src-5.1.1/qtxmlpatterns/lib
-Wl,-rpath-link,/qt-everywhere-opensource-src-5.1.1/qtbase/lib -shared -o
libqdeclarativeview.so .obj/release-shared/qdeclarativeview_plugin.o
.obj/release-shared/moc_qdeclarativeview_plugin.o
-L/home/cx/fsl-bsp/build/tmp/sysroots/imx6qsabresd/usr/lib
-L/qt-everywhere-opensource-src-5.1.1/qttools/lib -lQt5Designer
-L/qt-everywhere-opensource-src-5.1.1/qtbase/lib
-L/qt-everywhere-opensource-src-5.1.1/qtquick1/lib -lQt5Declarative
-L/qt-everywhere-opensource-src-5.1.1/qtxmlpatterns/lib -lQt5XmlPatterns
-lQt5Network -lQt5Sql -L/qt-everywhere-opensource-src-5.1.1/qtscript/lib
-lQt5Widgets -lQt5Xml -lQt5Script -lQt5Gui -lQt5Core -lGLESv2 -lEGL -lGAL
-lpthread  

/opt/poky/1.5mx6/sysroots/i686-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/
../../libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/4.8.1/ld:
cannot find -lQt5Designer

collect2: error: ld returned 1 exit status

make[4]: *** [../../../plugins/designer/libqdeclarativeview.so] Error 1

make[4]: Leaving directory
`/qt-everywhere-opensource-src-5.1.1/qtquick1/src/plugins/qdeclarativeview'

make[3]: *** [sub-qdeclarativeview-install_subtargets] Error 2

make[3]: Leaving directory
`/qt-everywhere-opensource-src-5.1.1/qtquick1/src/plugins'

make[2]: *** [sub-plugins-install_subtargets-ordered] Error 2

make[2]: Leaving directory
`/qt-everywhere-opensource-src-5.1.1/qtquick1/src'

make[1]: *** [sub-src-install_subtargets] Error 2

make[1]: Leaving directory `/qt-everywhere-opensource-src-5.1.1/qtquick1'

make: *** [module-qtquick1-install_subtargets] Error 2

 

 

Any suggestion?

Thanks so much!

Best regards

Simone

 

 

 

Da: Alfonso Tamés [mailto:alfonso at mantic.mx] 
Inviato: venerdì 20 dicembre 2013 19:12
A: Simone
Cc: meta-freescale at yoctoproject.org
Oggetto: Re: [meta-freescale] Qt5 with Yocto
Priorità: Alta

 

 

Hi Simone.

 

<algorithm> is part of the Standard Template Library. I do not now how
orthodox this may sound, but try tar czf the contents of your cortex-a9
sysroot located inside your cross toolchain Poky: (xxx because I don’t
remember the exact file names) /opt/poky/xxx/sysroots/cortex-a9xxx

 

Then unpack the contents in your board sysroot (for wandboqard)
yocto/build/tmp/sysroots/wandboard-quad

 

This should put headers and libraries that are needed to cross compile since
we are only passing the board sysroot to Qt5’s configure script.

 

Regards,

 

Alfonso

 

On Dec 20, 2013, at 11:07 AM, Simone <cjb.sw.nospam at gmail.com
<mailto:cjb.sw.nospam at gmail.com> > wrote:





Hello Alfonso,
I tried to cross compile qt5 for imx6qsabresd following the article at
http://wiki.wandboard.org/index.php/Building_Qt5_using_yocto_on_Wandboard
but I have an error during make.
I'm able to build with bitbake, but not In this standard way.
Below the last part of the build log (after configure, which was completed
successfully).


make[3]: Entering directory
`/qt-everywhere-opensource-src-5.1.1/qtbase/src/corelib'
/opt/poky/1.5mx6/sysroots/i686-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/
arm-poky-linux-gnueabi-g++ -c -pipe -mfloat-abi=softfp
--sysroot=/home/alfonso/yocto/build/tmp/sysroots/wandboard-quad -O2 -O2
-mfloat-abi=hard -march=armv7-a -mfpu=neon -DLINUX=1 -DEGL_API_FB=1
-fvisibility=hidden -fvisibility-inlines-hidden -std=c++0x -Wall -W
-D_REENTRANT -fPIC -DQT_NO_XCB -DQT_NO_XKBCOMMON -DQT_NO_USING_NAMESPACE
-DQT_BUILD_CORE_LIB -DQT_BUILDING_QT -DQT_NO_CAST_TO_ASCII
-DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER
-DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_BEFORE=0x050000
-DPCRE_HAVE_CONFIG_H -astDQT_CORE_LIB -D_LARGEFILE64_SOURCE
-D_LARGEFILE_SOURCE -DQT_NO_DEBUG -I../../mkspecs/devices/linux-imx6-g++ -I.
-I../../include -I../../include/QtCore -I../../include/QtCore/5.1.1
-I../../include/QtCore/5.1.1/QtCore -Iglobal -I../3rdparty/pcre
-I../3rdparty/harfbuzz/src -I../3rdparty/md5 -I../3rdparty/md4
-I../3rdparty/sha3 -I.moc/release-shared
-I/home/alfonso/yocto/build/tmp/sysroots/wandboard-quad/usr/include -o
.obj/release-shared/qabstractanimation.o animation/qabstractanimation.cpp
Assembler messages:
Fatal error: can't create .obj/release-shared/qabstractanimation.o:
Permission denied
In file included from ../../include/QtCore/qglobal.h:1:0,
                from
../../include/QtCore/../../src/corelib/global/qnamespace.h:45,
                from ../../include/QtCore/qnamespace.h:1,
                from
../../include/QtCore/../../src/corelib/kernel/qobjectdefs.h:45,
                from ../../include/QtCore/qobjectdefs.h:1,
                from
../../include/QtCore/../../src/corelib/kernel/qobject.h:48,
                from ../../include/QtCore/qobject.h:1,
                from animation/qabstractanimation.h:45,
                from animation/qabstractanimation.cpp:146:
../../include/QtCore/../../src/corelib/global/qglobal.h:80:21: fatal error:
algorithm: No such file or directory
#include <algorithm>
                    ^
compilation terminated.
make[3]: *** [.obj/release-shared/qabstractanimation.o] Error 2
make[3]: Leaving directory
`/qt-everywhere-opensource-src-5.1.1/qtbase/src/corelib'
make[2]: *** [sub-corelib-make_first] Error 2
make[2]: Leaving directory `/qt-everywhere-opensource-src-5.1.1/qtbase/src'
make[1]: *** [sub-src-make_first] Error 2
make[1]: Leaving directory `/qt-everywhere-opensource-src-5.1.1/qtbase'
make: *** [module-qtbase-make_first] Error 2


Any hints?
Thanks
Simone


-----Messaggio originale-----
Da:  <mailto:meta-freescale-bounces at yoctoproject.org>
meta-freescale-bounces at yoctoproject.org
[ <mailto:meta-freescale-bounces at yoctoproject.org>
mailto:meta-freescale-bounces at yoctoproject.org] Per conto di Alfonso Tamés
Inviato: venerdì 13 dicembre 2013 12:18
A:  <mailto:koansoftware at gmail.com> koansoftware at gmail.com
Cc:  <mailto:meta-freescale at yoctoproject.org>
meta-freescale at yoctoproject.org
Oggetto: Re: [meta-freescale] Qt5 with Yocto


Hi Marco,

Indeed, I tried repo init and sync the master branch today and it is
throwing an error about
sources/poky/meta/recipes-support/consolekit/consolekit_0.4.6.bb DEPENDS or
requires virtual/libx11. This while explicit removing X11 in
DISTRO_FEATURES_remove.  Something got messed up in the last 15 days.

I repo synced my yocto_dora directory and tested Qt5_CinematicExperience and
works fine.

Can you specify the errors in yocto_dora? Can you bitbake with the -v
switch?

Regards,

Alfonso


On Dec 13, 2013, at 2:32 AM, Marco < <mailto:koansoftware at gmail.com>
koansoftware at gmail.com> wrote:




Il 13/12/2013 00:19, Alfonso Tamés ha scritto:




Marco,

The instructions in

 <http://wiki.wandboard.org/index.php/Building_Qt5_using_yocto_on_Wandboard>
http://wiki.wandboard.org/index.php/Building_Qt5_using_yocto_on_Wandboard
should work for Dora and Master branches. Just remember that master is a
moving target and sometimes it can give problems. Right now I am using
Master without any problems.




Regards,


Hi Alfonso
that's not true on my side.
Unfortunately using master branch there is an error downloading the

kernel.



OTOH using dora branch there are errors launching the executables on the

imx6dlsabresd target.




-- 
Marco


_______________________________________________
meta-freescale mailing list
meta-freescale at yoctoproject.org <mailto:meta-freescale at yoctoproject.org> 
https://lists.yoctoproject.org/listinfo/meta-freescale

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/meta-freescale/attachments/20131227/73997f33/attachment-0001.html>


More information about the meta-freescale mailing list