How to run Qt 5 applications on other computers (Windows 7)(如何在其他计算机上运行 Qt 5 应用程序 (Windows 7))
问题描述
我在 Windows 7 Ultimate 上使用 Qt 5.0.2 开发了一个简单的应用程序.作为编译器,QtCreator 使用 MSVC2012_64 位.而且我无法将我的应用程序移动到其他计算机上.这是行不通的.Qt 应用程序需要我找不到的 DLL.依赖浏览器认为没有找到下面的.dll
.我在哪里可以找到它们?为什么这个问题如此广泛?所有的人都抱怨他们无法让用 Qt 开发的 .exe
在其他计算机上工作.
顺便说一句,当我添加了从 Internet 下载的 DCOMP.dll
时,未找到的 dll 比现在多 2-3 倍:)>
另请注意,在其他计算机(Windows 7 家庭高级版)上,当我双击 exe 文件时,它显示它已加载并且没有效果,根本没有任何错误.
这是我需要的 dll 列表,我也复制了 C:QtQt5.0.25.0.2mingw47_32plugins平台
文件夹:
仅此而已,它对我有用.顺便说一句,我使用 Windows 7 Ultimate 64x 和 Qt 5.0.2 for Windows 32-bit (MinGW 4.7, 650 MB) package for Qt.
您可能还需要复制 QtCreator 的 .dll,并且您可能还需要一个名为 qt.conf
的文件,其中包含以下内容(从@Renato 回答中复制):
[路径]图书馆=./平台
I have developed a simple application with Qt 5.0.2 on Windows 7 Ultimate. As a compiler the QtCreator used MSVC2012_64bit. And I cannot move my application onto other computer. It does not work. Qt application requires DLLs that I can't find. The dependency explorer thinks that the .dll
s below are not found. Where I can find them? Why is this problem so wide spreaded? All the people complain that they can not get their .exe
, which is developed with Qt, work on other computer .
EDIT1: BTW when I have added DCOMP.dll
downloaded from the internet, the not found dlls become 2-3 times more than it is now :)
EDIT2: Also note that on other computer (Windows 7 Home Premium) when I double click on the exe file, it shows that it loades and no effect, no error nothing at all.
This the list of dlls I needed and also I have copied the C:QtQt5.0.25.0.2mingw47_32pluginsplatforms
folder:
Just this and it worked for me. BTW I use Windows 7 Ultimate 64x, and Qt 5.0.2 for Windows 32-bit (MinGW 4.7, 650 MB) package for Qt.
EDIT: You might also need QtCreator's .dll to be copied and also you might need to have a file named qt.conf
with the following content (copied from @Renato answer):
[Paths]
Libraries=./platforms
这篇关于如何在其他计算机上运行 Qt 5 应用程序 (Windows 7)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:如何在其他计算机上运行 Qt 5 应用程序 (Windows 7)
- 使用/clr 时出现 LNK2022 错误 2022-01-01
- 一起使用 MPI 和 OpenCV 时出现分段错误 2022-01-01
- C++ 协变模板 2021-01-01
- 从python回调到c++的选项 2022-11-16
- STL 中有 dereference_iterator 吗? 2022-01-01
- Stroustrup 的 Simple_window.h 2022-01-01
- 如何对自定义类的向量使用std::find()? 2022-11-07
- 静态初始化顺序失败 2022-01-01
- 与 int by int 相比,为什么执行 float by float 矩阵乘法更快? 2021-01-01
- 近似搜索的工作原理 2021-01-01