Cannot run Qt quick application

Hi,

I am running a qt quick application on EDT display. I have flashed the console-trdx-image with qt5 libraries. I can able to run the ui applications but not qt quick. the error is:

root@apalis-imx6:~# /opt/tab/bin/tab -platform eglfs
QML debugging is enabled. Only use this in a safe environment.
QEglFSVivIntegration will set environment variable FB_MULTI_BUFFER=2 to enable double buffering and vsync.
 If this is not desired, you can override this via: export QT_EGLFS_IMX6_NO_FB_MULTI_BUFFER=1
[ 2914.779045] mxc_sdc_fb fb.20: 480x272 h_sync,r,l: 48,48,96  v_sync,l,u: 10,6,3 pixclock=11250000 Hz
Unable to query physical screen size, defaulting to 100 dpi.
To override, set QT_QPA_EGLFS_PHYSICAL_WIDTH and QT_QPA_EGLFS_PHYSICAL_HEIGHT (in millimeters).
QQmlApplicationEngine failed to load component
qrc:/main.qml:10 Type MainForm unavailable
qrc:/MainForm.ui.qml:2 module "QtQuick" version 2.6 is not installed

how to resolve it?

thank you in advance.

What version of Qt5 are you using?

Qt5.3
Qt5.4
Qt5.5
Qt5.6
Qt5.6.1
Qt5.6.2
Qt.5.7

You can find out by looking at the variables:

QT_VERSION, QT_MAJOR_VERSION, QT_MINOR_VERSION, QT_PATCH_VERSION

Probably the target does not have the QtQuick2 version → 2.6

Is the same Host version being used in Target?

Try changing impot QtQuick 2.6 to import QtQuick 2.4 or import QtQuick 2.0 in MainForm.ui.qml.


Cleiton Bueno

Blog | Linkedin | B2Open

Thank you for the reply. Yes you found the exact reason. i am running a different version (5.7) on my host machine. can you suggest me how to ûse the same host version to the target device.