Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

QML module not installed error: running Qt app on Embedded Linux

Tags:

c++

linux

qt

I am trying to launch my cross-compiled GUI Qt application on a certain TI board. I use this command to launch the application:

QT_DEBUG_PLUGINS=1 QT_PLUGIN_PATH=/root/qt-5.2.1-install/plugins LD_LIBRARY_PATH=/root/qt-5.2.1-install/lib/ ./simple_qml_ui -platform linuxfb

Unfortunately the error occurs:

QFactoryLoader::QFactoryLoader() checking directory path "/root/qt_app/styles" ... 
QFactoryLoader::QFactoryLoader() checking directory path "/root/qt-5.2.1-install/plugins/styles" ... 
QQmlApplicationEngine failed to load component 
qrc:/main.qml:3 module "QtQuick.Window" is not installed
qrc:/main.qml:1 module "QtQuick" is not installed
qrc:/main.qml:2 module "QtQuick.Controls" is not installed
qrc:/main.qml:4 module "QtQuick.Dialogs" is not installed
qrc:/main.qml:3 module "QtQuick.Window" is not installed
qrc:/main.qml:1 module "QtQuick" is not installed
qrc:/main.qml:2 module "QtQuick.Controls" is not installed
qrc:/main.qml:4 module "QtQuick.Dialogs" is not installed
qrc:/main.qml:3 module "QtQuick.Window" is not installed
qrc:/main.qml:1 module "QtQuick" is not installed
qrc:/main.qml:2 module "QtQuick.Controls" is not installed
qrc:/main.qml:4 module "QtQuick.Dialogs" is not installed
qrc:/main.qml:3 module "QtQuick.Window" is not installed
qrc:/main.qml:1 module "QtQuick" is not installed
qrc:/main.qml:2 module "QtQuick.Controls" is not installed
qrc:/main.qml:4 module "QtQuick.Dialogs" is not installed

Am I missing some important deployment step? How do I fix this?

like image 598
Aleksei Petrenko Avatar asked Sep 28 '22 15:09

Aleksei Petrenko


1 Answers

This answer does not match the topic creators plattform, but i recently had the same error under windows and found this question.

So for other people who have this problem under windows there is the following solution:

.\windeployqt.exe <project-path> --release --qmldir <qml-dir> 

qml-dir example: C:\Qt\5.11.0\mingw53_32\qml

in my case i had to additionally copy the following dlls from the \bin folder:

libgcc_s_dw2-1.dll, libstdc++-6.dll, libwinpthread-1.dll
like image 86
mvollmer Avatar answered Sep 30 '22 07:09

mvollmer