[meta-freescale] Qt5 cross-compilation

Alvaro Martinez Tovar alvaromartineztovar at yahoo.es
Mon Jul 20 02:52:15 PDT 2015


Hi Felipe, hi all,I have followed your advice and have bin able to execute some more examples. 
I guess cross-compilation and SDK installation are OK, but I have some doubts on what to add to the IMAGE with IMAGE_INSTALL
However, when I try to execute dashboard example, I get the error:
root at imx6qsabresd:~/fcm/dashboard# ./dashboard
Qt Warning: Could not find a location of the system's Compose files. Consider setting the QTCOMPOSE environment variable.
Qt Warning: Could not find a location of the system's Compose files. Consider setting the QTCOMPOSE environment variable.
QQmlApplicationEngine failed to load component
qrc:/qml/dashboard.qml:43 module "QtQuick.Controls" version 1.4 is not installed

And when I try to execute planets example, I get the error:Qt Warning: Could not find a location of the system's Compose files. Consider setting the QTCOMPOSE environment variable.
Qt Warning: Could not find a location of the system's Compose files. Consider setting the QTCOMPOSE environment variable.
qrc:/planets.qml:38:1: module "QtCanvas3D" is not installed
Unable to find an X11 visual which matches EGL config 5

At the moment, this is what I add to the fsl-image-qt5:
IMAGE_INSTALL_append = " python-core \
apache2 \
php \
qtbase-fonts \
qtbase-plugins \
qtbase-tools \
qtbase-examples \
qtdeclarative \
qtdeclarative-plugins \
qtdeclarative-tools \
qtdeclarative-examples \
qtdeclarative-qmlplugins \
qtmultimedia \
qtmultimedia-plugins \
qtmultimedia-examples \
qtmultimedia-qmlplugins \
qtsvg \
qtsvg-plugins \
qtsensors \
qtimageformats-plugins \
qtsystems \
qtsystems-tools \
qtsystems-examples \
qtsystems-qmlplugins \
qtscript \
qt3d \
qt3d-examples \
qt3d-qmlplugins \
qt3d-tools \
qtwebkit \
qtwebkit-examples-examples \
qtwebkit-qmlplugins \
qtgraphicaleffects-qmlplugins \
qtconnectivity-dev \
qtconnectivity-mkspecs \
qtconnectivity-qmlplugins \
qtlocation-plugins \
qtlocation-qmlplugins \
qtquickcontrols-qmlplugins \
qtquick1 \
qtquick1-qmlplugins \
qtquick1-plugins \
i2c-tools \
"
These are the modules that are installed in my board:
root at imx6qsabresd:/usr/lib# ls libQt5*.so
libQt5Bluetooth.so   libQt5OpenGL.so          libQt5Sql.so
libQt5Concurrent.so  libQt5PrintSupport.so    libQt5Test.so
libQt5Core.so        libQt5Qml.so             libQt5Widgets.so
libQt5DBus.so        libQt5Quick.so           libQt5Xml.so
libQt5Gui.so         libQt5QuickParticles.so  libQt5XmlPatterns.so
libQt5Network.so     libQt5QuickTest.so
libQt5Nfc.so         libQt5QuickWidgets.so

Thank you very much for your feedback!
     De: Felipe Tonello <eu at felipetonello.com>
 Para: Alvaro Martinez Tovar <alvaromartineztovar at yahoo.es> 
CC: "meta-freescale at yoctoproject.org" <meta-freescale at yoctoproject.org> 
 Enviado: Miércoles 15 de julio de 2015 12:59
 Asunto: Re: [meta-freescale] (no subject)
   
Hi Alvaro,

On Tue, Jul 14, 2015 at 4:24 PM, Alvaro Martinez Tovar
<alvaromartineztovar at yahoo.es> wrote:
> Dear all,
>
> I am working with Qt5.5.0 and QtCreator 3.4.2 open source. On the hardware
> side I work with a i.MX6 sabre platform for smart devices.
>
> As a first aproach, after having created the image fsl-image-qt5 correctly
> (I think), I would like to run different examples by cross compiling and
> executing them on the SABRE platform. On my PC I run Ubuntu 14.04 LTS.

Have you been able to create the SDK for that image?

>
> When I compile all the examples to run on the Ubuntu PC, they all work
> properly (bluetooth, qtquick ...)
> However, when I try to cross-compile and run them on the SABRE platform, I
> get execution errors with some of them.

How do you compile them? Using bitbake?



>
> However, when I try to run a bluetooth scanner, I get:
> ./btscanner: error while loading shared libraries: libQt5Bluetooth.so.5:
> cannot open shared object file: No such file or directory
>
> And when I try to run a Qtquick example (dasboard), I get:
> Qt Warning: Could not find a location of the system's Compose files.
> Consider setting the QTCOMPOSE environment variable.
> Qt Warning: Could not find a location of the system's Compose files.
> Consider setting the QTCOMPOSE environment variable.
> QQmlApplicationEngine failed to load component
> qrc:/qml/dashboard.qml:45 module "QtQuick.Extras" is not installed
> qrc:/qml/dashboard.qml:43 module "QtQuick.Controls" is not installed
> qrc:/qml/dashboard.qml:44 module "QtQuick.Controls.Styles" is not installed
> qrc:/qml/dashboard.qml:45 module "QtQuick.Extras" is not installed
> qrc:/qml/dashboard.qml:43 module "QtQuick.Controls" is not installed
> qrc:/qml/dashboard.qml:44 module "QtQuick.Controls.Styles" is not installed
> qrc:/qml/dashboard.qml:45 module "QtQuick.Extras" is not installed
> qrc:/qml/dashboard.qml:43 module "QtQuick.Controls" is not installed
> qrc:/qml/dashboard.qml:44 module "QtQuick.Controls.Styles" is not installed
>
> Can you please give me any advice on what to do? I am stuck at this point.
> Which are the packages I should add to IMAGE_INSTALL_append??

Well, It looks like some libraries and Qt5 modules are missing. You
can add packages using IMAGE_INSTALL += "package_name" in your
local.conf file and build the whole image. This will install all new
packages and its dependencies to the image.

If you really want to build your own image, the best practice is to
have a bbappend to that image or have your own image recipe in your
own layer.

Read this: http://www.yoctoproject.org/docs/1.8/ref-manual/ref-manual.html#var-IMAGE_INSTALL

Felipe


  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/meta-freescale/attachments/20150720/2b42c40e/attachment.html>


More information about the meta-freescale mailing list