码迷,mamicode.com
首页 > 其他好文 > 详细

Qt 错误: 无法运行 release 下的可执行文件

时间:2016-06-11 00:40:00      阅读:320      评论:0      收藏:0      [点我收藏+]

标签:


    学习Qt有一点时间了,但之前都是在debug版本下进行编译运行,偶然切换到release版本下,却出现了如下错误:

错误提示:
 
This application failed to start because it could not find or load the Qt platform plugin “windows”.
 
Reinstall the application may fix this problem.
 

    上网 Baidu / Google一下,得到如下解决方法:
 

复制 Qt安装目录下的./Tools/QtCreator/bin/qt.conf 文件和 整个的 ./Tools/QtCreator/bin/plugins/platforms 文件夹到 release 目录下即可。

qt.conf 的内容如下:
 
[Paths]
Libaries=../lib/qtcreator
Plugins=plugins
Imports=imports
Qml2Imports=qml

./plugins/platforms 目录中包含三个动态库文件:qminimal.dll 、 qoffscreen.dll 、qwindows.dll 。

 

http://blog.csdn.net/jan5_reyn/article/details/38955691

Qt 错误: 无法运行 release 下的可执行文件

标签:

原文地址:http://www.cnblogs.com/findumars/p/5574496.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!