NMAKE:致命错误 U1077:返回代码“0xc0000135" [英] NMAKE : fatal error U1077: return code '0xc0000135'
问题描述
我正在尝试按照此处解释的步骤进行操作: 但在控制台输入以下内容后:
I'm trying to follow steps explained here: but after entering the following into console:
configure.exe -release -no-webkit -no-phonon -no-phonon-backend -no-script -no-scripttools -no-qt3support -no-multimedia -no-ltcg
我收到以下错误:
....
....
....
Running syncqt...
Creating qmake...
Microsoft (R) Program Maintenance Utility Version 10.00.30319.01
Copyright (C) Microsoft Corporation. All rights reserved.
cl -c -Fo./ -W3 -nologo -O2 /MP -I. -Igenerators -Igenerators\unix -Igenerators\win32 -Igenerators\mac -Igenerators\symbian
-IE:\qt_source\include -IE:\qt_source\include\QtCore -IE:\qt_source\include -IE:\qt_source\include\QtCore -IE:\qt_source\src\corelib
\global -IE:\qt_source\src\corelib\xml -IE:\qt_source\mkspecs\win32-msvc2010 -IE:\qt_source\tools\shared -DQT_NO_TEXTCODEC -DQT_NO
_UNICODETABLES -DQT_LITE_COMPONENT -DQT_NODLL -DQT_NO_STL -DQT_NO_COMPRESS -DUNICODE -DHAVE_QCONFIG_CPP -DQT_BUILD_QMAKE -DQT_NO_THREA
D -DQT_NO_QOBJECT -DQT_NO_GEOM_VARIANT -DQT_NO_DATASTREAM -DQT_NO_PCRE -DQT_BOOTSTRAPPED -DQLIBRARYINFO_EPOCROOT -c -Yc -Fpqmake_pch.
pch -TP qmake_pch.h
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 10.0\VC\bin\cl.EXE"' : return code '0xc0000135'
Stop.
Microsoft (R) Program Maintenance Utility Version 10.00.30319.01
Copyright (C) Microsoft Corporation. All rights reserved.
del qbitarray.obj qbuffer.obj qcryptographichash.obj qfsfileengine.obj qfsfileengine_iterator.obj qbytearray.obj qvsnprin
tf.obj qbytearraymatcher.obj qdatetime.obj qdir.obj qdiriterator.obj qfile.obj qtemporaryfile.obj qabstractfileengine.obj qfsfi
leengine_win.obj qsystemlibrary.obj qfsfileengine_iterator_win.obj qfileinfo.obj qglobal.obj qhash.obj qiodevice.obj qlist.obj
qlinkedlist.obj qlocale.obj qmalloc.obj qmap.obj qregexp.obj qtextcodec.obj qutfcodec.obj qstring.obj qstringlist.obj qtextstr
eam.obj qdatastream.obj quuid.obj qvector.obj qsettings.obj qlibraryinfo.obj qvariant.obj qurl.obj qsettings_win.obj qmetatype
.obj qxmlstream.obj qxmlutils.obj qnumeric.obj
Could Not Find E:\qt_source\qmake\qbitarray.obj
del project.obj main.obj makefile.obj unixmake.obj unixmake2.obj mingw_make.obj option.obj winmakefile.obj projectgenerator.ob
j property.obj meta.obj makefiledeps.obj metamakefile.obj xmloutput.obj pbuilder_pbx.obj borland_bmake.obj msvc_nmake.obj msvc_vcproj
.obj msvc_vcxproj.obj msvc_objectmodel.obj msbuild_objectmodel.obj symmake.obj initprojectdeploy_symbian.obj symmake_abld.obj symmake
_sbsv2.obj symbiancommon.obj registry.obj epocroot.obj
Could Not Find E:\qt_source\qmake\project.obj
del qmake_pch.obj
Could Not Find E:\qt_source\qmake\qmake_pch.obj
del qmake_pch.pch
Could Not Find E:\qt_source\qmake\qmake_pch.pch
del qsystemlibrary.obj
Could Not Find E:\qt_source\qmake\qsystemlibrary.obj
del vc60.pdb
Could Not Find E:\qt_source\qmake\vc60.pdb
del vc70.pdb
Could Not Find E:\qt_source\qmake\vc70.pdb
del qmake.pdb
Could Not Find E:\qt_source\qmake\qmake.pdb
del qmake.ilk
Could Not Find E:\qt_source\qmake\qmake.ilk
del qmake.tds
Could Not Find E:\qt_source\qmake\qmake.tds
Microsoft (R) Program Maintenance Utility Version 10.00.30319.01
Copyright (C) Microsoft Corporation. All rights reserved.
cl -c -Fo./ -W3 -nologo -O2 /MP -I. -Igenerators -Igenerators\unix -Igenerators\win32 -Igenerators\mac -Igenerators\symbian
-IE:\qt_source\include -IE:\qt_source\include\QtCore -IE:\qt_source\include -IE:\qt_source\include\QtCore -IE:\qt_source\src\corelib
\global -IE:\qt_source\src\corelib\xml -IE:\qt_source\mkspecs\win32-msvc2010 -IE:\qt_source\tools\shared -DQT_NO_TEXTCODEC -DQT_NO
_UNICODETABLES -DQT_LITE_COMPONENT -DQT_NODLL -DQT_NO_STL -DQT_NO_COMPRESS -DUNICODE -DHAVE_QCONFIG_CPP -DQT_BUILD_QMAKE -DQT_NO_THREA
D -DQT_NO_QOBJECT -DQT_NO_GEOM_VARIANT -DQT_NO_DATASTREAM -DQT_NO_PCRE -DQT_BOOTSTRAPPED -DQLIBRARYINFO_EPOCROOT -c -Yc -Fpqmake_pch.
pch -TP qmake_pch.h
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 10.0\VC\bin\cl.EXE"' : return code '0xc0000135'
Stop.
Building qmake failed, return code 2
E:\qt_source>
我做错了什么?
推荐答案
网络搜索返回代码 0xc0000135"出现了信息,这意味着 nmake 找不到编译器.这意味着您没有在 Visual Studio 命令外壳中启动 nmake.如果要使用标准命令外壳,则必须在 Visual Studio 安装的 VC 目录中调用 vcvarsall.bat 或类似文件.如果仍然不起作用,请检查 INCLUDE 和 LIB 环境变量.它们应该包含 ...\VC\INCLUDE 和 %ProgramFiles%\Microsoft SDKs\Windows\v6.0A\include 以及相应的 LIB 目录.
A web search for "return code 0xc0000135" turned up the information that this means nmake cannot find the compiler. Which means that you did not start nmake in a Visual Studio command shell. If you want to use a standard command shell you have to call vcvarsall.bat or similar in the VC directory of you Visual Studio installation. If it still does not work, check the INCLUDE and LIB environment variables. They should contain ...\VC\INCLUDE and %ProgramFiles%\Microsoft SDKs\Windows\v6.0A\include and the corresponding LIB dirs.
这篇关于NMAKE:致命错误 U1077:返回代码“0xc0000135"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!