QT 应用程序的运行时错误? [英] Runtime error for QT application?
问题描述
我在 Qt5.1 上为 Windows 7 开发了一个应用程序,现在我想分发它.由于我使用了 MINGW 编译器,因此无法静态构建它.我使用dependency walker找出所有的dll并打包.当我在没有安装 QT 开发环境的机器上运行该应用程序时,该应用程序因 Microsoft Visual C++ 运行时库错误而崩溃.
I have developed an application on Qt5.1 for windows 7 and now I want to distribute it. Since I have used the MINGW compiler I cannot build it static. I used dependency walker to find out all the dlls and packaged it. When I run the application on a machine which doesnot have QT development environment installed the application crashes with Microsoft Visual C++ Runtime Library error.
有人能指出我的问题吗?
Could anybody please point me out the problem?
推荐答案
错误是
修复了问题:
修复方法是将一个文件夹 platform 添加到您的应用程序可执行文件所在的位置,并从位置 5.1.0-rc2\mingw48_32\plugins 复制到 qwindows.dll\您的 QT 安装的平台.
The fix is add a folder platform into the location of your application executable and into that copy qwindows.dll from the loaction 5.1.0-rc2\mingw48_32\plugins\platforms of your QT installation.
还需要复制所有的dll!
Also all the dlls need to be copied!
这篇关于QT 应用程序的运行时错误?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!