I guess you double-clicked in exe file that provides after building in release mode : For Deploy and create Exe output with QT in windows you should follow this way:
put your compiler path in your system path. now you use mingw81_64 you should set it. something like Qt/tools/mingw81_64/bin
copy exe file that provides after building in release mode in one folder and run mingw81_64 cmd (it has separate cmd) and cd to that folder path
windeployqt app.exe
This command will get all dll needs for your app and your exe will work .
if you use qml
windeployqt --qmldir (the path of its directory ) app.exe
发布评论
评论(2)
我猜你双击了在发布模式下构建后提供的 exe 文件:
对于在 Windows 中使用 QT 部署和创建 Exe 输出,您应该遵循以下方式:
将编译器路径放入系统路径中。现在你使用 mingw81_64 你应该设置它。类似
Qt/tools/mingw81_64/bin
复制在一个文件夹中以发布模式构建后提供的exe文件并运行mingw81_64 cmd(它有单独的cmd)
并 cd 到该文件夹路径
windeployqt app.exe
此命令将获取您的应用程序所需的所有 dll,并且您的 exe 将运行。
如果您使用 qml
并且还可以查看这些 YouTube 视频以获取更多信息:
https://www.youtube.com/watch?v=LdSTgR0xJco
https://www.youtube.com/watch?v=hCXAgB6y8eA
I guess you double-clicked in exe file that provides after building in release mode :
For Deploy and create Exe output with QT in windows you should follow this way:
put your compiler path in your system path. now you use mingw81_64 you should set it. something like
Qt/tools/mingw81_64/bin
copy exe file that provides after building in release mode in one folder and run mingw81_64 cmd (it has separate cmd)
and cd to that folder path
windeployqt app.exe
This command will get all dll needs for your app and your exe will work .
if you use qml
and also see these youtube videos for more info:
https://www.youtube.com/watch?v=LdSTgR0xJco
https://www.youtube.com/watch?v=hCXAgB6y8eA
安装 Visual C++ 2010 运行时 x86 解决了问题
installing visual C++ 2010 runtime x86 solved problem