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?
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
事实证明,您只需要将Qt安装文件夹中的plugins目录复制到您的app文件夹即可。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.