win 7 vs2010 nmake fatal error U1077
Hi. Trying to build 4.7.4 opensource with vs2010. This is what I have done:
- unzipped
- added bin to PATH
- opened vs2010 command promp
- ran configure -debug-and-release -opensource -platform win32-msvc2010 -no-phonon -no-phonon-backend -no-webkit
- ran nmake
I have also tried different configure options as well as nmake sub-src but I keep getting fatal errors always. I've googled and searched this forum and tried all the suggestions to no luck.
Code:
cl -c -nologo -Zm200 -Zc:wchar_t- -O2 -MD -MP -GR -EHsc -W3 -w34100 -w34
189 -DUNICODE -DWIN32 -DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_NO_DEBUG -DQT_PLUGIN
-DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_HAVE_MMX -DQT_HAVE_3DNOW -DQT_HAVE_SSE -DQT_
HAVE_MMXEXT -DQT_HAVE_SSE2 -DQT_THREAD_SUPPORT -I"..\..\..\..\include\QtCore" -I
"..\..\..\..\include\QtNetwork" -I"..\..\..\..\include" -I"..\..\..\..\include\A
ctiveQt" -I"tmp\moc\release_shared" -I"..\..\..\..\mkspecs\win32-msvc2010" -Fotm
p\obj\release_shared\ @C:\Users\xxx\AppData\Local\Temp\nmAB96.tmp
moc_qnativewifiengine.cpp
moc_qnetworksession_impl.cpp
moc_qbearerengine_impl.cpp
link /LIBPATH:"c:\Programming\3rdParty\Qt\lib" /LIBPATH:"c:\Programming\
3rdParty\Qt\lib" /NOLOGO /INCREMENTAL:NO /DLL /MANIFEST /MANIFESTFILE:"tmp\obj\r
elease_shared\qnativewifibearer.intermediate.manifest" /VERSION:4.74 /OUT:..\..\
..\..\plugins\bearer\qnativewifibearer4.dll @C:\Users\xxx\AppData\Local\Temp\
nmAE35.tmp
Creating library ..\..\..\..\plugins\bearer\qnativewifibearer4.lib and object
..\..\..\..\plugins\bearer\qnativewifibearer4.exp
mt.exe -nologo -manifest "tmp\obj\release_shared\qnativewifibearer.inter
mediate.manifest" -outputresource:..\..\..\..\plugins\bearer\qnativewifibearer4.
dll;2
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A
\bin\mt.exe"' : return code '0x1f'
Stop.
NMAKE : fatal error U1077: '"c:\Program Files (x86)\Microsoft Visual Studio 10.0
\VC\BIN\nmake.exe"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: 'cd' : return code '0x2'
Stop.
NMAKE : fatal error U1077: 'cd' : return code '0x2'
Stop.
NMAKE : fatal error U1077: 'cd' : return code '0x2'
Stop.
Please let me know if you have any ideas.
Thanks.
Re: win 7 vs2010 nmake fatal error U1077
I had some rather misterious errors when dealing with mt, nmake and MSVC, most of them produced that same error code (U1077) at some point. Some of them are:
- build failing when run on non NTFS or shared partitions (both network and VM shares, btw)
- some bizarre race conditions on multicore CPU (on windows 7)
- antivirus messing up the linking.
Re: win 7 vs2010 nmake fatal error U1077
Today I has the same failure, when compiling QT 4.7.4.
After deactivation of my Kaspersky Antivirus and starting "nmake" again (without cleaning) I succeeded.
Greetings
Re: win 7 vs2010 nmake fatal error U1077
Thanks for your input. I did manage to build most of Qt by opening the projects.sln in VS2010. At least the core libs. I'll try to disable my antivirus and try again.