Results 1 to 1 of 1

Thread: win7 x64 + mingw32 + static build failed

  1. #1
    Join Date
    Sep 2010
    Location
    Russia, Moscow
    Posts
    15
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Unhappy win7 x64 + mingw32 + static build failed

    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++:
    Qt Code:
    1. -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:
    Qt Code:
    1. 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:
    Qt Code:
    1. g++ -c -include tmp/obj/release_static/qt_pch.h -O2 -Wall -frtti -fno-exceptions
    2. -DQT_THREAD_SUPPORT -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_BUILD_SQL_LIB -DQT_NO
    3. _USING_NAMESPACE -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT3_SUPPORT -D
    4. QT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -D_USE_MATH_DEFINES -DQT_NO_CAST_FROM_ASCI
    5. I -DNDEBUG -DSQLITE_OMIT_LOAD_EXTENSION -DSQLITE_OMIT_COMPLETE -DQT_NO_DEBUG -DQ
    6. T_CORE_LIB -DQT_HAVE_MMX -DQT_HAVE_3DNOW -DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAV
    7. E_SSE2 -I'../../include/QtCore' -I'../../include' -I'../../include/QtSql' -I'tmp
    8. /rcc/release_static' -I'tmp' -I'../3rdparty/sqlite' -I'../../include/ActiveQt' -
    9. I'tmp/moc/release_static' -I'../../mkspecs/win32-g++' -o tmp/obj/release_static/
    10. moc_qsqlrelationaltablemodel.o tmp/moc/release_static/moc_qsqlrelationaltablemod
    11. el.cpp
    12. ar -M < object_script.libQtSql.Release
    13. /usr/bin/sh: /c/QtSDK/mingw/bin/ar: Invalid argument
    14. mingw32-make[2]: *** [../../lib/libQtSql.a] Error 126
    15. mingw32-make[2]: Leaving directory `c:/QtSDK/QtSources/4.8.1/src/sql'
    16. mingw32-make[1]: *** [release] Error 2
    17. mingw32-make[1]: Leaving directory `c:/QtSDK/QtSources/4.8.1/src/sql'
    18. 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 =(((
    Last edited by dkoryagin; 8th August 2013 at 12:08.

Similar Threads

  1. Problem to compile static QT 4.7.2 with mingw32
    By zdenop in forum Installation and Deployment
    Replies: 5
    Last Post: 23rd August 2011, 19:35
  2. LibQxt won't build with Qt 4.7.0 on Win7
    By qratman in forum Installation and Deployment
    Replies: 1
    Last Post: 14th October 2010, 14:09
  3. Qt 4.5.3 openssl 0.9.8k windows static mingw32
    By tpf80 in forum Installation and Deployment
    Replies: 3
    Last Post: 26th February 2010, 05:44
  4. Installing static lib with qmake and mingw32
    By ghorwin in forum Qt Programming
    Replies: 0
    Last Post: 28th May 2007, 14:34
  5. Replies: 4
    Last Post: 20th February 2006, 09:11

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.