Priority: P2: Important
Affects Version/s: 5.6.1, 5.7.0, 5.8.0
Fix Version/s: 5.12.0 Alpha
Component/s: Build System
Environment:Windows 7 Windows 10 Ubuntu 14.04
There is a relatively well known issue with compiling "large" qrc resources (i.e. 10-100MB, not really that large circa 2016). It's been reported before in QTBUG-50468,
QTBUG-55293, and QTBUG-54357, and the canonical solution is to add `CONFIG += big_resources` to the .pro file, which (from what I understand) enables a two-pass rcc which uses significantly less memory and is less likely to fail heap allocation.
However, this doesn't help the awesome part of the Qt user base who use CMake as their primary build system. There is no .pro file to add the "CONFIG" option to, nor (as far as I can tell), a way to use CMake to pass those options to anything which could make use of them. Additionally, there doesn't seem to be any mention of a two pass rcc in the CMake scripts anywhere, or any other way to enable it.
Can you please allow whatever functionality "CONFIG += big_resources" enables to be accessible through the CMake build system as well?
|For Gerrit Dashboard: QTBUG-55680|
|229827,9||Add support for big resources with CMake||5.12||qt/qtbase||Status: MERGED||-2||0|
|229853,21||Use bigger chunks in RCC generated C++ code||dev||qt/qtbase||Status: ABANDONED||-2||0|
|262235,5||cmake: correct version dependency for qt5_add_big_resources||5.12||qt/qtbase||Status: MERGED||+2||0|
|264114,1||cmake: correct version dependency for qt5_add_big_resources||5.12.4||qt/qtbase||Status: ABANDONED||0||0|