Details
-
Bug
-
Resolution: Fixed
-
P1: Critical
-
6.5.7, 6.8.1
-
Windows 10 22H2; macOS 14.7
-
-
2c39e1196 (dev), f5abe5af6 (6.9), dfe6213f4 (6.8), 5802cd5b1 (tqtc/lts-6.5)
Description
Problem
Try building the attached project. Desktop (non-cross-compiling) kits still run qmlcachegen as expected, but cross-compiling kits no longer run qmlcachegen.
- Tested on Qt 5.15.18 (Works): Android, iOS, Boot2Qt
- Tested on Qt 6.2.13 (Works): iOS
- Tested on Qt 6.5/6.8 (Doesn't work): Android, iOS, Boot2Qt, WebAssembly
Workaround
Manually copy qtquickcompiler.prf from a desktop/host kit to the cross-compiling kit. For example:
- From C:\Qt\6.8.1\Boot2Qt\raspberrypi-armv8\toolchain\sysroots\x86_64-w64-mingw32\usr\lib\mkspecs\features
- To C:\Qt\6.8.1\Boot2Qt\raspberrypi-armv8\toolchain\sysroots\cortexa53-poky-linux\usr\lib\mkspecs\features
Attachments
Issue Links
- is duplicated by
-
QTBUG-132427 qmlcachegen not getting invoked on qmake for yocto builds
- Closed
For Gerrit Dashboard: QTBUG-132423 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
614535,3 | CMake: Fix installation of qmlcache's .prf files in cross-builds | dev | qt/qtdeclarative | Status: MERGED | +2 | 0 |
614743,2 | CMake: Fix installation of qmlcache's .prf files in cross-builds | 6.9 | qt/qtdeclarative | Status: MERGED | +2 | 0 |
614878,2 | CMake: Fix installation of qmlcache's .prf files in cross-builds | 6.8 | qt/qtdeclarative | Status: MERGED | +2 | 0 |
614899,2 | CMake: Fix installation of qmlcache's .prf files in cross-builds | tqtc/lts-6.5 | qt/tqtc-qtdeclarative | Status: MERGED | +2 | 0 |