Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/visual-studio-2012/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
使用MSVC 2012编译QT失败_Qt_Visual Studio 2012 - Fatal编程技术网

使用MSVC 2012编译QT失败

使用MSVC 2012编译QT失败,qt,visual-studio-2012,Qt,Visual Studio 2012,我安装了QT 5.1 VS2012版本并成功安装。 我在QT Creator中编译项目时出错,其中的“jom”表示: "jom: F:\tmp2\build-testprj-Desktop_Qt_5_1_0_MSVC2012_32bit-Debug\Makefile.Debug [debug\mainwindow.obj] Error 2 jom: F:\tmp2\build-testprj-Desktop_Qt_5_1_0_MSVC2012_32bit-Debug\Makefile.Debug

我安装了QT 5.1 VS2012版本并成功安装。
我在QT Creator中编译项目时出错,其中的“jom”表示:

"jom: F:\tmp2\build-testprj-Desktop_Qt_5_1_0_MSVC2012_32bit-Debug\Makefile.Debug [debug\mainwindow.obj] Error 2
jom: F:\tmp2\build-testprj-Desktop_Qt_5_1_0_MSVC2012_32bit-Debug\Makefile.Debug [debug\moc_mainwindow.obj] Error 2
jom: F:\tmp2\build-testprj-Desktop_Qt_5_1_0_MSVC2012_32bit-Debug\Makefile [debug] Error 2
17:30:06: The process "C:\Qt\Qt5.1.0\Tools\QtCreator\bin\jom.exe" exited with code 2.
生成/部署项目testprj时出错(工具包:桌面Qt 5.1.0 MSVC2012 32位) 执行步骤“Make”时


编译器打印的实际错误是什么?这是生成过程中唯一的错误输出。我认为它可以编译,但编译后失败。你确定吗?QtCreator中有一个名为“编译器输出”的选项卡,请从此处发布更大部分的生成日志…因为jom本身几乎不会导致错误,很可能是错误编译错误,项目文件中的错误可能性较小。我用整个构建日志更新了帖子。可能重复:
    "17:56:29: Running steps for project untitled...
17:56:29: Configuration unchanged, skipping qmake step.
17:56:29: Starting: "C:\Qt\Qt5.0.0\Tools\QtCreator\bin\jom.exe" 
    C:\Qt\Qt5.0.0\Tools\QtCreator\bin\jom.exe -f Makefile.Debug
    cl -c -nologo -Zm200 -Zc:wchar_t -Zi -MDd -GR -W3 -w34100 -w34189 -EHsc -DUNICODE -DWIN32 -DQT_QML_DEBUG -DQT_DECLARATIVE_DEBUG -DQT_PRINTSUPPORT_LIB -DQT_WIDGETS_LIB -DQT_SQL_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_OPENGL_ES_2 -DQT_OPENGL_ES_2_ANGLE -I"C:\Qt\Qt5.0.0\5.0.0\msvc2010\include" -I"C:\Qt\Qt5.0.0\5.0.0\msvc2010\include\QtPrintSupport" -I"C:\Qt\Qt5.0.0\5.0.0\msvc2010\include\QtWidgets" -I"C:\Qt\Qt5.0.0\5.0.0\msvc2010\include\QtSql" -I"C:\Qt\Qt5.0.0\5.0.0\msvc2010\include\QtGui" -I"C:\Qt\Qt5.0.0\5.0.0\msvc2010\include\QtCore" -I"debug" -I"." -I"." -I"C:\Qt\Qt5.0.0\5.0.0\msvc2010\mkspecs\win32-msvc2010" -Fodebug\ @C:\Users\BAHADI~1.AYD\AppData\Local\Temp\main.obj.2740.16.jom
jom: F:\tmp2\untitled-build-Desktop_Qt_5_0_0_MSVC2010_32bit_SDK-Debug\Makefile.Debug [debug\main.obj] Error 2
    cl -c -nologo -Zm200 -Zc:wchar_t -Zi -MDd -GR -W3 -w34100 -w34189 -EHsc -DUNICODE -DWIN32 -DQT_QML_DEBUG -DQT_DECLARATIVE_DEBUG -DQT_PRINTSUPPORT_LIB -DQT_WIDGETS_LIB -DQT_SQL_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_OPENGL_ES_2 -DQT_OPENGL_ES_2_ANGLE -I"C:\Qt\Qt5.0.0\5.0.0\msvc2010\include" -I"C:\Qt\Qt5.0.0\5.0.0\msvc2010\include\QtPrintSupport" -I"C:\Qt\Qt5.0.0\5.0.0\msvc2010\include\QtWidgets" -I"C:\Qt\Qt5.0.0\5.0.0\msvc2010\include\QtSql" -I"C:\Qt\Qt5.0.0\5.0.0\msvc2010\include\QtGui" -I"C:\Qt\Qt5.0.0\5.0.0\msvc2010\include\QtCore" -I"debug" -I"." -I"." -I"C:\Qt\Qt5.0.0\5.0.0\msvc2010\mkspecs\win32-msvc2010" -Fodebug\ @C:\Users\BAHADI~1.AYD\AppData\Local\Temp\qcustomplot.obj.2740.16.jom
    cl -c -nologo -Zm200 -Zc:wchar_t -Zi -MDd -GR -W3 -w34100 -w34189 -EHsc -DUNICODE -DWIN32 -DQT_QML_DEBUG -DQT_DECLARATIVE_DEBUG -DQT_PRINTSUPPORT_LIB -DQT_WIDGETS_LIB -DQT_SQL_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_OPENGL_ES_2 -DQT_OPENGL_ES_2_ANGLE -I"C:\Qt\Qt5.0.0\5.0.0\msvc2010\include" -I"C:\Qt\Qt5.0.0\5.0.0\msvc2010\include\QtPrintSupport" -I"C:\Qt\Qt5.0.0\5.0.0\msvc2010\include\QtWidgets" -I"C:\Qt\Qt5.0.0\5.0.0\msvc2010\include\QtSql" -I"C:\Qt\Qt5.0.0\5.0.0\msvc2010\include\QtGui" -I"C:\Qt\Qt5.0.0\5.0.0\msvc2010\include\QtCore" -I"debug" -I"." -I"." -I"C:\Qt\Qt5.0.0\5.0.0\msvc2010\mkspecs\win32-msvc2010" -Fodebug\ @C:\Users\BAHADI~1.AYD\AppData\Local\Temp\dbhelper.obj.2740.16.jom
    cl -c -nologo -Zm200 -Zc:wchar_t -Zi -MDd -GR -W3 -w34100 -w34189 -EHsc -DUNICODE -DWIN32 -DQT_QML_DEBUG -DQT_DECLARATIVE_DEBUG -DQT_PRINTSUPPORT_LIB -DQT_WIDGETS_LIB -DQT_SQL_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_OPENGL_ES_2 -DQT_OPENGL_ES_2_ANGLE -I"C:\Qt\Qt5.0.0\5.0.0\msvc2010\include" -I"C:\Qt\Qt5.0.0\5.0.0\msvc2010\include\QtPrintSupport" -I"C:\Qt\Qt5.0.0\5.0.0\msvc2010\include\QtWidgets" -I"C:\Qt\Qt5.0.0\5.0.0\msvc2010\include\QtSql" -I"C:\Qt\Qt5.0.0\5.0.0\msvc2010\include\QtGui" -I"C:\Qt\Qt5.0.0\5.0.0\msvc2010\include\QtCore" -I"debug" -I"." -I"." -I"C:\Qt\Qt5.0.0\5.0.0\msvc2010\mkspecs\win32-msvc2010" -Fodebug\ @C:\Users\BAHADI~1.AYD\AppData\Local\Temp\mainwindow.obj.2740.32.jom
    cl -c -nologo -Zm200 -Zc:wchar_t -Zi -MDd -GR -W3 -w34100 -w34189 -EHsc -DUNICODE -DWIN32 -DQT_QML_DEBUG -DQT_DECLARATIVE_DEBUG -DQT_PRINTSUPPORT_LIB -DQT_WIDGETS_LIB -DQT_SQL_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_OPENGL_ES_2 -DQT_OPENGL_ES_2_ANGLE -I"C:\Qt\Qt5.0.0\5.0.0\msvc2010\include" -I"C:\Qt\Qt5.0.0\5.0.0\msvc2010\include\QtPrintSupport" -I"C:\Qt\Qt5.0.0\5.0.0\msvc2010\include\QtWidgets" -I"C:\Qt\Qt5.0.0\5.0.0\msvc2010\include\QtSql" -I"C:\Qt\Qt5.0.0\5.0.0\msvc2010\include\QtGui" -I"C:\Qt\Qt5.0.0\5.0.0\msvc2010\include\QtCore" -I"debug" -I"." -I"." -I"C:\Qt\Qt5.0.0\5.0.0\msvc2010\mkspecs\win32-msvc2010" -Fodebug\ @C:\Users\BAHADI~1.AYD\AppData\Local\Temp\moc_mainwindow.obj.2740.32.jom
    cl -c -nologo -Zm200 -Zc:wchar_t -Zi -MDd -GR -W3 -w34100 -w34189 -EHsc -DUNICODE -DWIN32 -DQT_QML_DEBUG -DQT_DECLARATIVE_DEBUG -DQT_PRINTSUPPORT_LIB -DQT_WIDGETS_LIB -DQT_SQL_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_OPENGL_ES_2 -DQT_OPENGL_ES_2_ANGLE -I"C:\Qt\Qt5.0.0\5.0.0\msvc2010\include" -I"C:\Qt\Qt5.0.0\5.0.0\msvc2010\include\QtPrintSupport" -I"C:\Qt\Qt5.0.0\5.0.0\msvc2010\include\QtWidgets" -I"C:\Qt\Qt5.0.0\5.0.0\msvc2010\include\QtSql" -I"C:\Qt\Qt5.0.0\5.0.0\msvc2010\include\QtGui" -I"C:\Qt\Qt5.0.0\5.0.0\msvc2010\include\QtCore" -I"debug" -I"." -I"." -I"C:\Qt\Qt5.0.0\5.0.0\msvc2010\mkspecs\win32-msvc2010" -Fodebug\ @C:\Users\BAHADI~1.AYD\AppData\Local\Temp\moc_qcustomplot.obj.2740.32.jom
jom: F:\tmp2\untitled-build-Desktop_Qt_5_0_0_MSVC2010_32bit_SDK-Debug\Makefile.Debug [debug\qcustomplot.obj] Error 2
jom: F:\tmp2\untitled-build-Desktop_Qt_5_0_0_MSVC2010_32bit_SDK-Debug\Makefile.Debug [debug\mainwindow.obj] Error 2
jom: F:\tmp2\untitled-build-Desktop_Qt_5_0_0_MSVC2010_32bit_SDK-Debug\Makefile.Debug [debug\moc_mainwindow.obj] Error 2
jom: F:\tmp2\untitled-build-Desktop_Qt_5_0_0_MSVC2010_32bit_SDK-Debug\Makefile.Debug [debug\moc_qcustomplot.obj] Error 2"