gpt4 book ai didi

c++ - QML 模块未安装错误 : running Qt app on Embedded Linux

转载 作者:IT王子 更新时间:2023-10-29 01:26:21 25 4
gpt4 key购买 nike

我正尝试在某个 TI 板上启动我的交叉编译的 GUI Qt 应用程序。我使用此命令启动应用程序:

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

不幸的是,错误发生了:

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

我是否遗漏了一些重要的部署步骤?我该如何解决这个问题?

最佳答案

这个答案与topic creators plattform不符,但是我最近在windows下遇到了同样的错误,发现了这个问题。

所以对于其他在windows下有这个问题的人有以下解决办法:

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

qml-dir 示例:C:\Qt\5.11.0\mingw53_32\qml

在我的例子中,我必须另外从\bin 文件夹中复制以下 dll:

libgcc_s_dw2-1.dll, libstdc++-6.dll, libwinpthread-1.dll

关于c++ - QML 模块未安装错误 : running Qt app on Embedded Linux,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30814475/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com