问题描述
我在Visual Studio中创建了一个qt应用程序.生成项目后,exe
文件未运行,并且我收到错误消息,提示缺少许多dll
文件,例如Qt5Core.dll
和其他文件.我该如何解决?
I create a qt application in visual studio. After building the project , the exe
file not running and I have error message for missing a lot of dll
files such as Qt5Core.dll
and the others.How can I fix it?
推荐答案
让我们假设您的exe文件名位于MyApp.exe
中.
let suppose your exe file name in MyApp.exe
.
-
将
MyApp.exe
复制到新文件夹中.例如myfolder
.
copy
MyApp.exe
in a new folder. for examplemyfolder
.
打开myfolder
按住shift键并在myfolder的窗口中右键单击
open myfolder
press shift and right click at myfolder's window
在打开的右键菜单中选择Open command window here
in opened right click menu select Open command window here
请注意 C:\Qt\Qt5.9.3\5.9.3\msvc2015_64
路径取决于您安装的qt版本及其目录.
note that C:\Qt\Qt5.9.3\5.9.3\msvc2015_64
path is depend on your installed qt version and it's directory.
这篇关于如何使用Visual Studio在QT Designer中创建exe文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!