致命错误 U1077:“cl":返回代码“0x1"新 [英] fatal error U1077: 'cl' : return code '0x1' new

查看:176
本文介绍了致命错误 U1077:“cl":返回代码“0x1"新的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我安装了 Qt 5.2.1 64 位桌面版 (MSVC 2012).

I installed Qt 5.2.1 64-bit for Desktop (MSVC 2012).

每当我运行应用程序时,我都会收到以下错误,请记住:

Whenever I run the application i get the following error, please keep in mind that:

  • 我有 VS Ultimate 2012
  • 我已经尝试了一些答案,但仍然遇到同样的问题
  • 我已经安装了 CDB

如果我使用 nmake:

If I use nmake:

15:40:30: Running steps for project hi...
15:40:30: Configuration unchanged, skipping qmake step.
15:40:30: Starting: "C:\Qt\Qt5.2.1\Tools\QtCreator\bin\nmake.exe" 
C:\Qt\Qt5.2.1\Tools\QtCreator\bin\nmake.exe -f Makefile.Debug
cl -c -nologo -Zm200 -Zc:wchar_t -Zi -MDd -GR -W3 -w34100 -w34189 -EHsc /Fddebug\hi.pdb -DUNICODE -DWIN32 -DQT_QML_DEBUG -DQT_DECLARATIVE_DEBUG -DQT_CORE_LIB -I"..\..\..\Qt\Qt5.2.1\5.2.1\msvc2012_64\include" -I"..\..\..\Qt\Qt5.2.1\5.2.1\msvc2012_64\include\QtCore" -I"debug" -I"." -I"..\..\..\Qt\Qt5.2.1\5.2.1\msvc2012_64\mkspecs\win32-msvc2012" -Fodebug\ @C:\Users\FUJITSU\AppData\Local\Temp\nm2248.tmp
'cl' is not recognized as an internal or external command, operable program or batch file.
NMAKE : fatal error U1077: 'cl' : return code '0x1'
Stop.
NMAKE : fatal error U1077: 'C:\Qt\Qt5.2.1\Tools\QtCreator\bin\nmake.exe' : return code '0x2'
Stop.
15:40:30: The process "C:\Qt\Qt5.2.1\Tools\QtCreator\bin\nmake.exe" exited with code 2.
Error while building/deploying project hi (kit: Desktop Qt 5.2.1 MSVC2012 64bit)
When executing step 'Make'

如果我使用 jom :

If I use jom :

15:46:19: Starting: "C:\Qt\Qt5.2.1\Tools\QtCreator\bin\jom.exe" 
C:\Qt\Qt5.2.1\Tools\QtCreator\bin\jom.exe -f Makefile.Debug
cl -c -nologo -Zm200 -Zc:wchar_t -Zi -MDd -GR -W3 -w34100 -w34189 -EHsc /Fddebug\hi.pdb -DUNICODE -DWIN32 -DQT_QML_DEBUG -DQT_DECLARATIVE_DEBUG -DQT_CORE_LIB -I"..\..\..\Qt\Qt5.2.1\5.2.1\msvc2012_64\include" -I"..\..\..\Qt\Qt5.2.1\5.2.1\msvc2012_64\include\QtCore" -I"debug" -I"." -I"..\..\..\Qt\Qt5.2.1\5.2.1\msvc2012_64\mkspecs\win32-msvc2012" -Fodebug\ @C:\Users\FUJITSU\AppData\Local\Temp\main.obj.6696.0.jom
jom: C:\Users\FUJITSU\build-hi-Desktop_Qt_5_2_1_MSVC2012_64bit-Debug\Makefile.Debug [debug\main.obj] Error 2
jom: C:\Users\FUJITSU\build-hi-Desktop_Qt_5_2_1_MSVC2012_64bit-Debug\Makefile [debug] Error 2
15:46:19: The process "C:\Qt\Qt5.2.1\Tools\QtCreator\bin\jom.exe" exited with code 2.
Error while building/deploying project hi (kit: Desktop Qt 5.2.1 MSVC2012 64bit)
When executing step 'Make'

为什么我会收到错误消息,我该如何解决?

Why am I getting the errors and how can I fix this?

推荐答案

您可能在没有设置环境的情况下运行它.使用开始菜单中的 Visual Studio Developer Prompt 项启动 cmd.exe,然后使用 jom/nmake 工具从

You're probably running this without environment set up. Launch cmd.exe using Visual Studio Developer Prompt item from the Start menu and then use jom/nmake tools from there.

这篇关于致命错误 U1077:“cl":返回代码“0x1"新的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆