Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.6.1, 5.7.0, 5.8.0
-
Windows 7 Windows 10 Ubuntu 14.04
-
cdccd0222bbed1954d5d7fe0da9d2308c202f3b1
Description
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?
See also: http://stackoverflow.com/questions/39236670/cmake-equivalent-of-qmakes-config-resources-big
Attachments
Issue Links
- resulted in
-
QTBUG-75806 tests/auto/cmake/test_add_big_resource failed with cmake 3.6
- Closed
For Gerrit Dashboard: QTBUG-55680 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
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 |