[Qt]Problem:the Qt platform plugin "windows"

写在前面

今天在测试写的Qt软件时,将Qt编译生成的软件,与使用ProcessExplorer查找出来的相应的DLL,一起发送到XP SP3的电脑上,来测试。报出来两个错误,如下图示:



问题1:

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

Reinstalling the application may fix this problem.

问题2:

Runtime Error!

Program: C:\Program Files\.... - 4.0.exe

This application has requested the Runtime to terminate it in an unusual way.

Please contact the application's support team for more information.


解决方案:

是查了一些资料,此处就不再多述了。解决的一个主要方法,只是将Qt安装目录下的一个platforms文件夹一同拷贝到Qt生成的软件下。

platforms文件夹路径:Qt\Qt5.5.0\5.5\mingw492_32\plugins\,该路径下有一个“platforms“文件夹,其中包含的是平台相关的一些动态库文件。将这个文件夹一起打包发布,则可以解决上面的问题。


**注意:这一切的前提是,请一定解决掉其它的DLL动态库的依赖问题。相关资料请参考Blog《将Qt动态链接生成的exe及依赖dll打包方法》——http://blog.163.com/qimo601@126/blog/static/1582209320132291718389/

你可能感兴趣的:(Qt,qt,Qt打包,发布)