hi, all!
Few days ago, i took at work new notebook
But it came with f****** windows 7 x64.
Now i have problems with static build qt 4.8.1
I don't need 64bit applications, need only 32 =)
1. Installed sdk with 4.8.1(our current working version for all active projects)
2. downloaded source code and put it in sdk dir
3. modified mkspecs\win32-g++:
-static -static-libgcc -enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runtime-pseudo-reloc
-static -static-libgcc -enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runtime-pseudo-reloc
To copy to clipboard, switch view to plain text mode
4. configured it without problem:
configure -static -release -no-exceptions -nomake demos -nomake examples -no-webkit -no-phonon
configure -static -release -no-exceptions -nomake demos -nomake examples -no-webkit -no-phonon
To copy to clipboard, switch view to plain text mode
5. and compiled... but it stucked on sql with error 126:
g++ -c -include tmp/obj/release_static/qt_pch.h -O2 -Wall -frtti -fno-exceptions
-DQT_THREAD_SUPPORT -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_BUILD_SQL_LIB -DQT_NO
_USING_NAMESPACE -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT3_SUPPORT -D
QT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -D_USE_MATH_DEFINES -DQT_NO_CAST_FROM_ASCI
I -DNDEBUG -DSQLITE_OMIT_LOAD_EXTENSION -DSQLITE_OMIT_COMPLETE -DQT_NO_DEBUG -DQ
T_CORE_LIB -DQT_HAVE_MMX -DQT_HAVE_3DNOW -DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAV
E_SSE2 -I'../../include/QtCore' -I'../../include' -I'../../include/QtSql' -I'tmp
/rcc/release_static' -I'tmp' -I'../3rdparty/sqlite' -I'../../include/ActiveQt' -
I'tmp/moc/release_static' -I'../../mkspecs/win32-g++' -o tmp/obj/release_static/
moc_qsqlrelationaltablemodel.o tmp/moc/release_static/moc_qsqlrelationaltablemod
el.cpp
ar -M < object_script.libQtSql.Release
/usr/bin/sh: /c/QtSDK/mingw/bin/ar: Invalid argument
mingw32-make[2]: *** [../../lib/libQtSql.a] Error 126
mingw32-make[2]: Leaving directory `c:/QtSDK/QtSources/4.8.1/src/sql'
mingw32-make[1]: *** [release] Error 2
mingw32-make[1]: Leaving directory `c:/QtSDK/QtSources/4.8.1/src/sql'
mingw32-make: *** [sub-sql-make_default-ordered] Error 2
g++ -c -include tmp/obj/release_static/qt_pch.h -O2 -Wall -frtti -fno-exceptions
-DQT_THREAD_SUPPORT -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_BUILD_SQL_LIB -DQT_NO
_USING_NAMESPACE -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT3_SUPPORT -D
QT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -D_USE_MATH_DEFINES -DQT_NO_CAST_FROM_ASCI
I -DNDEBUG -DSQLITE_OMIT_LOAD_EXTENSION -DSQLITE_OMIT_COMPLETE -DQT_NO_DEBUG -DQ
T_CORE_LIB -DQT_HAVE_MMX -DQT_HAVE_3DNOW -DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAV
E_SSE2 -I'../../include/QtCore' -I'../../include' -I'../../include/QtSql' -I'tmp
/rcc/release_static' -I'tmp' -I'../3rdparty/sqlite' -I'../../include/ActiveQt' -
I'tmp/moc/release_static' -I'../../mkspecs/win32-g++' -o tmp/obj/release_static/
moc_qsqlrelationaltablemodel.o tmp/moc/release_static/moc_qsqlrelationaltablemod
el.cpp
ar -M < object_script.libQtSql.Release
/usr/bin/sh: /c/QtSDK/mingw/bin/ar: Invalid argument
mingw32-make[2]: *** [../../lib/libQtSql.a] Error 126
mingw32-make[2]: Leaving directory `c:/QtSDK/QtSources/4.8.1/src/sql'
mingw32-make[1]: *** [release] Error 2
mingw32-make[1]: Leaving directory `c:/QtSDK/QtSources/4.8.1/src/sql'
mingw32-make: *** [sub-sql-make_default-ordered] Error 2
To copy to clipboard, switch view to plain text mode
Any advise? Maybe i should try to build with mingw64?
Thanks for help =)
UPD
if i change dir to /src/sql and execure mingw32-make from there - it compiles without errors. Then i return to root dir and continue compilation...
But it complitely stuck on plugins =(((
Bookmarks