[Development] Compiling Qt5 Alpha on Windows XP not working

Daniel Kreuter daniel.kreuter85 at googlemail.com
Wed Apr 4 12:49:29 CEST 2012


Hi,

ok nmake fails at compiling Qt WebKit (which is mentioned on the wiki).

I now try the following:
set CL=
perl build

Now it is running again, I hope it will compile successfully now.
Otherwise I wait until there are prebuild binaries for Windows XP.

On Wed, Apr 4, 2012 at 12:30 PM,  <marius.storm-olsen at nokia.com> wrote:
> Oh, the build script pushes the option /MP to the CL environment variable, to ensure that cl will compile on all available cores on your machine. However, it seems like you already have options set in CL, and Perls 'unshift' will separate each option with a semi-colon, which cl doesn't like. Try unsetting your CL environment variable before executing the build script.
>
> --
> .marius
>
>
>> -----Original Message-----
>> From: development-bounces+marius.storm-olsen=nokia.com at qt-
>> project.org [mailto:development-bounces+marius.storm-
>> olsen=nokia.com at qt-project.org] On Behalf Of ext Daniel Kreuter
>> Sent: Wednesday, April 04, 2012 3:16 AM
>> To: development at qt-project.org
>> Subject: Re: [Development] Compiling Qt5 Alpha on Windows XP not working
>>
>> Ok now while compiling with the Win SDK 7.1 I get the following error:
>>
>> Microsoft (R) Program Maintenance Utility Version 10.00.30319.01
>> Copyright (C) Microsoft Corporation.  All rights reserved.
>>
>>         cd src\tools\bootstrap\ && "C:\Program Files\Microsoft Visual Studio 10.
>> 0\VC\Bin\nmake.exe" -f Makefile
>>
>> Microsoft (R) Program Maintenance Utility Version 10.00.30319.01
>> Copyright (C) Microsoft Corporation.  All rights reserved.
>>
>>         "C:\Program Files\Microsoft Visual Studio 10.0\VC\Bin\nmake.exe" -f
>> Make
>> file.Debug
>>
>> Microsoft (R) Program Maintenance Utility Version 10.00.30319.01
>> Copyright (C) Microsoft Corporation.  All rights reserved.
>>
>>         cl -c -nologo -Zm200 -Zc:wchar_t -Zi -MDd -GR -EHsc -W3 -w34100 -
>> w34189
>> -DUNICODE -DWIN32 -DQT_LARGEFILE_SUPPORT -DQT_BOOTSTRAPPED -
>> DQT_LITE_UNICODE -DQ
>> T_NO_CAST_FROM_ASCII -DQT_NO_CAST_TO_ASCII -DQT_NO_CODECS -
>> DQT_NO_DATASTREAM -DQ
>> T_NO_GEOM_VARIANT -DQT_NO_LIBRARY -DQT_NO_QOBJECT -
>> DQT_NO_STL -DQT_NO_SYSTEMLOCA
>> LE -DQT_NO_THREAD -DQT_NO_UNICODETABLES -
>> DQT_NO_USING_NAMESPACE -DQT_NO_DEPRECAT
>> ED -DQT_NODLL -I"..\..\..\include" -I"..\..\..\include\QtCore" -I"..\..\..\inclu
>> de\QtCore\5.0.0" -I"..\..\..\include\QtCore\5.0.0\QtCore" -
>> I"..\..\3rdparty\zlib
>> " -I"..\..\..\mkspecs\win32-msvc2010" -Fotmp\obj\debug_shared\
>> @C:\DOCUME~1\kreu
>> terd\LOCALS~1\Temp\nm73.tmp
>> cl : Command line error D8021 : invalid numeric argument '/MP;/AI'
>> NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio
>> 10.0\VC\Bi
>> n\cl.EXE"' : return code '0x2'
>> Stop.
>> NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio
>> 10.0\VC\Bi
>> n\nmake.exe"' : return code '0x2'
>> Stop.
>> NMAKE : fatal error U1077: 'cd' : return code '0x2'
>> Stop.
>> cd qtbase && "C:\Program Files\Microsoft Visual Studio
>> 10.0\VC\Bin\nmake.exe"  e
>> xited with status 512 at build line 64
>>         Qt::Build::exe('Qt::Build=HASH(0x3faaf4)', 'cd qtbase && "C:\Program Fil
>> es\Microsoft Visual Studio 10.0\V...') called at build line 105
>>         Qt::Build::exeLowPriv('Qt::Build=HASH(0x3faaf4)', 'cd qtbase &&
>> "C:\Prog
>> ram Files\Microsoft Visual Studio 10.0\V...') called at build line 377
>>         Qt::Build::build_project('Qt::Build=HASH(0x3faaf4)', 'qtbase') called at
>>  build line 408
>>         Qt::Build::build_qt('Qt::Build=HASH(0x3faaf4)') called at build line 437
>>
>>         Qt::Build::run('Qt::Build=HASH(0x3faaf4)') called at build line 446
>>
>> Any suggestions? (No Visual Studio is not installed)
>>
>> On Wed, Apr 4, 2012 at 9:42 AM, Loaden <loaden at gmail.com> wrote:
>> > See: http://qt-project.org/wiki/Building_Qt_5_from_Git
>> >
>> > 2012/4/4 Daniel Kreuter <daniel.kreuter85 at googlemail.com>
>> >>
>> >> Hello guys,
>> >>
>> >> I'm trying to compile Qt5 Alpha on my Windows XP machine, but I get
>> >> the following output when calling either perl build or mingw32-make:
>> >>
>> >> C:\QtSDK\Qt5Alpha>mingw32-make
>> >> cd qtbase\ && mingw32-make -f Makefile
>> >> mingw32-make[1]: Entering directory `C:/QtSDK/Qt5Alpha/qtbase'
>> >> cd src\tools\bootstrap\ && mingw32-make -f Makefile
>> >> mingw32-make[2]: Entering directory
>> >> `C:/QtSDK/Qt5Alpha/qtbase/src/tools/bootstra
>> >> p'
>> >> mingw32-make -f Makefile.Debug
>> >> mingw32-make[3]: Entering directory
>> >> `C:/QtSDK/Qt5Alpha/qtbase/src/tools/bootstra
>> >> p'
>> >> g++ -c -fno-keep-inline-dllexport -g -frtti -fexceptions -mthreads -Wall
>> >> -DUNICO
>> >> DE -DQT_LARGEFILE_SUPPORT -DQT_BOOTSTRAPPED -
>> DQT_LITE_UNICODE
>> >> -DQT_NO_CAST_FROM_
>> >> ASCII -DQT_NO_CAST_TO_ASCII -DQT_NO_CODECS -
>> DQT_NO_DATASTREAM
>> >> -DQT_NO_GEOM_VARIA
>> >> NT -DQT_NO_LIBRARY -DQT_NO_QOBJECT -DQT_NO_STL -
>> DQT_NO_SYSTEMLOCALE
>> >> -DQT_NO_THRE
>> >> AD -DQT_NO_UNICODETABLES -DQT_NO_USING_NAMESPACE -
>> DQT_NO_DEPRECATED
>> >> -DQT_NODLL -
>> >> I"..\..\..\include" -I"..\..\..\include\QtCore"
>> >> -I"..\..\..\include\QtCore\5.0.0
>> >> " -I"..\..\..\include\QtCore\5.0.0\QtCore" -I"..\..\..\mkspecs\win32-g++"
>> >> -o tmp
>> >> \obj\debug_shared\qlatincodec.o ..\..\corelib\codecs\qlatincodec.cpp
>> >> cc1plus.exe: error: unrecognized command line option
>> >> "-fno-keep-inline-dllexport
>> >> "
>> >> mingw32-make[3]: *** [tmp/obj/debug_shared/qlatincodec.o] Error 1
>> >> mingw32-make[3]: Leaving directory
>> >> `C:/QtSDK/Qt5Alpha/qtbase/src/tools/bootstrap
>> >> '
>> >> mingw32-make[2]: *** [debug] Error 2
>> >> mingw32-make[2]: Leaving directory
>> >> `C:/QtSDK/Qt5Alpha/qtbase/src/tools/bootstrap
>> >> '
>> >> mingw32-make[1]: *** [sub-tools-bootstrap-make_default-ordered]
>> Error 2
>> >> mingw32-make[1]: Leaving directory `C:/QtSDK/Qt5Alpha/qtbase'
>> >> mingw32-make: *** [module-qtbase-make_default] Error 2
>> >>
>> >> Perl 5.14, Python 2.7.2 and the latest MinGW are installed and the
>> >> path is set correct. OpenSSL is not installed because it is not
>> >> needed.
>> >>
>> >> Has someone an idea what went wrong?
>> >>
>> >> --
>> >> Mit freundlichen Grüßen
>> >>
>> >> Greetings
>> >>
>> >> Daniel Kreuter
>> >> _______________________________________________
>> >> Development mailing list
>> >> Development at qt-project.org
>> >> http://lists.qt-project.org/mailman/listinfo/development
>> >
>> >
>> >
>> >
>> > --
>> > Regards
>> > Loaden
>> >
>>
>>
>>
>> --
>> Mit freundlichen Grüßen
>>
>> Greetings
>>
>> Daniel Kreuter
>> _______________________________________________
>> Development mailing list
>> Development at qt-project.org
>> http://lists.qt-project.org/mailman/listinfo/development



-- 
Mit freundlichen Grüßen

Greetings

Daniel Kreuter



More information about the Development mailing list