All of lore.kernel.org
 help / color / mirror / Atom feed
From: Alvaro Martinez Tovar <alvaromartineztovar@yahoo.es>
To: Felipe Tonello <eu@felipetonello.com>
Cc: "meta-freescale@yoctoproject.org" <meta-freescale@yoctoproject.org>
Subject: Re: Qt5 cross-compilation
Date: Mon, 20 Jul 2015 09:52:15 +0000 (UTC)	[thread overview]
Message-ID: <695406876.921767.1437385935268.JavaMail.yahoo@mail.yahoo.com> (raw)
In-Reply-To: <CAGrhNMy2qHRJBQiaBKX+=x25q=Z9rZpxCNoKP89CRt8VfjcHMQ@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 5694 bytes --]

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@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@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@felipetonello.com>
 Para: Alvaro Martinez Tovar <alvaromartineztovar@yahoo.es> 
CC: "meta-freescale@yoctoproject.org" <meta-freescale@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@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




[-- Attachment #2: Type: text/html, Size: 10798 bytes --]

      reply	other threads:[~2015-07-20  9:55 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-14 15:24 (No subject) Alvaro Martinez Tovar
2015-07-15 10:59 ` Felipe Tonello
2015-07-20  9:52   ` Alvaro Martinez Tovar [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=695406876.921767.1437385935268.JavaMail.yahoo@mail.yahoo.com \
    --to=alvaromartineztovar@yahoo.es \
    --cc=eu@felipetonello.com \
    --cc=meta-freescale@yoctoproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.