使用 QT5 库部署的应用程序无法在 Windows 7 上启动 [英] Application deployed with QT5 libraries does not start on Windows 7

查看:72
本文介绍了使用 QT5 库部署的应用程序无法在 Windows 7 上启动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

最近,我们一直在将 Windows 上基于 QT 的应用程序从 QT 4.8 迁移到 QT 5,但遇到了部署问题.请注意,我们的应用程序没有改变,我们只是用新的 QT5 框架构建了它.经过一些努力,我们使用基于 VS2010 的 QT5 库构建了它;我成功地从 Qt Creator 运行了该应用程序.

Recently we have been migrating our QT based application on Windows from QT 4.8 to QT 5, and we have run into a issue with deployment. Note that our app has not changed, we have only built it with new QT5 framework. With some effort we got it to build with VS2010 based QT5 library; and I successfully ran the app from Qt Creator.

正如我们在 QT4 中所做的那样,我们在安装程序中包含了一组必需的 QT 库.

As we did with QT4, we have included a required set of QT libraries with the installer.

在我们的测试阶段,当我们在干净的机器上安装我们的 QT5 应用程序时;它不会启动.不仅应用程序没有启动,而且没有输出任何错误.

In our testing phase, when we installed our QT5 app on a clean machine; it would not start. Not only the application did not start, but it did not output any errors.

我们通过依赖项检查器运行应用程序;并且根本没有缺少库依赖项.

We ran the app through the dependency checker; and there were no missing library dependencies at all.

推荐答案

经过几天的搜索没有任何进展,我们偶然发现了一个 QT 错误:

After several days of search with no progress, we stumbled upon a QT bug:

https://bugreports.qt.io/browse/QTBUG-28766

使用 QT5,除了预期的 QT 库之外,还有 msvcr100.dll 和 msvcp100.dll;事实证明,您必须将您的应用程序与:

With QT5, in addition to expected QT libraries, msvcr100.dll, and msvcp100.dll; it turns out that you have to ship your application with:

platforms/qminimal.dll
platforms/qwindows.dll

也是.在您的本地 QT5 库安装 @:\Qt5.0.0\5.0.0\msvc2010\plugins\platforms 中找到我到处搜索,但无法在他们的文档中找到此信息.

as well. Which is found in your local QT5 library install @: \Qt5.0.0\5.0.0\msvc2010\plugins\platforms I searched everywhere, and I was unable to find this info in their documentation.

这篇关于使用 QT5 库部署的应用程序无法在 Windows 7 上启动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆