Chinaunix首页 | 论坛 | 博客
  • 博客访问: 361776
  • 博文数量: 50
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 641
  • 用 户 组: 普通用户
  • 注册时间: 2014-05-09 22:35
个人简介

不怕你失败,就怕你爬不起来。

文章分类

全部博文(50)

文章存档

2014年(50)

我的朋友

分类: C/C++

2014-08-20 22:49:30


    学习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 。



阅读(2485) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~