Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
6.8.2
-
None
-
GCC used as the compiler and linker
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:
- Download the 6.8.2 tarball from https://download.qt.io/official_releases/qt/6.8/6.8.2/submodules/qtbase-everywhere-src-6.8.2.tar.xz
- 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
Issue Links
- relates to
-
QTBUG-133251 how to link Qt apps with static version of Qt in cmake way
-
- Reported
-
Gerrit Reviews
For Gerrit Dashboard: QTBUG-133407 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
622393,6 | Make `FEATURE_static` and `FEATURE_shared` aliased features | dev | qt/qtbase | Status: NEW | +1 | +1 |