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

linker error with qmake projects on static linux Qt6 build

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Done
    • Affects Version/s: 6.2.3, 6.3.0
    • Fix Version/s: 6.2.5, 6.3.1, 6.4.0 Beta1
    • Component/s: Build tools: qmake
    • Labels:
      None
    • Environment:
      Kubuntu 20.04
    • Platform/s:
      Linux/X11
    • Commits:
      f4e9981259 (qt/qtbase/dev) f4e9981259 (qt/tqtc-qtbase/dev) 4e45f261a9 (qt/qtbase/6.3) 4e45f261a9 (qt/tqtc-qtbase/6.3) abeefbdea6 (qt/tqtc-qtbase/6.2)

      Description

      I've build a static version of Qt6 for Linux using the following configuration:

      -static  -nomake tests -nomake examples -bundled-xcb-xinput \
      -skip qtxmlpatterns -skip qt3d -skip qtserialbus -skip qtserialport -skip qtandroidextras -skip qtmacextras -skip qtspeech -skip qtsensors -skip qtactiveqt \
      -skip qtquick3d -skip qtscxml -qt-tiff -qt-zlib -qt-libpng -qt-libjpeg -qt-freetype -qt-pcre -qt-harfbuzz \
      -skip qtwebengine -skip qtpdf
      

      When building a demo project with qmake (see attached qmltestqmake.zip), I get a lot of "undefined reference" errors during linking (see attached log_qmake.txt)
      If I build the same demo project with cmake (see attached qmltestcmake.zip), everything works fine.

        Attachments

        1. log_qmake.txt
          298 kB
        2. log2_qmake2.txt
          21 kB
        3. qmltestcmake.zip
          2 kB
        4. qmltestqmake.zip
          2 kB

          Issue Links

          For Gerrit Dashboard: QTBUG-103002
          # Subject Branch Project Status CR V

            Activity

              People

              Assignee:
              alexandru.croitor Alexandru Croitor
              Reporter:
              lkdem Ludger Krämer
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes