Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-55680

Compiling "large" qrc resources within CMake build causes heap allocation errors

    XMLWordPrintable

Details

    • 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

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              krf Kevin Funk
              nholthaus Nicolas Holthaus
              Votes:
              5 Vote for this issue
              Watchers:
              10 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes