Qt Windows部署:应用程序不启动 [英] Qt Windows Deployment: Application does not start
问题描述
windeployqt
生成一堆我的应用程序需要的dll,并且还创建一个平台目录,它复制 qwindows.dll
。从另一个堆栈溢出帖子我看到 qminimal.dll
也可能是必需的,我也手动复制它在平台目录。除了 windeployqt
指出的dll之外,我的应用程序使用Boost Python库,所以我手动复制了$ code> boost-python / boost-system 和 python27.dll
库。现在,当我在其他Windows计算机上启动应用程序时,程序根本就不会开始此外,它不会提供有关丢失dll的任何类型的错误消息。我已经安装了msvc-12.0 x64可重新分发的软件包。我使用Dependency walker的配置文件选项,我看到没有丢失的DLL,但应用程序在启动后退出代码1(0x1)。
有关问题可能在哪里的任何想法。感谢提前。
最可能的原因是没有安装Python 2.7。简单地复制 python27.dll
文件是不够的。
I have written a c++ application using Qt 5.5.1 compiled with msvc-12.0. Now I want to deploy the Application and I'm using the Qt Windows Deployment tool (windeployqt.exe). Using windeployqt
produces a whole bunch of dlls that my application requires and it also creates a platforms directory where it copies qwindows.dll
. From another stack-overflow post I saw that qminimal.dll
might also be required and I have manually copied it as well in the platforms directory. In addition to the dlls pointed out by windeployqt
, my application uses Boost Python libraries so I manually copied the dlls for boost-python/boost-system
and the python27.dll
libraries.
Now when I start the application on a different windows computer, the program simply doesn't start. Also it does not give any kind of error messages about missing dlls. I have installed the msvc-12.0 x64 redistributable packages. I used Dependency walker's profile option and I see that there are no missing dlls but the Application exits with code 1 (0x1) after it gets started.
Any ideas on where the problem might be. Thanks in advance.
The mostly likely reason was that Python 2.7 was not installed. Simply copying python27.dll
file does not suffice.
这篇关于Qt Windows部署:应用程序不启动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!