【问题标题】:Error building Qt 5.3.0 on Windows 7 x64: idc.exe qguiapplication.cpp could not find or load the Qt platform plugin "windows"在 Windows 7 x64 上构建 Qt 5.3.0 时出错:idc.exe qguiapplication.cpp 无法找到或加载 Qt 平台插件“windows”
【发布时间】:2014-05-28 18:12:30
【问题描述】:

我下载了qt-everywhere-opensource-src-5.3.0.zip 并尝试在 Windows 7 x64 上构建。我之前能够在同一台机器上构建 Qt 5.2.1,所以我很困惑为什么 5.3.0 不工作。

我正在使用 Visual Studio 2008 x64 Win64 命令提示符。

我尝试了几种配置:

configure -prefix %CD%\qtbase -developer-build -opensource -nomake tests -no-opengl -no-angle -plugin-sql-sqlite -platform win32-msvc2008 -make-tool jom

configure -prefix %CD%\qtbase -developer-build -opensource -nomake tests -opengl desktop -plugin-sql-sqlite -platform win32-msvc2008 -make-tool jom

configure -prefix %CD%\qtbase -developer-build -opensource -nomake tests -opengl desktop -platform win32-msvc2008 -make-tool jom

我得到相同的结果:弹出 3 个相同的消息框,然后最终构建以错误结束。

消息框是:


Microsoft Visual C++ 调试库

调试错误!

程序:c:\Qt\qt530_x64\qtbase\bin\idc.exe 模块:5.3.0 文件:kernel\qguiapplication.cpp 线路:999

此应用程序无法启动,因为它无法找到或加载 Qt 平台插件“windows”。

可用的平台插件有:minimal、offscreen、windows。

重新安装应用程序可能会解决此问题。

(按重试调试应用程序)

中止重试忽略

有什么想法吗?

【问题讨论】:

    标签: visual-studio-2008 windows-7 64-bit qt5 build-error


    【解决方案1】:

    无论如何,我让它满足了我的需要。我删除了文件夹中的所有内容: qt声明式 qtwebkit qtwebkit-examples

    因为这些模块导致构建失败,而我不需要它们。

    然后,我配置了:

    configure -prefix %CD%\qtbase -developer-build -opensource -nomake tests -no-compile-examples -no-opengl -no-angle -plugin-sql-sqlite -platform win32-msvc2008 -qtlibinfix _mycompany -make-tool jom
    

    并且 jom 成功构建了 Qt 5.3.0。

    【讨论】:

      猜你喜欢
      • 2016-11-16
      • 2017-03-01
      • 2018-06-08
      • 1970-01-01
      • 1970-01-01
      • 2018-05-08
      • 1970-01-01
      • 2016-01-08
      • 1970-01-01
      相关资源
      最近更新 更多