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

linker error with qmake projects on static linux Qt6 build

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 6.2.5, 6.3.1, 6.4.0 Beta1
    • 6.2.3, 6.3.0
    • Build tools: qmake
    • None
    • Kubuntu 20.04
    • Linux/X11
    • 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

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

          Activity

            People

              alexandru.croitor Alexandru Croitor
              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