[Qt-creator] (no subject)

Koehne Kai Kai.Koehne at theqtcompany.com
Wed Nov 11 15:46:27 CET 2015


> -----Original Message-----
> From: Qt-creator [mailto:qt-creator-bounces at qt-project.org] On Behalf Of
> Alvaro Martinez Tovar
> Sent: Wednesday, November 11, 2015 1:16 PM
> To: qt-creator at qt-project.org
> Subject: [Qt-creator] (no subject)
> Hi,


> I am quite new to Qt. 

Welcome :)

> I have executed the example application dashboard under
> Qt5.5.0 in Ubuntu and works perfectly! However, when I cross-compile it and try
> to execute it in the embedded target (based on a i.MX6UL), I get the following
> error:
> module "QtQuick.Extras" is not installed

First of all: this is the wrong mailing list, since your problem is not really with Qt Creator. qt-interest would fit better ... Also, give your e-mails please a subject :)

Anyway, what happens for you is that the Qt Quick 2 import "QtQuick.Extras" is not found. The plugin should be located in $[ QT_INSTALL_QML]/ QtQuick\Extras

> do I have to include something else to pro file in order to include this module?

No, there shouldn't be any extra steps required, provided that the Qt on your embedded device was properly set up.

Try to set the QT_IMPORT_TRACE and QT_DEBUG_PLUGINS environment variables to get some more information where it searches the plugins, and maybe why it cannot load it.

> What I have by now is the following:
> TEMPLATE = app
> TARGET = dashboard
> QT += gui qml quick widgets serialport sql target.path = /home/root INSTALLS +=
> target SOURCES += \
>     main.cpp
>     dashboard.qrc
>     qml/dashboard.qml \
>     qml/DashboardGaugeStyle.qml \
>     qml/IconGaugeStyle.qml \
>     qml/TachometerStyle.qml \
>     qml/TurnIndicator.qml \
>     qml/ValueSource.qml
> what is really strange for me is that it runs perfectly in Ubuntu, but this error
> appears when deploying to target.
> I have tested some other application and they run correctly in both platforms.
> Could you give me any hint to solve it?
> How could I compile everything together into one executable in order not to
> depend on libraries? Is it possible?

You can indeed build your application statically, but this requires a custom build of Qt, and might be not the best on an embedded platform if you've other Qt processes too.

A good start to read about this is




More information about the Qt-creator mailing list