Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
6.0.1, 6.2.3, 6.3.2, 6.4.0 RC1
-
None
Description
When building Qt 6.0.1 into static libraries, the default resources for messagebox, styles, etc. are missing.
More specifically, the resources compiled into the following files are missing:
qrc_cursors.cpp.obj
qrc_openglblacklists.cpp.obj
qrc_qmessagebox.cpp.obj
qrc_qstyle.cpp.obj
qrc_qstyle1.cpp.obj
Those files are not part of any .lib file produced by CMake/Ninja.
I manually link these files into my application to resolve the corresponding linker errors, but I would really expect Qt 6 to handle this out-of-the-box.
Attachments
Issue Links
- relates to
-
QTBUG-97816 Prevent linker from discarding unused shared libraries
- Reported
-
QTBUG-80863 [cmake] excessive compilation of Import.cpp files for static plugins
- Closed
-
QTBUG-110243 Resources are lost when linking static libraries using CMake build system in a separate project
- Reported
-
QTBUG-105847 QmlCompilerPrivate_resources_1/.rcc/qrc_builtins.cpp.o gets installed
- Closed
-
QTBUG-110075 Linker failure when using Q_IMPORT_QML_PLUGIN() on external static QML plugin
- Closed