【问题标题】:Qt creator compile error "cannot find uic.exe from msvc 2012 path"Qt 创建者编译错误“无法从 msvc 2012 路径找到 uic.exe”
【发布时间】:2015-01-26 15:58:25
【问题描述】:

我是使用 qt creator 开发 GUI 的新手。尝试运行小部件 c++ 程序时,我在编译输出终端上收到此错误。

16:37:20: Running steps for project gui...
16:37:20: Configuration unchanged, skipping qmake step.
16:37:21: Starting: "C:\Qt\Tools\QtCreator\bin\jom.exe" 
C:\Qt\Tools\QtCreator\bin\jom.exe -f Makefile.Debug
C:\Qt\5.4\msvc2012_opengl\bin\uic.exe ..\gui\mainwindow.ui -o ui_mainwindow.h
'C:\Qt\5.4\msvc2012_opengl\bin\uic.exe' is not recognized as an internal or external command, operable program or batch file.
jom: C:\Users\JOSEPH\SkyDrive\Documents\qt\build gui-Desktop_Qt_5_4_0_MSVC2012_OpenGL_32bit-Debug\Makefile.Debug [ui_mainwindow.h] Error 1
jom: C:\Users\JOSEPH\SkyDrive\Documents\qt\build-gui-Desktop_Qt_5_4_0_MSVC2012_OpenGL_32bit-Debug\Makefile [debug] Error 2
16:37:24: The process "C:\Qt\Tools\QtCreator\bin\jom.exe" exited with code 2.
Error while building/deploying project gui (kit: Desktop Qt 5.4.0 MSVC2012 OpenGL 32bit)
When executing step "Make"
16:37:24: Elapsed time: 00:04.

已经检查了我在那里找不到的 uic.exe 的给定路径。有什么方法可以下载exe文件并粘贴到路径?

【问题讨论】:

  • 你是如何安装 Qt 的?
  • 我使用的是qt windows版的在线安装程序
  • 安装损坏?尝试重新安装...
  • 谢谢 问题应该出在msvc 2012上,我一个人没办法下载
  • 你有没有得到这个答案?这也发生在我身上。

标签: c++ qt makefile


【解决方案1】:

问题是由于与 msvc 2012 的兼容性问题引起的。

我所做的只是为 msvc 2013 下载 Qt 的离线安装程序。然后重新安装程序。

感谢您的帮助和建议

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-10-12
    • 1970-01-01
    • 2021-03-04
    相关资源
    最近更新 更多