Results 1 to 2 of 2

Thread: Qt 4.2.2 static - *CLOSED*

  1. #1
    Join Date
    Oct 2006
    Posts
    60
    Thanks
    9
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11

    Default Qt 4.2.2 static - *CLOSED*

    *Nevermind, for some reason my .prl files didn't get updated, got 'em updated and everything works fine now*


    I am trying to build an application using qt 4.2.2 with static libraries. I have run configure -static -release and make sub-src. Both completed without problems. When I run make clean qmake -config release on one of the example programs, the generated Makefile is still point to -lQtCore4 and -lQtGui4 and therefore not to the static libs (-lQtCore -lQtGui as I understand it). If I modify the Makefile to use the 4-less versions, I get about billion errors like the following:

    Qt Code:
    1. c:\Qt\4.2.2-Static\lib/libQtCore.a(qfsfileengine_win.o)(.text+0x279a):qfsfileeng
    2. ine_win.cpp: undefined reference to `IID_IPersistFile'
    3. c:\Qt\4.2.2-Static\lib/libQtCore.a(qfsfileengine_win.o)(.text+0x2a4d):qfsfileeng
    4. ine_win.cpp: undefined reference to `CoUninitialize@0'
    5. c:\Qt\4.2.2-Static\lib/libQtCore.a(qfsfileengine_win.o)(.text+0x2a65):qfsfileeng
    6. ine_win.cpp: undefined reference to `CoInitialize@4'
    7. c:\Qt\4.2.2-Static\lib/libQtCore.a(qfsfileengine_win.o)(.text+0x2a96):qfsfileeng
    8. ine_win.cpp: undefined reference to `CoCreateInstance@20'
    9. c:\Qt\4.2.2-Static\lib/libQtCore.a(qfsfileengine_win.o)(.text+0x2ab7):qfsfileeng
    10. ine_win.cpp: undefined reference to `CoInitialize@4'
    11. c:\Qt\4.2.2-Static\lib/libQtCore.a(qfsfileengine_win.o)(.text+0x2ae8):qfsfileeng
    12. ine_win.cpp: undefined reference to `CoCreateInstance@20'
    13. c:\Qt\4.2.2-Static\lib/libQtCore.a(qfsfileengine_win.o)(.text+0x2cc3):qfsfileeng
    14. ine_win.cpp: undefined reference to `CoCreateInstance@20'
    15. c:\Qt\4.2.2-Static\lib/libQtCore.a(qfsfileengine_win.o)(.text+0x2dd8):qfsfileeng
    16. ine_win.cpp: undefined reference to `IID_IPersistFile'
    17. c:\Qt\4.2.2-Static\lib/libQtCore.a(qfsfileengine_win.o)(.text+0x2f76):qfsfileeng
    18. ine_win.cpp: undefined reference to `CoCreateInstance@20'
    19. c:\Qt\4.2.2-Static\lib/libQtCore.a(qfsfileengine_win.o)(.text+0x31df):qfsfileeng
    20. ine_win.cpp: undefined reference to `IID_IPersistFile'
    21. c:\Qt\4.2.2-Static\lib/libQtCore.a(qfsfileengine_win.o)(.text+0x33a7):qfsfileeng
    22. ine_win.cpp: undefined reference to `CoUninitialize@0'
    23. c:\Qt\4.2.2-Static\lib/libQtCore.a(qfsfileengine_win.o)(.text+0x35b2):qfsfileeng
    24. ine_win.cpp: undefined reference to `CoInitialize@4'
    25. c:\Qt\4.2.2-Static\lib/libQtCore.a(qfsfileengine_win.o)(.text+0x35e3):qfsfileeng
    26. ine_win.cpp: undefined reference to `CoCreateInstance@20'
    27. c:\Qt\4.2.2-Static\lib/libQtCore.a(qfsfileengine_win.o)(.text+0x3627):qfsfileeng
    28. ine_win.cpp: undefined reference to `CoUninitialize@0'
    29. c:\Qt\4.2.2-Static\lib/libQtCore.a(qfsfileengine_win.o)(.text+0x364f):qfsfileeng
    30. ine_win.cpp: undefined reference to `CoInitialize@4'
    31. c:\Qt\4.2.2-Static\lib/libQtCore.a(qfsfileengine_win.o)(.text+0x3680):qfsfileeng
    32. ine_win.cpp: undefined reference to `CoCreateInstance@20'
    33. collect2: ld returned 1 exit status
    34. mingw32-make[1]: *** [release\calculator.exe] Error 1
    35. mingw32-make[1]: Leaving directory `C:/Qt/4.2.2-Static/examples/widgets/calculat
    36. or'
    37. mingw32-make: *** [release] Error 2
    To copy to clipboard, switch view to plain text mode 

    Any ideas on what I am missing? This is on WinXp SP2 with Qt 4.2.2.

    thanks
    mAx
    Last edited by maxpower; 18th January 2007 at 21:26. Reason: updated contents

  2. #2
    Join Date
    Jan 2006
    Location
    Alingsås, Sweden
    Posts
    437
    Thanks
    3
    Thanked 39 Times in 39 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Qt 4.2.2 static - *CLOSED*

    Thanks for pointing out that the problem was solved. I'm locking this thread.

Similar Threads

  1. Replies: 16
    Last Post: 23rd May 2008, 10:12
  2. Qt libs static and dynamic
    By conexion2000 in forum Installation and Deployment
    Replies: 3
    Last Post: 24th May 2006, 09:09
  3. Problem with libmng on static link
    By jlbrd in forum Installation and Deployment
    Replies: 2
    Last Post: 10th May 2006, 22:38
  4. I got two problems when I used static compiled library of QT4
    By qintm in forum Installation and Deployment
    Replies: 8
    Last Post: 20th April 2006, 08:52
  5. Replies: 4
    Last Post: 14th February 2006, 21:35

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
  •  
Qt is a trademark of The Qt Company.