Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
6.5.3, 6.5.8
-
None
-
CMake 3.16
Windows
Ubuntu
Yocto
Description
Building a simple project using static child modules fails to properly embed the QML resources.
This problem only happens with CMake 3.16, Qt <6.5, MinGW/GCC.
It's fixed with CMake 3.19, Qt 6.7.2 or when using MSVC.
I've made this MVP for Windows 6.5.3, to reproduce a bug that is occurring in 6.5.8 (Ubuntu and Yocto).
Expected:
- QML module importable
- QML resources available at qrc:/qt/qml/Module/.....
Current:
- "QQmlApplicationEngine failed to load component
qrc:/qt/qml/App/Main.qml:12:3: MyChild is not a type" - QML resource does not exist
I've attached an MVP.
MVP2.zip
The file path is clickable, so you can confirm that qrc:/qt/qml/Child/..... does not exist.
Attachments
Issue Links
- relates to
-
QTBUG-92978 CMake linker error with Linux Static Libraries
-
- Closed
-
-
QTBUG-93002 CMake: linker error with Linux Static Libraries while using QtQuick.Controls
-
- Closed
-
-
QTBUG-95603 Remove workarounds for linking object libraries in static Qt builds
-
- Reported
-
-
QTBUG-92933 Rework automatic static plugin linkage
-
- Closed
-
-
QTBUG-94528 Verify CMake 3.21.0 TODOs in build system code
-
- Closed
-