Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Add big resources to exe without External Binary Resources in VS2019
QtWS25 Last Chance

Add big resources to exe without External Binary Resources in VS2019

Scheduled Pinned Locked Moved Unsolved General and Desktop
5 Posts 2 Posters 668 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    saeid0034
    wrote on last edited by saeid0034
    #1

    Hi, I want to add some file with total size of 20MB to my project in Qt in VS2019
    but every time I try to build project (with 20MB of Qt resource) its give me compiler is out of heap space error, I know I can use External Binary Resources in my project but I want to keep all program needed file inside of exe
    how can i fix this error?
    I found some information about adding CONFIG += resources_big to pro file for fix this error but because I use Qt in visual studio I don't know how can I use it
    thanks

    raven-worxR 1 Reply Last reply
    0
    • S saeid0034

      Hi, I want to add some file with total size of 20MB to my project in Qt in VS2019
      but every time I try to build project (with 20MB of Qt resource) its give me compiler is out of heap space error, I know I can use External Binary Resources in my project but I want to keep all program needed file inside of exe
      how can i fix this error?
      I found some information about adding CONFIG += resources_big to pro file for fix this error but because I use Qt in visual studio I don't know how can I use it
      thanks

      raven-worxR Offline
      raven-worxR Offline
      raven-worx
      Moderators
      wrote on last edited by
      #2

      @saeid0034
      another way around this is by splitting up your qrc files to smaller junks (=containing fewer entries by qrc file).

      --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
      If you have a question please use the forum so others can benefit from the solution in the future

      S 1 Reply Last reply
      1
      • raven-worxR raven-worx

        @saeid0034
        another way around this is by splitting up your qrc files to smaller junks (=containing fewer entries by qrc file).

        S Offline
        S Offline
        saeid0034
        wrote on last edited by
        #3

        @raven-worx thank you, I split my file between 5 qrc file with maximum size of 4MB and now its working
        but just one other thing, there is anyway to compress file in resource better? I mean when I just compress my files its size goes from 20 to 7MB, but when I put in my program size of my program goes from 11 to 33

        raven-worxR 1 Reply Last reply
        0
        • S saeid0034

          @raven-worx thank you, I split my file between 5 qrc file with maximum size of 4MB and now its working
          but just one other thing, there is anyway to compress file in resource better? I mean when I just compress my files its size goes from 20 to 7MB, but when I put in my program size of my program goes from 11 to 33

          raven-worxR Offline
          raven-worxR Offline
          raven-worx
          Moderators
          wrote on last edited by
          #4

          @saeid0034
          https://doc.qt.io/qt-5/resources.html#compression

          --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
          If you have a question please use the forum so others can benefit from the solution in the future

          S 1 Reply Last reply
          2
          • raven-worxR raven-worx

            @saeid0034
            https://doc.qt.io/qt-5/resources.html#compression

            S Offline
            S Offline
            saeid0034
            wrote on last edited by saeid0034
            #5

            @raven-worx as I said I use qt in visual studio
            I check resource document and change both setting in visual studio and qrc itself, but size doesn't change at all
            a1ceaeb3-e5de-4847-9646-ab68bccb0a5e-image.png
            is there any problem in above config?

            1 Reply Last reply
            0

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved