-1
13:42:04: Running steps for project untitled...
13:42:04: Configuration unchanged, skipping qmake step.
13:42:04: Starting: "C:\Qt\Qt5.0.2\Tools\QtCreator\bin\jom.exe" C:\Qt\Qt5.0.2\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_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_OPENGL_ES_2 -DQT_OPENGL_ES_2_ANGLE -I"..\..\..\..\5.0.2\msvc2012_64\include" -I"..\..\..\..\5.0.2\msvc2012_64\include\QtWidgets" -I"..\..\..\..\5.0.2\msvc2012_64\include\QtGui" -I"..\..\..\..\5.0.2\msvc2012_64\include\QtCore" -I"debug" -I"." -I"." -I"..\..\..\..\5.0.2\msvc2012_64\mkspecs\win32-msvc2012" -Fodebug\ @C:\Users\nimisha\AppData\Local\Temp\main.obj.5148.297.jom
'cl' is not recognized as an internal or external command,
operable program or batch file.
jom: C:\Qt\Qt5.0.2\Tools\QtCreator\bin\build-untitled-Desktop_Qt_5_0_2_MSVC2012_64bit-Debug\Makefile.Debug [debug\main.obj] Error 1
    cl -c -nologo -Zm200 -Zc:wchar_t -Zi -MDd -GR -W3 -w34100 -w34189 -EHsc -DUNICODE -DWIN32 -DQT_QML_DEBUG -DQT_DECLARATIVE_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_OPENGL_ES_2 -DQT_OPENGL_ES_2_ANGLE -I"..\..\..\..\5.0.2\msvc2012_64\include" -I"..\..\..\..\5.0.2\msvc2012_64\include\QtWidgets" -I"..\..\..\..\5.0.2\msvc2012_64\include\QtGui" -I"..\..\..\..\5.0.2\msvc2012_64\include\QtCore" -I"debug" -I"." -I"." -I"..\..\..\..\5.0.2\msvc2012_64\mkspecs\win32-msvc2012" -Fodebug\ @C:\Users\nimisha\AppData\Local\Temp\mainwindow.obj.5148.656.jom
'cl' is not recognized as an internal or external command,
operable program or batch file.
    cl -c -nologo -Zm200 -Zc:wchar_t -Zi -MDd -GR -W3 -w34100 -w34189 -EHsc -DUNICODE -DWIN32 -DQT_QML_DEBUG -DQT_DECLARATIVE_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_OPENGL_ES_2 -DQT_OPENGL_ES_2_ANGLE -I"..\..\..\..\5.0.2\msvc2012_64\include" -I"..\..\..\..\5.0.2\msvc2012_64\include\QtWidgets" -I"..\..\..\..\5.0.2\msvc2012_64\include\QtGui" -I"..\..\..\..\5.0.2\msvc2012_64\include\QtCore" -I"debug" -I"." -I"." -I"..\..\..\..\5.0.2\msvc2012_64\mkspecs\win32-msvc2012" -Fodebug\ @C:\Users\nimisha\AppData\Local\Temp\moc_mainwindow.obj.5148.890.jom
'cl' is not recognized as an internal or external command,
operable program or batch file.
jom: C:\Qt\Qt5.0.2\Tools\QtCreator\bin\build-untitled-Desktop_Qt_5_0_2_MSVC2012_64bit-Debug\Makefile.Debug [debug\mainwindow.obj] Error 1

这些是我面临的错误。我已经设置了路径,下载了所有内容,但仍然有错误。该项目正在建设中,但在两者之间停止并显示错误...

4

4 回答 4

1

这一点是问题所在。

    'cl' is not recognized as an internal or external command

看起来您的路径中没有 Visual Studio 命令行工具。您可以使用通常安装的快捷方式“打开 Visual Studio 命令提示符 (2010)”,也可以从命令提示符运行

    "C:\Program Files\Microsoft Visual Studio 10.0\VC\vcvarsall.bat" x86

这些说明适用于 VS 2010,如果您有 2012,则需要相应地更改路径。

于 2013-07-18T08:29:28.937 回答
0

If you work with QTCreator go to Extras->Options and select a ToolChain. If MSVC is not detected automatically setup the path manually. In your project settings setup your config to use the MSVC toolchain.

于 2013-07-18T10:16:28.650 回答
0

看起来您没有Visual Studio 目录的PATH条目。bin检查您的环境变量。

于 2013-07-18T08:30:57.160 回答
0

您的计算机中似乎没有安装 Visual Studio 2010。

于 2013-07-18T08:33:36.803 回答