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

Static build of Qt-4.6.3 on Windows 7, with MinGW-4.4.0 (open-source build) fails when linking assistant.exe.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Not Evaluated
    • 4.7.0, 4.7.1
    • 4.6.3
    • Build tools: Other
    • None
    • Windows 7, MinGW-4.4.0

    Description

      Static build of Qt-4.6.3 on Windows 7, with MinGW-4.4.0 (open-source build) fails when linking assistant.exe.

      g++ -static -static-libgcc -enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runtime-pseudo-reloc -Wl,-s -Wl,-subsystem,windows -o ..\..\..\..\bin\assistant.exe  object_script.assistant.Release  -L"c:\Qt\4.6.3\lib" -L"c:\Qt\4.6.3\lib" -lmingw32 -lqtmain tmp\obj\release_static\assistant_res.o -LC:/Qt/4.6.3/plugin s/sqldrivers -lQtHelp -lQtSql -lQtXml -lQtGui -lQtNetwork -lQtCLucene -lgdi32 -lcomdlg32 -loleaut32 -limm32 -lwinmm -lwinspool -lmsimg32 -lQtCore -lkernel32 -luser32  lshell32 -luuid -lole32 -ladvapi32 -lws2_32
      c:\Qt\4.6.3\lib\libQtGui.a(qapplication.o):qapplication.cpp:(.text+0x76ba): undefined reference to `_imp___Z21qt_call_post_routinesv'
      c:\Qt\4.6.3\lib\libQtGui.a(qapplication.o):qapplication.cpp:(.text+0x7aac): undefined reference to `_imp___Z21qt_call_post_routinesv'
      c:\Qt\4.6.3\lib\libQtGui.a(qapplication.o):qapplication.cpp:(.text+0x7e96): undefined reference to `_imp___Z21qt_call_post_routinesv'
      c:\Qt\4.6.3\lib\libQtGui.a(qwhatsthis.o):qwhatsthis.cpp:(.text+0xd0): 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/4.6.3/tools/assistant/tools/assistant'
      

      Here is my configure command:

      configure -opensource -platform win32-g++ -release -static -prefix C:\Qt-static -no-qmake -qt-libjpeg -qt-zlib -qt-libpng -qt-libtiff -no-exceptions -nomake demos -nomake examples -no-qt3support -no-multimedia -no-phonon -no-stl -no-rtti -no-scripttools -no-openssl -no-opengl -no-webkit -no-style-motif -no-style-cde -no-style-cleanlooks -no-style-plastique -no-sql-sqlite 
      

      Attachments

        Issue Links

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

          Activity

            People

              jbornema Joerg Bornemann
              gib Gib Bogle
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes