[Qt-interest] build error with qt 4.5.1 Opensource edition with mt.exe return code 0x1f

Aleksandar Lazic al-qtinterest at none.at
Sat Jun 6 13:03:41 CEST 2009


Dear List,

I have tried to build the qt on windows XP SP3 with 

###
Microsoft Visual Studio 2008
Version 9.0.21022.8 RTM
Microsoft .NET Framework
Version 3.5 SP1

Installed Edition: Standard

Microsoft Visual Basic 2008
Microsoft Visual C# 2008
Microsoft Visual C++ 2008
###

I have called in

Z:\qt\qt-win-opensource-src-4.5.1>configure.exe -opensource

### output

This is the Qt for Windows Open Source Edition.

You are licensed to use this software under the terms of
the GNU General Public License (GPL) version 3
or the GNU Lesser General Public License (LGPL) version 2.1.

Type '3' to view the GNU General Public License version 3 (GPLv3).
Type 'L' to view the Lesser GNU General Public License version 2.1 (LGPLv2.1).
Type 'y' to accept this license offer.
Type 'n' to decline this license offer.

Do you accept the terms of the license?
y
Environment:
     INCLUDE=
       z:\installed_apps\OpenSSL\include
       Z:\installed_apps\Microsoft_DirectX_SDK_March_2009\Include
       c:\Programme\Microsoft Visual Studio 9.0\VC\ATLMFC\INCLUDE
       c:\Programme\Microsoft Visual Studio 9.0\VC\INCLUDE
       C:\Programme\\Microsoft SDKs\Windows\v6.0A\include

     LIB=
       z:\installed_apps\OpenSSL\lib
       Z:\installed_apps\Microsoft_DirectX_SDK_March_2009\Lib\x86
       c:\Programme\Microsoft Visual Studio 9.0\VC\ATLMFC\LIB
       c:\Programme\Microsoft Visual Studio 9.0\VC\LIB
       C:\Programme\\Microsoft SDKs\Windows\v6.0A\lib

     PATH=
       Z:\installed_apps\Microsoft_DirectX_SDK_March_2009\Utilities\Bin\x86
       c:\Programme\Microsoft Visual Studio 9.0\Common7\IDE
       c:\Programme\Microsoft Visual Studio 9.0\VC\BIN
       c:\Programme\Microsoft Visual Studio 9.0\Common7\Tools
       c:\WINDOWS\Microsoft.NET\Framework\v3.5
       c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727
       c:\Programme\Microsoft Visual Studio 9.0\VC\VCPackages
       C:\Programme\\Microsoft SDKs\Windows\v6.0A\bin
       C:\WINDOWS\system32
       C:\WINDOWS
       C:\WINDOWS\System32\Wbem
You are licensed to use this software under the terms of the GNU GPL version 3.You are licensed to use this software und
er the terms of the Lesser GNU LGPL version 2.1.
See Z:/qt/qt-win-opensource-src-4.5.13

  or Z:/qt/qt-win-opensource-src-4.5.1L

Configuration:
     dist-config
     large-config
     medium-config
     minimal-config
     small-config
     full-config
     build_all
     debug
Qt Configuration:
     release
     debug
     zlib
     png
     accessibility
     qt3support
     opengl
     direct3d
     openssl
     ipv6
     scripttools
     xmlpatterns
     phonon
     phonon-backend
     webkit
     svg
     minimal-config
     small-config
     medium-config
     large-config
     full-config

QMAKESPEC...................win32-msvc2008 (detected)
Architecture................windows
Maketool....................nmake
Debug symbols...............yes
Accessibility support.......yes
STL support.................yes
Exception support...........yes
RTTI support................yes
MMX support.................yes
3DNOW support...............yes
SSE support.................yes
SSE2 support................yes
IWMMXT support..............no
OpenGL support..............yes
Direct3D support............yes
OpenSSL support.............yes
QtDBus support..............no
QtXmlPatterns support.......yes
Phonon support..............yes
WebKit support..............yes
QtScriptTools support.......yes
Graphics System.............raster
Qt3 compatibility...........yes

Third Party Libraries:
     ZLIB support............qt
     GIF support.............plugin
     TIFF support............plugin
     JPEG support............plugin
     PNG support.............qt
     MNG support.............plugin

Styles:
     Windows.................yes
     Windows XP..............yes
     Windows Vista...........yes
     Plastique...............yes
     Cleanlooks..............yes
     Motif...................yes
     CDE.....................yes
     Windows CE..............no
     Windows Mobile..........no

Sql Drivers:
     ODBC....................no
     MySQL...................no
     OCI.....................no
     PostgreSQL..............no
     TDS.....................no
     DB2.....................no
     SQLite..................plugin (qt)
     SQLite2.................no
     InterBase...............no

Sources are in..............Z:\qt\qt-win-opensource-src-4.5.1
Build is done in............Z:\qt\qt-win-opensource-src-4.5.1
Install prefix..............Z:\qt\qt-win-opensource-src-4.5.1
Headers installed to........Z:\qt\qt-win-opensource-src-4.5.1\include
Libraries installed to......Z:\qt\qt-win-opensource-src-4.5.1\lib
Plugins installed to........Z:\qt\qt-win-opensource-src-4.5.1\plugins
Binaries installed to.......Z:\qt\qt-win-opensource-src-4.5.1\bin
Docs installed to...........Z:\qt\qt-win-opensource-src-4.5.1\doc
Data installed to...........Z:\qt\qt-win-opensource-src-4.5.1
Translations installed to...Z:\qt\qt-win-opensource-src-4.5.1\translations
Examples installed to.......Z:\qt\qt-win-opensource-src-4.5.1\examples
Demos installed to..........Z:\qt\qt-win-opensource-src-4.5.1\demos

Creating qmake...

Microsoft (R) Program Maintenance Utility, Version 9.00.21022.08
Copyright (C) Microsoft Corporation. Alle Rechte vorbehalten.

Creating makefiles in src...
Generating Visual Studio project files...
###

The Z drive is a shared directory with Virtualbox.

When qt tries to create moc I get the following output and error

###
Z:\qt\qt-win-opensource-src-4.5.1\src\tools\moc>nmake

Microsoft (R) Program Maintenance Utility, Version 9.00.21022.08
Copyright (C) Microsoft Corporation. Alle Rechte vorbehalten.

         "c:\Programme\Microsoft Visual Studio 9.0\VC\BIN\nmake.exe" -f Makefile.Release

Microsoft (R) Program Maintenance Utility, Version 9.00.21022.08
Copyright (C) Microsoft Corporation. Alle Rechte vorbehalten.

         cl -c -nologo -Zm200 -Zc:wchar_t- -O2 -MD -GL -GR -EHsc -W3 -w34100 -w34189 -DUNICODE -DWIN32 -DQT_LARGEFILE_SUP
PORT -DQT_MOC -DQT_BOOTSTRAPPED -DQT_LITE_UNICODE -DQT_TEXTCODEC -DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_TO_ASCII -DQT_NO_C
ODECS -DQT_NO_DATASTREAM -DQT_NO_GEOM_VARIANT -DQT_NO_LIBRARY -DQT_NO_QOBJECT -DQT_NO_STL -DQT_NO_SYSTEMLOCALE -DQT_NO_T
EXTSTREAM -DQT_NO_THREAD -DQT_NO_UNICODETABLES -DQT_NO_USING_NAMESPACE -DQT_NODLL -I"." -I"." -I"..\..\..\include" -I"..
\..\..\include\QtCore" -I"..\..\..\include\QtXml" -I"..\..\xml" -I"." -I"..\..\..\mkspecs\win32-msvc2008" -Forelease\ @C
:\DOKUME~1\al\LOKALE~1\Temp\nm63C.tmp
moc.cpp
preprocessor.cpp
generator.cpp
parser.cpp
token.cpp
main.cpp
         link /NOLOGO /INCREMENTAL:NO /LTCG /SUBSYSTEM:CONSOLE /MANIFEST /MANIFESTFILE:"release\moc.intermediate.manifest
" /OUT:..\..\..\bin\moc.exe @C:\DOKUME~1\al\LOKALE~1\Temp\nm63D.tmp
Code wird generiert.
Codegenerierung ist abgeschlossen.
         mt.exe -nologo -manifest "release\moc.intermediate.manifest" -outputresource:..\..\..\bin\moc.exe;1
NMAKE : fatal error U1077: ""C:\Programme\\Microsoft SDKs\Windows\v6.0A\bin\mt.exe"": Rückgabe-Code "0x1f"
Stop.
NMAKE : fatal error U1077: ""c:\Programme\Microsoft Visual Studio 9.0\VC\BIN\nmake.exe"": Rückgabe-Code "0x2"
Stop.
###

Please can you help me to build the qt.

I have seen the answer from

http://www.qtsoftware.com/developer/faqs/700?hotspoturl=None

###
   What version of Microsoft Visual Studio 2005 do I have to have at
   least to use the integration?


Answer:

You need the Standard, Professional or Team System Edition of VS2005 in
order to use the Visual Studio Integration. The integration does not
work with the Express Edition due to limitations in this edition. Please
see the following web page for more information:

http://www.trolltech.com/developer/compilers/vcpp.html <= Dead link!
###

Why I try to build the qt?
Due to the fact that I haven't seen that the binary package have ssl and
phonon package, maybe I have overseen it.

The answer from MS does not help me.

http://msdn.microsoft.com/en-us/library/dt309377.aspx

###
Visual C++ Concepts: Building a C/C++ Program
NMAKE Fatal Error U1077
Error Message
'program' : return code 'value'

The given command or program called by NMAKE failed and returned the
given exit code.

To suppress this error and continue the NMAKE session, use the /I
option, the .IGNORE dot directive, or the dash (-) command modifier. To
continue the NMAKE session for unrelated parts of the dependency tree,
use the /K option.
###

Many thanks for help.

Aleks



More information about the Qt-interest-old mailing list