Results 1 to 4 of 4

Thread: cannot compile QT 4.6 as static - uic3 error stops compilation

  1. #1
    Join Date
    Jun 2010
    Posts
    9
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default cannot compile QT 4.6 as static - uic3 error stops compilation

    I've been trying for a couple of days with no success to recompile QT 4.6 to the static version using the directions on trolltecks site, and I just tried the directions here for 4.6. The result is always the same, configure occurs fine, then during compilation uic3 throws an error and the compilation stops.

    Platform: Windows 7 x64
    Compiler: mingw (both my own and the one that comes with the QT SDK, same result)
    I use this command -
    configure -static -release -no-exceptions && mingw32-make sub-src

    I used the QT console in the start menu


    The error that appears is
    Qt Code:
    1. g++ -enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runtime-pseudo-rel
    2. oc -Wl,-s -Wl,-subsystem,console -o ..\..\..\bin\uic3.exe object_script.uic3.Rel
    3. ease -L"c:\Qt\2010.03\qt\lib" -L"c:\Qt\2010.03\qt\lib" -lQt3Support -lQtSql -lQ
    4. tXml -lQtGui -lQtNetwork -lgdi32 -lcomdlg32 -loleaut32 -limm32 -lwinmm -lwinspoo
    5. l -lmsimg32 -lQtCore -lkernel32 -luser32 -lshell32 -luuid -lole32 -ladvapi32 -lw
    6. s2_32
    7. c:\Qt\2010.03\qt\lib/libQtGui.a(qapplication.o):qapplication.cpp:(.text+0x358a):
    8. undefined reference to `_imp___Z21qt_call_post_routinesv'
    9. c:\Qt\2010.03\qt\lib/libQtGui.a(qapplication.o):qapplication.cpp:(.text+0x3b2f):
    10. undefined reference to `_imp___Z21qt_call_post_routinesv'
    11. c:\Qt\2010.03\qt\lib/libQtGui.a(qapplication.o):qapplication.cpp:(.text+0x40ca):
    12. undefined reference to `_imp___Z21qt_call_post_routinesv'
    13. c:\Qt\2010.03\qt\lib/libQtGui.a(qwhatsthis.o):qwhatsthis.cpp:(.text+0x15c): unde
    14. fined reference to `_imp___Z21qDeleteInEventHandlerP7QObject'
    15. collect2: ld returned 1 exit status
    16. mingw32-make[2]: *** [..\..\..\bin\uic3.exe] Error 1
    17. mingw32-make[2]: Leaving directory `C:/Qt/2010.03/qt/src/tools/uic3'
    18. mingw32-make[1]: *** [release] Error 2
    19. mingw32-make[1]: Leaving directory `C:/Qt/2010.03/qt/src/tools/uic3'
    20. mingw32-make: *** [sub-uic3-sub_src_target_ordered] Error 2
    To copy to clipboard, switch view to plain text mode 

    Any suggestions would be greatly apreciated
    Last edited by rucs_hack; 22nd June 2010 at 21:05.

  2. #2
    Join Date
    Aug 2006
    Location
    The Netherlands
    Posts
    64
    Thanks
    6
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: cannot compile QT 4.6 as static - uic3 error stops compilation

    I get the same linker-errors, when I try to compile my program.
    Compiling Qt libs 4.6.3 went fine.

    Environment:

    Windows XP, MinGW from ftp://ftp.qt.nokia.com/misc/MinGW-gcc440_1.zip.
    Qt has been configured as follows:
    configure -static -release -opensource -no-qt3support -qt-zlib -qt-gif -qt-libpng -qt-libmng -qt-libjpeg -qt-libtiff -no-exceptions -nomake demos -nomake examples -nomake tools -no-webkit -no-phonon -no-phonon-backend -no-xmlpatterns -no-dbus -no-opengl -no-scripttools -no-openssl -no-incredibuild-xge -no-declarative -no-multimedia
    It compiled fine.

    Compiling my program gives the following linker-error:

    Qt Code:
    1. g++ -static -enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runtime-ps
    2. eudo-reloc -Wl,-s -Wl,-subsystem,windows -o release\edfbrowser.exe object_script
    3. .edfbrowser.Release -L"c:\Qt\4.6.3\lib" -lmingw32 -lqtmain .\objects\edfbrowser
    4. _res.o -lQtGui -lgdi32 -lcomdlg32 -loleaut32 -limm32 -lwinmm -lwinspool -lmsimg3
    5. 2 -lQtCore -lkernel32 -luser32 -lshell32 -luuid -lole32 -ladvapi32 -lws2_32
    6. c:\Qt\4.6.3\lib\libQtGui.a(qapplication.o):qapplication.cpp:(.text+0x34de): unde
    7. fined reference to `_imp___Z21qt_call_post_routinesv'
    8. c:\Qt\4.6.3\lib\libQtGui.a(qapplication.o):qapplication.cpp:(.text+0x3a83): unde
    9. fined reference to `_imp___Z21qt_call_post_routinesv'
    10. c:\Qt\4.6.3\lib\libQtGui.a(qapplication.o):qapplication.cpp:(.text+0x401e): unde
    11. fined reference to `_imp___Z21qt_call_post_routinesv'
    12. c:\Qt\4.6.3\lib\libQtGui.a(qwhatsthis.o):qwhatsthis.cpp:(.text+0xfc): undefined
    13. reference to `_imp___Z21qDeleteInEventHandlerP7QObject'
    14. collect2: ld gaf exit-status 1 terug
    15. mingw32-make[1]: *** [release\edfbrowser.exe] Error 1
    16. mingw32-make[1]: Leaving directory `C:/Documents and Settings/Ben-Gurion/My Docu
    17. ments/c/edfbrowser_123_source'
    18. mingw32-make: *** [release] Error 2
    To copy to clipboard, switch view to plain text mode 

    Compiling with Qt 4.6.2 went fine.

    There must be a serious bug in 4.6.3....

  3. #3
    Join Date
    Jun 2010
    Posts
    9
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: cannot compile QT 4.6 as static - uic3 error stops compilation

    I can compile actaul applications in Qt just fine, I'm trying to recompile QT itself so I can deploy staticly linked programs.

  4. #4
    Join Date
    Jun 2010
    Posts
    5
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: cannot compile QT 4.6 as static - uic3 error stops compilation

    Was able to get a little bit further. See my post in:
    http://www.qtcentre.org/threads/3168...tic-with-MinGw

Similar Threads

  1. Compile Qt 4.6.2 to static library failed
    By kea_ in forum Installation and Deployment
    Replies: 3
    Last Post: 17th May 2010, 21:53
  2. Problems with static compile for QextSerialPort
    By blm in forum Qt Programming
    Replies: 4
    Last Post: 6th October 2009, 13:55
  3. Static compile with jpg support
    By ksqt in forum Newbie
    Replies: 18
    Last Post: 11th May 2007, 05:43
  4. Static Compile [Qt4]
    By PieaholicX in forum Newbie
    Replies: 11
    Last Post: 1st September 2006, 18:18
  5. static compile in qt4 with VisualStudio2003
    By iGoo in forum Installation and Deployment
    Replies: 1
    Last Post: 21st July 2006, 09:46

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.