Unable to build qt-4.8.0 x86 (32 bit) static on windows xp64 [SOLVED]
-
After downloading qt-everywhere-opensource-src-4.8.0.zip
I unzipped the source in the following directory:
@E:\src\qt-everywhere-opensource-src-4.8.0@I then launched visual studio command prompt 2010 (not x64).
@E:\build\static_qt-4.8.0-x86> set QTDIR=E:\src\qt-everywhere-opensource-src-4.8.0@
@E:\build\static_qt-4.8.0-x86> set PATH=%QTDIR%\bin;%PATH%@
@E:\build\static_qt-4.8.0-x86> set QMAKESPEC=win32-msvc2010@I encountered no errors building a shared version as shown below:
@E:\build\shared_qt-4.8.0-x86> ....\src\qt-everywhere-opensource-src-4.8.0\configure -debug-and-release -opensource -mp -shared -platform win32-msvc2010
E:\build\shared_qt-4.8.0-x86> nmake @But when I do a similar build for static I get errors:
@E:\build\static_qt-4.8.0-x86> ....\src\qt-everywhere-opensource-src-4.8.0\configure -debug-and-release -opensource -mp -static -platform win32-msvc2010
E:\build\static_qt-4.8.0-x86> nmake
.
.
.
mt.exe -nologo -manifest "tmp\obj\debug_static\bearermonitor.intermediate.manifest" -outputresource:debug\bearermonitor.exe;1
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.@I had no problems building both shared and static x64 versions, it is just the static 32 bit giving me errors.
What am I doing wrong? -
welcome to devnet
The error seem to be in the example section. So, the libs are probably already compiled and should be fine.
This could be a problem of msvc. If you like to retry, may be do not use -mp option. I have seen strange problems with parallel compilation on Win7 64 bit with msvc 2005. I was required to restart the compilation several times. Eventually it finished and was ok. The sequential compilation was running through ok.
-
[quote author="koahnig" date="1327745693"]
The error seem to be in the example section. So, the libs are probably already compiled and should be fine. [/quote]
You are right that the libs were already built; this was the most important part so I'm not too worried about the error now. Thanks for your insight![quote author="koahnig" date="1327745693"]
This could be a problem of msvc. If you like to retry, may be do not use -mp option. I have seen strange problems with parallel compilation on Win7 64 bit with msvc 2005.[/quote]
I'll try without the -mp option and if that works then I'll update the thread title as solved. -
Turning off MP didnt work. The configure command seems to ignore -mp or -no-mp switch anyway. I had to change the QMAKE_CFLAGS_MP in E:\build\shared_qt-4.8.0-x86\mkspecs\win32-msvc-2010\qmake.conf
The libraries were at least built before crash as mentioned.
-
I have issued a bug report for "configure to ignore -mp":https://bugreports.qt-project.org/browse/QTBUG-23929 .