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

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

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.8.2
    • Build System: CMake
    • None
    • GCC used as the compiler and linker
    • Linux/Wayland, Linux/X11, Linux/Other display system

    Description

      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.

      Attachments

        1. results.json
          20 kB
        2. log.txt
          65 kB

        Issue Links

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

          Activity

            People

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

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There is 1 open Gerrit change