Static Qt - mingw32-make invalid argument
-
Hello,
I try to build static Qt 4.8.0 for mingw on Windows 7 32bit. I installed Perl, added:@C:\Perl\site\bin;C:\Perl\bin;C:\QtSDK\Desktop\Qt\4.8.0\mingw\bin;C:\QtSDK\mingw\bin@
to my Path environment variable. I build in C:\Qt\4.8.0_static.
This way I run configure.exe:
@configure -debug-and-release -opensource -static -L C:/QtSDK/mingw/lib -nomake examples -nomake demos -qt-libjpeg -qt-libpng -qt-zlib -no-stl -no-rtti -no-native-gestures -no-qt3support -qt-sql-sqlite -no-phonon -no-phonon-backend -no-openssl -no-webkit -no-script -no-scripttools -no-multimedia -no-declarative -no-declarative-debug -no-opengl -no-style-motif -no-style-cde -no-style-cleanlooks -no-style-plastique -no-style-windowsxp -no-style-windowsvista -platform win32-g++
@However mingw32-make fails with this error:
@gcc -c -O2 -Wall -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_BOOTSTRAPPED -DQT_LITE_UN
ICODE -DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_TO_ASCII -DQT_NO_CODECS -DQT_NO_DATAS
TREAM -DQT_NO_GEOM_VARIANT -DQT_NO_LIBRARY -DQT_NO_QOBJECT -DQT_NO_STL -DQT_NO_S
YSTEMLOCALE -DQT_NO_TEXTSTREAM -DQT_NO_THREAD -DQT_NO_UNICODETABLES -DQT_NO_USIN
G_NAMESPACE -DQT_NO_DEPRECATED -DQT_NODLL -DQT_NO_DYNAMIC_CAST -I'../../../inclu
de' -I'../../../include/QtCore' -I'../../../include/QtXml' -I'../../3rdparty/zli
b' -I'../../../mkspecs/win32-g++' -o tmp/obj/release_static/zutil.o ../../3rdpar
ty/zlib/zutil.c
ar -M < object_script.libbootstrap.Release
/usr/bin/sh: /c/QtSDK/mingw/bin/ar: Invalid argument
mingw32-make[2]: *** [release/libbootstrap.a] Error 126
mingw32-make[2]: Leaving directoryc:/Qt/4.8.0_static/src/tools/bootstrap' mingw32-make[1]: *** [release] Error 2 mingw32-make[1]: Leaving directory
c:/Qt/4.8.0_static/src/tools/bootstrap'
mingw32-make: *** [sub-tools-bootstrap-make_default-ordered] Error 2@I have no idea what the "Invalid argument" error means nor how to fix.
Please help me. Thanks