Learn what Felgo offers to help your business succeed. Start your free evaluation today! Felgo for Your Business

Forums

OverviewFelgo SDK Support › cc1plus.exe: out of memory allocating 4095 bytes

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #25558

    Jon-Paul

    Hi,

    I’ve just added about 100mb of assets to the assets folder of my app yet when I compile the memory usage of cc1plus.exe increases until I get the above error.

    Each .png is only about 700kb (a 1024×1024 image) and I’ve got 16gb ram with about 100gb free space. This doesn’t seem like a big overhead for an app even if all the resources get compiled into a single executable.

    I’m accessing the resources using relative paths but when it’s built it looks like all the assets and qml files are added to a .qrc.

    Could anyone clarify what’s going on and if there’s a way around this?

    #25560

    Günther
    Felgo Team

    Hi,

    I think the total amount of MB is not the main issue. Each file is compiled with QRC individually. There’s an older post in the Qt forums here that also discusses this: https://www.qtcentre.org/threads/63223-Qt-resources-cc1plus-exe-1-error-out-of-memory-allocating

    From what I get the compilation step may fail for files that are too large. It is probably best to not compile these resources with QRC and instead deploy the actual files and reference the file copies. You can change the AssetsFiles handling in the CMakeLists.txt setup.

    #25561

    Jon-Paul

    Ta, I’ll have a look

Viewing 3 posts - 1 through 3 (of 3 total)

RSS feed for this thread

You must be logged in to reply to this topic.

Qt_Technology_Partner_RGB_475 Qt_Service_Partner_RGB_475_padded