Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
6.5.0, 6.5
-
None
-
MSVC 2022 17.5.1
-
eaae969ac (dev), af83a4c1a (6.5), 96da9eeb7 (6.4)
Description
When building qtbase in static mode, the compilation failed with the following message on my machine:
qmakelibraryinfo.cpp.obj : error LNK2019: unresolved external symbol "public: bool __cdecl QByteArray::isNull(void)const " (?isNull@QByteArray@@QEBA_NXZ) referenced in function "public: __cdecl QByteArrayView::QByteArrayView<class QByteArray,1>(class QByteArray const &)" (??$?0VQByteArray@@$00@QByteArrayView@@QEAA@AEBVQByteArray@@@Z) bin\qtpaths.exe : fatal error LNK1120: 1 unresolved externals
My full CMake params:
cmake -Wno-dev -DCMAKE_MESSAGE_LOG_LEVEL=STATUS -DQT_DISABLE_DEPRECATED_UP_TO=0x070000 -DQT_BUILD_TESTS=OFF -DQT_BUILD_EXAMPLES=OFF -DFEATURE_relocatable=ON -DFEATURE_system_zlib=OFF -DCMAKE_INSTALL_PREFIX=install -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=OFF -GNinja ../qtbase
UPDATE: Removing "-DQT_DISABLE_DEPRECATED_UP_TO=0x070000" fixes the issue.
Attachments
Issue Links
- relates to
-
QTBUG-125975 QT_DISABLE_DEPRECATED_UP_TO 0x060400 gives link error with static build
-
- Closed
-
- resulted from
-
QTBUG-109449 inlining QByteArray::isNull() causes BC break on static Qt builds
-
- Closed
-
For Gerrit Dashboard: QTBUG-111884 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
465956,2 | qtbase: fix static build | dev | qt/qtbase | Status: ABANDONED | -2 | 0 |
466402,2 | Propagate QT_DISABLE_DEPRECATED_UP_TO to QtLibraryInfo library | dev | qt/qtbase | Status: MERGED | +2 | 0 |
466507,2 | Propagate QT_DISABLE_DEPRECATED_UP_TO to QtLibraryInfo library | 6.5 | qt/qtbase | Status: MERGED | +2 | 0 |
466508,1 | Propagate QT_DISABLE_DEPRECATED_UP_TO to QtLibraryInfo library | 6.5.0 | qt/qtbase | Status: ABANDONED | +2 | 0 |
466511,2 | Propagate QT_DISABLE_DEPRECATED_UP_TO to QtLibraryInfo library | 6.4 | qt/qtbase | Status: MERGED | +2 | 0 |