qt msvc2015无法编译出错问题

取消勾选,点击右下角修改。卸载后,再次选中,点击修改,再次安装

 

 

 

 

57:00: 为项目untitled4执行步骤 ...
15:57:00: 配置没有改变, 跳过 qmake 步骤。
15:57:00: 正在启动 "D:\Qt\Qt5.14.1\Tools\QtCreator\bin\jom.exe"

D:\Qt\Qt5.14.1\Tools\QtCreator\bin\jom.exe -f Makefile.Debug
D:\Qt\Qt5.14.1\5.14.1\msvc2015_64\bin\uic.exe ..\untitled4\mainwindow.ui -o ui_mainwindow.h

jom: D:\qt_project\build-untitled4-Desktop_Qt_5_14_1_MSVC2015_64bit-Debug\Makefile.Debug [ui_mainwindow.h] Error 2
D:\Qt\Qt5.14.1\5.14.1\msvc2015_64\bin\moc.exe -DUNICODE -D_UNICODE -DWIN32 -D_ENABLE_EXTENDED_ALIGNED_STORAGE -DWIN64 -DQT_DEPRECATED_WARNINGS -DQT_QML_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB --compiler-flavor=msvc --include D:/qt_project/build-untitled4-Desktop_Qt_5_14_1_MSVC2015_64bit-Debug/debug/moc_predefs.h -ID:/Qt/Qt5.14.1/5.14.1/msvc2015_64/mkspecs/win32-msvc -ID:/qt_project/untitled4 -ID:/Qt/Qt5.14.1/5.14.1/msvc2015_64/include -ID:/Qt/Qt5.14.1/5.14.1/msvc2015_64/include/QtWidgets -ID:/Qt/Qt5.14.1/5.14.1/msvc2015_64/include/QtGui -ID:/Qt/Qt5.14.1/5.14.1/msvc2015_64/include/QtANGLE -ID:/Qt/Qt5.14.1/5.14.1/msvc2015_64/include/QtCore -I. -I"d:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE" -I"d:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\ATLMFC\INCLUDE" -I"C:\Program Files (x86)\Windows Kits\10\include\10.0.22000.0\ucrt" -I"C:\Program Files (x86)\Windows Kits\10\include\10.0.22000.0\shared" -I"C:\Program Files (x86)\Windows Kits\10\include\10.0.22000.0\um" -I"C:\Program Files (x86)\Windows Kits\10\include\10.0.22000.0\winrt" ..\untitled4\mainwindow.h -o debug\moc_mainwindow.cpp
jom: D:\qt_project\build-untitled4-Desktop_Qt_5_14_1_MSVC2015_64bit-Debug\Makefile.Debug [debug\moc_mainwindow.cpp] Error 2
jom: D:\qt_project\build-untitled4-Desktop_Qt_5_14_1_MSVC2015_64bit-Debug\Makefile [debug] Error 2
15:57:01: 进程"D:\Qt\Qt5.14.1\Tools\QtCreator\bin\jom.exe"退出,退出代码 2 。
Error while building/deploying project untitled4 (kit: Desktop Qt 5.14.1 MSVC2015 64bit)
When executing step "Make"
15:57:01: Elapsed time: 00:00.

posted @ 2023-11-24 16:26  txwtech  阅读(380)  评论(2编辑  收藏  举报