Details
-
Bug
-
Resolution: Done
-
P2: Important
-
6.4.0
-
-
e4feab199 (dev), 609943dbf (6.4), 7ed0a4809 (6.5), f1be2e96c (tqtc/lts-6.2), 8f2d5a564 (dev)
Description
When a *.qml file is included in the resource file (QRC) dynamically from the build folder the result is path + filename so long that it breaks the build in Windows host machine.
With CMake, the result is a very deep folder structure:
build-QRCTest-Desktop_Qt_6_4_0_GCC_64bit-Release/.rcc/qmlcache/appQRCTest_../build-QRCTest-Desktop_Qt_6_4_0_GCC_64bit-Release/Subfolder/GeneratedQML_qml.cpp
And with QMake the issue is more about a very long filename:
build-QRCTestQMake-Desktop_Qt_6_4_0_GCC_64bit-Release/.._build-QRCTestQMake-Desktop_Qt_6_4_0_GCC_64bit-Release_Subfolder_GeneratedQML_qml.cpp
To reproduce the issue, please build the attached example projects in Release mode.
Attachments
For Gerrit Dashboard: QTBUG-108150 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
448293,4 | CMake: Enforce QT_RESOURCE_ALIAS for absolute paths in resources | dev | qt/qtbase | Status: MERGED | +2 | 0 |
448647,2 | qmake: Fix generated *_qmlcache.cpp file paths | dev | qt/qtdeclarative | Status: MERGED | +2 | 0 |
448791,2 | qmake: Fix generated *_qmlcache.cpp file paths | 6.5 | qt/qtdeclarative | Status: MERGED | +2 | 0 |
448792,2 | qmake: Fix generated *_qmlcache.cpp file paths | 6.4 | qt/qtdeclarative | Status: MERGED | +2 | 0 |
448793,2 | qmake: Fix generated *_qmlcache.cpp file paths | tqtc/lts-6.2 | qt/tqtc-qtdeclarative | Status: MERGED | +2 | 0 |