[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/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值