解决Qt编译动态链接库could not find or load the Qt platform plugin "windows" in.问题

最近用Qt5做了一个项目的界面,在编译成可执行文件EXE之后,运行文件,提示:

This application failed to start because it could not find or load the Qt platfo
rm plugin "windows"
in "".

Reinstalling the application may fix this problem.

查了很多资料,试了很过方法,后来发现将D:\Anaconda2\Library\plugins下的platforms文件夹复制到项目文件目录下(要复制整个文件夹),即可解决该问题。

时间: 2024-08-24 17:39:59

解决Qt编译动态链接库could not find or load the Qt platform plugin "windows" in.问题的相关文章

[pyqt5]解决could not find or load the Qt platform plugin windows

在PyQt5+python3+pycharm开发环境配置时,遇到了This application failed to start because it could not find or load the Qt platform plugin "windows".的问题.导致无法通过pycharm运行Pyqt5的应用 出现该问题的原因是环境变量没有添加. 解决方法: 在环境变量中增加: QT_QPA_PLATFORM_PLUGIN_PATH C:\Python34\Lib\site-

This application failed to start because it could not find or load the Qt platform plugin "windows"

发生以上错误的Qt版本应该是Qt 5.0.0以上的版本吧. 出现标题错误的大致原因是:因为Qt是跨平台的库,需要依赖于相关的平台库.有个Platform的文件夹,里面有相关dll文件. references: http://www.cnblogs.com/naive/p/3568887.html http://stackoverflow.com/questions/20495620/qt-5-1-1-application-failed-to-start-because-platform-plu

pyqt5程序使用py2exe打包后运行时报找不到Qt platform plugin ‘windows’错误

pyqt5程序使用py2exe打包后运行时报找不到Qt platform plugin 'windows'错误 现象描述: 64位windows系统下直接将pyqt5的plugins下的platforms文件夹复制到exe相同目录即可,但在32位系统下一直报找不到Qt platform plugin 'windows'错误. 解决方案: 在exe同目录下新建plugins文件夹,然后将platfroms文件夹移到新建的文件夹下,同时修改main方法,添加以下代码: QApplication.ad

问题解决:it could not find or load the Qt platform plugin "windows"

问题:在使用Qt5.3.2编写程序并release,文件夹中已经添加了必要的dll,但在其他机子上运行程序失败,出现了下面的情况: 解决方法一:在C:\Qt\Qt5.3.2\5.3中进入mingw482_32文件夹,将plugins\platforms整个目录复制exe执行文件所在的文件夹目录中,程序即可运行. 以下是网上几个其他方法的总结: 解决方法二:复制你exe需要的qt插件,首先要在源程序中的main函数中加上QApplication::addLibraryPath("./plugins

it could not find or load the Qt platform plugin "windows"

本机环境:win 10 + Qt 5.6 问题: 在使用Qt5.6编写程序并release,文件夹中已经添加了必要的dll,但在其他机子上运行程序失败,出现了下面的情况: 解决办法: 在D:\Qt\5.6中进入mingw49_32文件夹(ps:具体路径看个人),将plugins\platforms整个目录复制exe执行文件所在的文件夹目录中,程序即可运行 原文地址:https://www.cnblogs.com/Geek-H/p/10626539.html

关于ubuntu下qt编译显示Cannot connect creator comm socket /tmp/qt_temp.xxx/stub-socket的解决办法

今天在ubuntu下安装了qtcreator,准备测试一下是否能用,果然一测试就出问题了,简单编写后F5编译在gnome-terminal中出现 Cannot connect creator comm socket /tmp/qt_temp.u14973/stub-socket: No such file or directory 于是查了一下,知道qt不能用gnome-terminal执行,需要使用x-team,于是想到了解决方法: 找到:工具(Tools)->环境(environment)-

解决CentOS遇到Qt编译(error: cannot find -lGL)

笔者CentOS 6.5 64位,安装完成Qt5.5.1.随意新建一个Qt Widgets Application. 结果遇到Qt编译问题,提示信息如下: error: cannot find -lGL error: collect2: error: ld returned 1 exit status 原因是系统缺乏相应的OpenGL库文件造成,解决方案如下: 进入CentOS系统的终端,依次执行以下命令,即可解决. su root yum install mesa-libGL-devel me

在windows直接运行Qt编译出来的可执行程序出现了如下提示错误: this application has requested the runtime to terminate it an unusual way.

在windows直接运行Qt编译出来的可执行程序出现了如下提示错误: this application has requested the runtime to terminate it an unusual way. please contact the application’s support team for more information. 出现这种情况是因为缺少该程序运行所需要的动态链接库. 解决方法一:修改系统环境变量,在Path中添加Qt的bin路径就OK了.不过这只能在本机运

QCustomplot的使用以及编译动态链接库的过程

#ifndef _HLM_GRAPH_H_ #define _HLM_GRAPH_H_ #include <qcustomplot.h> class hlm_temp_Graph : public QWidget { public:     explicit hlm_temp_Graph(QWidget *parent = 0);     ~hlm_temp_Graph();     bool set_XY_Vector_value(QVector<double> &, Q