【问题标题】:Qt application: Failed to load platform plugin “windows" on Windows 8 but no issues on Windows 7Qt 应用程序:无法在 Windows 8 上加载平台插件“windows”,但在 Windows 7 上没有问题
【发布时间】:2014-03-03 04:50:20
【问题描述】:

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

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

此应用程序无法启动,因为它无法找到或加载 Qt 平台插件“windows”。可用的平台插件有:最小, 离屏。

我按照herehere 等其他地方的建议将我的平台dll 放在./platforms 和./ 中。不过,我的应用程序不会启动并给我同样的错误。

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

我该如何解决这个问题?

【问题讨论】:

  • 在与可执行文件相同的路径中尝试platformS文件夹(末尾有一个's'),在我的Windows 7系统上,MinGW Qt构建运行时没有platforms/qwindows.dll,可能是在 Windows 8 上需要。
  • 编辑了,其实我用过平台s

标签: windows qt dll


【解决方案1】:

对我来说,安装了 Qt 5.2.0 和 MSVC 2012,需要以下 dll 来在 Windows 7 和 8.1 上执行应用程序(发行版):

-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

【讨论】:

  • 我觉得有点不相关,因为我使用的是 mingw 编译器
  • @Wilhelmsen 由于您没有提供您使用的 dll 列表,我不知道它是否只是 qt creator+mingw 问题还是包含的 dll 中的问题。但是,我必须承认,我没有仔细阅读问题,并错过了您的应用程序无法在 QtCreator 中执行的事实。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2013-07-15
  • 1970-01-01
  • 2017-03-01
  • 2018-05-08
  • 2016-11-16
相关资源
最近更新 更多