Qt应用程序:无法在Windows 8上加载平台插件“windows”但在Windows 7上没有问题

时间:2014-02-06 10:03:41

标签: windows qt dll

已经发布了很多类似的问题,但没有人对我有用。 在Windows 7上,我可以使用可执行文件夹中的相应dll独立运行我的程序。

在Windows 8.1中,我无法使用Qt Creator或独立运行我的项目。我收到了错误

  

此应用程序无法启动,因为它无法找到或加载   Qt平台插件“windows”。可用的平台插件是:minimal,   屏幕外。

我将平台dll放在./platforms和./中,如同herehere建议的那样。不过,我的应用程序将无法启动并给我同样的错误。

我已经在我的C:\Qt\Qt5.2.0-mingw\5.2.0\mingw48_32\plugins\platforms目录中包含了所有dll。

我该如何解决这个问题?

1 个答案:

答案 0 :(得分:0)

对我来说,安装了Qt 5.2.0和MSVC 2012后,需要以下dll才能在Windows 7和8.1上执行app(发布版本):

-example.exe //My application
-icudt51.dll
-icuin51.dll
-icuuc51.dll
-libEGL.dll
-libGLESv2.dll
-Qt5Core.dll
-Qt5Gui.dll
-Qt5Widgets.dll
-platforms // Folder
 --qminimal.dll
 --qoffscreen.dll
 --qwindows.dll