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

Tools in qtbase fail to link to QtCore when Qt is statically built

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2: Important P2: Important
    • 6.8.4, 6.9.2, 6.10.0 FF
    • 6.8.2
    • Build System: CMake
    • None
    • GCC used as the compiler and linker
    • Linux/Wayland, Linux/X11, Linux/Other display system
    • 2d2718356 (dev), ac5ceb289 (6.9), 495a9969d (tqtc/lts-6.8)

      When Qt is built with -DFEATURE_shared=OFF, QtCore is still built as a shared library. Right after it gets built, tools fail to link and errors appear about missing references to QtCore symbols.

      Steps to reproduce:

      • cmake -GNinja -DFEATURE_shared=OFF -DFEATURE_rpath=OFF -DFEATURE_precompile_header=OFF -DFEATURE_openssl_linked=ON -DFEATURE_sql=OFF -DFEATURE_printsupport=OFF -DFEATURE_testlib=OFF -DFEATURE_eglfs=OFF -DFEATURE_linuxfb=OFF -DFEATURE_vnc=OFF -DFEATURE_vkkhrdisplay=OFF .. (Just -DFEATURE_shared=OFF should suffice)
      • cmake --build . --parallel

      Logs are in the attachment.

        1. results.json
          20 kB
        2. log.txt
          65 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            lecris Cristian Le
            kemal Kemal
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes