在部署Qt Quick演示应用程序Minehunt时获得全屏屏幕

约翰贝克斯

为了测试部署过程,我正在尝试部署随附的演示应用程序Minehunt。我能够运行它,没有崩溃或错误,但是屏幕全是白色。

我相信这通常意味着我缺少插件。Dependency Walker报告没有问题,我什至尝试包括Qt MingW plugins目录中的所有插件,但没有运气。

到目前为止,这是我要包括的内容;谁能建议我还需要添加什么才能使其运行?

在此处输入图片说明

在此处输入图片说明

绿流

Your dlls don't look bad at all. I think, too, that it's your plugins. Even if they are there, there is a good chance, that your program don't find them. Qt is a bit picky where to look by default. You might try qt.conf. This is a small textfile you must create in the folder where your executable lies. It contains the path to your Qt plugins.

For instance, in one of my projects I have the followin folder layout:

Appfolder
  plugin
    qt
      plugins
        imageformats
        sqldrivers
   myapp.exe
   qt.conf
   ...many dlls...

Then I added a qt.conf file to the Appfolder, which has the following content:

[Paths] 
Plugins = plugins/qt/plugins

我的程序是Qt 4,但我认为Qt5中插件部署的这一方面没有改变。我所有的qt dll都在qt中。然后添加以下路径:SET PATH=.\plugins;.\plugins\qt;%PATH%在我尝试过的任何Windows上都像魅力一样工作。

编辑:然后,我创建了一个.bat文件,该文件执行以下操作:

SET PATH =。\ plugins;。\ plugins \ qt;%PATH%
cd Appfolder
启动myapp

这是一个丑陋的快速修复程序,但是我还没有时间用更好的东西来替代它。

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章

Qt应用程序部署

在Linux上部署Qt应用程序

是否可以在OS X上部署没有Qt Network的Qt Quick应用程序?

从全屏Qt快速应用程序中截取屏幕截图

在Linux中正确部署Qt应用程序

如何使用Qt部署跨平台应用程序?

在OS X上部署Qt应用程序时出错

部署Qt5 QML应用程序

部署Qt应用程序时缺少功能

如何部署QT5.2应用程序?

如何部署pyside2应用程序?-Qt方式

在Qt Creator中部署Windows应用程序

从Linux将Qt程序部署到Windows

使用QT将应用程序部署到android设备时发生编译错误

如何使用其他Linux平台中的所有dll文件部署Qt应用程序?

Qt静态应用程序无法在已部署的系统上运行

如何在符合LGPL的Linux上部署Qt5应用程序?

如何将基于qt的应用程序(在Mac上开发)部署到Windows?

如何在MacOS X雪豹(10.6)上部署Qt 5.5 C ++ 11应用程序

Qt应用程序部署不起作用。缺少入口点和dll

尝试使用共享库部署 Qt 应用程序时出错

单一安装exe文件Qt应用部署

在构建时部署所有Qt依赖项

防止在 Qt/Felgo 中部署时更改字体和大小

在rails中还是作为独立应用程序部署Angular2演示应用程序?

部署到heroku时,我的应用程序不断崩溃。我收到这个担心的应用程序错误主屏幕

将Flask应用程序部署到Google Cloud Platform时无法获得正确的TensorFlow版本

Qt 可以限制我在免费许可证上对我的应用程序进行商业部署吗?

Qt Quick 2.2应用程序:选择组件设置步骤