Results 1 to 4 of 4

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

Threaded View

Previous Post Previous Post   Next Post Next Post
  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 20:05.

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, 20:53
  2. Problems with static compile for QextSerialPort
    By blm in forum Qt Programming
    Replies: 4
    Last Post: 6th October 2009, 12:55
  3. Static compile with jpg support
    By ksqt in forum Newbie
    Replies: 18
    Last Post: 11th May 2007, 04:43
  4. Static Compile [Qt4]
    By PieaholicX in forum Newbie
    Replies: 11
    Last Post: 1st September 2006, 17:18
  5. static compile in qt4 with VisualStudio2003
    By iGoo in forum Installation and Deployment
    Replies: 1
    Last Post: 21st July 2006, 08: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.