Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-11501

Compiling Qt Statically fails - MinGW / Windows 7 64b

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P2: Important
    • 4.7.0, 4.7.1
    • 4.6.3
    • Build System
    • None

    Description

      I get undefined references when building Qt statically.

      • I downloaded Qt 4.6.3 sources and unzipped them in C:\Qt\2010.03-static
      • I run configure with these parameters: (from c:\qt\2010.03-static\Qt
        configure -static -no-qt3support -no-webkit -no-phonon -no-s60 -no-openssl -opensource -release

      The error output is as follows:

      c:\Qt\2010.03-static\Qt\lib/libQtGui.a(qapplication.o):qapplication.cpp:(.text+0
      x8e0f): undefined reference to `_imp___Z21qt_call_post_routinesv'
      c:\Qt\2010.03-static\Qt\lib/libQtGui.a(qapplication.o):qapplication.cpp:(.text+0
      x9443): undefined reference to `_imp___Z21qt_call_post_routinesv'
      c:\Qt\2010.03-static\Qt\lib/libQtGui.a(qapplication.o):qapplication.cpp:(.text+0
      x9a6b): undefined reference to `_imp___Z21qt_call_post_routinesv'
      c:\Qt\2010.03-static\Qt\lib/libQtGui.a(qwhatsthis.o):qwhatsthis.cpp:(.text+0xfc)
      : undefined reference to `_imp___Z21qDeleteInEventHandlerP7QObject'
      collect2: ld returned 1 exit status
      mingw32-make[5]: *** [..\..\..\..\bin\assistant.exe] Error 1
      mingw32-make[5]: Leaving directory `C:/Qt/2010.03-static/Qt/tools/assistant/tool
      s/assistant'
      mingw32-make[4]: *** [release] Error 2
      mingw32-make[4]: Leaving directory `C:/Qt/2010.03-static/Qt/tools/assistant/tool
      s/assistant'
      mingw32-make[3]: *** [sub-assistant-make_default-ordered] Error 2
      mingw32-make[3]: Leaving directory `C:/Qt/2010.03-static/Qt/tools/assistant/tool
      s'
      mingw32-make[2]: *** [sub-tools-make_default-ordered] Error 2
      mingw32-make[2]: Leaving directory `C:/Qt/2010.03-static/Qt/tools/assistant'
      mingw32-make[1]: *** [sub-assistant-make_default-ordered] Error 2
      mingw32-make[1]: Leaving directory `C:/Qt/2010.03-static/Qt/tools'
      mingw32-make: *** [sub-tools-make_default-ordered] Error 2
      

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              buddenha Oswald Buddenhagen
              aji005 Javier IbaƱez
              Votes:
              4 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes