查看完整版本: [-- 如何把qt程序发布到另外一台机器上运行 --]

QTCN开发网 -> Qt QML开发 -> 如何把qt程序发布到另外一台机器上运行 [打印本页] 登录 -> 注册 -> 回复主题 -> 发表主题

expressw 2017-02-16 17:50

如何把qt程序发布到另外一台机器上运行

我用的是qt5.7.1,在debian上编译运行,现在想制作发布到另外一台机器上ubuntu运行,硬件都是x86的。
根据官网和网上找到的一些指导,把需要的库和plugins都放到目标机器上了,运行的时候报错:
QQmlApplicationEngine failed to load component
qrc:/main.qml:1 module "QtQuick" is not installed
qrc:/main.qml:2 module "QtQuick.Controls" is not installed
qrc:/main.qml:1 module "QtQuick" is not installed
qrc:/main.qml:2 module "QtQuick.Controls" is not installed

网上有说需要安装qt运行库的,把qtdeclarative5-controls-plugin和qtdeclarative5-quicklayouts-plugin的,可是装完之后还是报同样的错误。

never_forget 2017-02-21 17:00
QML 打包 cmd 里面去 windeployqt  XXX.exe --qmldir C:XXXXXXXX\qml ,楼主是这个意思是不 ?

reerayxia 2017-02-24 08:37
静态编译不二选择。。。


查看完整版本: [-- 如何把qt程序发布到另外一台机器上运行 --] [-- top --]



Powered by phpwind v8.7 Code ©2003-2011 phpwind
Gzip disabled