无法加载平台插件“windows".可用平台有:错误 [英] Failed to load platform plugin "windows". Available platforms are : Error

查看:118
本文介绍了无法加载平台插件“windows".可用平台有:错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 Visual Studio Qt 插件的帮助下,使用 Visual Studio 2012 32 位和 Qt5 SDK 创建了 Qt 项目.我使用的是 Windows 7 Ultimate 操作系统.

I've created Qt project using Visual studio 2012 32 bit and Qt5 SDK with the help of Visual studio Qt addon. I'm using Windows 7 ultimate OS.

我创建了 QApplication GUI 项目,它基本上使用以下库:

I have created QApplication GUI Project which basically uses the following libraries:

qtmain.lib
Qt5Core.lib
Qt5Gui.lib
Qt5Network.lib
Ws2_32.lib
Winhttp.lib
Winmm.lib
Qt5Widgets.lib
Qt5PlatformSupport.lib
imm32.lib

而且我成功地构建了应用程序二进制文件,没有任何错误.

And I have succeed in building the application binary without any errors.

我正在尝试在复制了以下 dll 的测试机 Windows 7 桌面上运行此应用程序:

I’m trying to run this application on test machine windows 7 desktop having following dlls copied there:

icudt51.dll
icuin51.dll
icuuc51.dll
libEGL.dll
libGLESv2.dll
Qt5Core.dll
Qt5Network.dll
Qt5GUI.dll
Qt5Widgets.dll
qwindows.dll [copied from msvc2012\plugins\platform folder ]

我收到错误:

无法加载平台插件windows".可用平台是:尝试运行应用程序时.

Failed to load platform plugin "windows". Available Platform are : while trying to run the application.

我会错过什么?如何让它在windows平台上运行?请帮助我解决此问题.

What would i have missed? How to make it run on windows platform? Please Help me to troubleshoot this.

我已按照之前发布的有关此问题的链接进行操作.但他们都没有解决我的问题.我缺少什么配置?

I've followed the links posted about this problem previously. but none of them are solved my problem. What configuration I am missing?

推荐答案

需要将平台插件 dll 放入平台子文件夹中,然后才能工作.

The platform plugin dlls would need to be put into the platforms subfolder and then it will work.

这篇关于无法加载平台插件“windows".可用平台有:错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆