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. Why does the size of the file grow so much with each release without changing the code?
Forum Updated to NodeBB v4.3 + New Features

Why does the size of the file grow so much with each release without changing the code?

Scheduled Pinned Locked Moved Unsolved General and Desktop
54 Posts 9 Posters 8.7k Views 4 Watching
  • 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.
  • D Offline
    D Offline
    duncan98
    wrote on last edited by duncan98
    #1

    Why does the size of the EXE file grow so much with each release without changing the code? The first time it was 3M, the second time it was 7M, the third time it was 10M, and the fourth time it was 100M. This is true even after a delete is rebuilt

    Thank YouT 1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      There's information missing here.

      Which Qt versions ?
      Which OSs ?
      Which compilers ?
      Which architectures ?
      Which system targets ?
      What is their architectures ?
      Are you using resources ?
      If so, what did you put it there ?
      What did you change in your code ?
      What did you change between the different builds ?
      Etc.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      D 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi,

        There's information missing here.

        Which Qt versions ?
        Which OSs ?
        Which compilers ?
        Which architectures ?
        Which system targets ?
        What is their architectures ?
        Are you using resources ?
        If so, what did you put it there ?
        What did you change in your code ?
        What did you change between the different builds ?
        Etc.

        D Offline
        D Offline
        duncan98
        wrote on last edited by
        #3

        @SGaist
        This was not the case before, now Debug and Release both have the same problem, there is no change in the code, the size increases a lot each time it runs. Qt version 5.15.2, Windows10 system, compiler mingw8.1.0 64 bit, do not understand what architecture refers to?

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Can you show your .pro file ?
          The processor architecture you are targeting x86, x86_64, arm, arm64 etc. So in your case Windows 64bit.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          D 1 Reply Last reply
          0
          • SGaistS SGaist

            Can you show your .pro file ?
            The processor architecture you are targeting x86, x86_64, arm, arm64 etc. So in your case Windows 64bit.

            D Offline
            D Offline
            duncan98
            wrote on last edited by duncan98
            #5

            @SGaist
            pro.jpg
            The processor is x86_64.
            Resources are added through the resource editor. No project configuration parameters have been modified, just re-run.

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #6

              Do you have the same behavior if you build a default application ?

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              D 1 Reply Last reply
              0
              • SGaistS SGaist

                Do you have the same behavior if you build a default application ?

                D Offline
                D Offline
                duncan98
                wrote on last edited by
                #7
                This post is deleted!
                1 Reply Last reply
                1
                • D Offline
                  D Offline
                  duncan98
                  wrote on last edited by
                  #8

                  This problem is not solved, and occasionally occurs for no reason. The size of EXE file increases with the number of times creator is started

                  1 Reply Last reply
                  0
                  • D Offline
                    D Offline
                    duncan98
                    wrote on last edited by
                    #9

                    Is this a bug?

                    mrjjM 1 Reply Last reply
                    0
                    • D duncan98

                      Is this a bug?

                      mrjjM Offline
                      mrjjM Offline
                      mrjj
                      Lifetime Qt Champion
                      wrote on last edited by
                      #10

                      @duncan98
                      Hi
                      I dont think so.
                      If you delete teh build folder and rebuild all. then what size has it ?

                      D 1 Reply Last reply
                      0
                      • mrjjM mrjj

                        @duncan98
                        Hi
                        I dont think so.
                        If you delete teh build folder and rebuild all. then what size has it ?

                        D Offline
                        D Offline
                        duncan98
                        wrote on last edited by
                        #11

                        @mrjj
                        After I delete the build folder, clean up the project and rebuild, the size is increased compared to the previous one. The Qt version is 5.15.2

                        mrjjM 1 Reply Last reply
                        0
                        • D duncan98

                          @mrjj
                          After I delete the build folder, clean up the project and rebuild, the size is increased compared to the previous one. The Qt version is 5.15.2

                          mrjjM Offline
                          mrjjM Offline
                          mrjj
                          Lifetime Qt Champion
                          wrote on last edited by
                          #12

                          @duncan98
                          so you clean the folder and rebuild
                          If you do it again, this time the exe size is bigger ?

                          D 1 Reply Last reply
                          0
                          • mrjjM mrjj

                            @duncan98
                            so you clean the folder and rebuild
                            If you do it again, this time the exe size is bigger ?

                            D Offline
                            D Offline
                            duncan98
                            wrote on last edited by
                            #13

                            @mrjj
                            yes

                            mrjjM 1 Reply Last reply
                            0
                            • D duncan98

                              @mrjj
                              yes

                              mrjjM Offline
                              mrjjM Offline
                              mrjj
                              Lifetime Qt Champion
                              wrote on last edited by
                              #14

                              @duncan98
                              and you go and delete the exe ?
                              not just use the menu clean build folder ?

                              D 1 Reply Last reply
                              0
                              • mrjjM mrjj

                                @duncan98
                                and you go and delete the exe ?
                                not just use the menu clean build folder ?

                                D Offline
                                D Offline
                                duncan98
                                wrote on last edited by
                                #15

                                @mrjj
                                yes

                                mrjjM 1 Reply Last reply
                                0
                                • D duncan98

                                  @mrjj
                                  yes

                                  mrjjM Offline
                                  mrjjM Offline
                                  mrjj
                                  Lifetime Qt Champion
                                  wrote on last edited by
                                  #16

                                  @duncan98

                                  Then its a bit odd as a clean build should be same size unless you add something new.

                                  D 1 Reply Last reply
                                  0
                                  • mrjjM mrjj

                                    @duncan98

                                    Then its a bit odd as a clean build should be same size unless you add something new.

                                    D Offline
                                    D Offline
                                    duncan98
                                    wrote on last edited by duncan98
                                    #17

                                    @mrjj
                                    The normal EXE file is only 2M, and the abnormal one is 100M

                                    1 Reply Last reply
                                    0
                                    • D Offline
                                      D Offline
                                      duncan98
                                      wrote on last edited by
                                      #18
                                      This post is deleted!
                                      1 Reply Last reply
                                      0
                                      • D Offline
                                        D Offline
                                        duncan98
                                        wrote on last edited by duncan98
                                        #19

                                        I think it may be the creator's problem

                                        C 1 Reply Last reply
                                        0
                                        • D duncan98

                                          I think it may be the creator's problem

                                          C Offline
                                          C Offline
                                          ChrisW67
                                          wrote on last edited by ChrisW67
                                          #20

                                          @duncan98 I am certain it has nothing to do with Qt Creator. Starting Qt Creator will not change an executable. Creator is not a C++ compiler; it is an editor that can launch a make process to build your executable for you. The compiler and linker are what produce the executable. In your case, this a GCC version. Producing the executable is not connected to running the executable.

                                          The ways a Windows executable file can grow is:

                                          • You put more code, or embedded resources, in it.
                                          • You build a version with debug symbols, which will be a bit larger (but not usually an order of magnitude)
                                          • You build a version with different compiler optimisation options.
                                          • You change the compiler; different compilers will produce different sized results.
                                          • Some external process, that is neither the compiler nor the running executable, opens the file and appends to the executable.

                                          If you want to support your claimed behaviour with some evidence:

                                          • Delete your build folder
                                          • Verify that your target executable (wms.exe) does not exist.
                                          • Build your application
                                          • Post the entire content of the Qt Creator compiler output panel (copy and paste the text not a partial screen shot)
                                          • Execute "dir wms.exe" in the build folder and post the result
                                          • Delete the executable
                                          • Build your application
                                          • Post the entire content of the Qt Creator compiler output panel (copy and paste the text not a partial screen shot). Note that this should not include calls to compile C++ source, only a linker call.
                                          • Execute "dir wms.exe" in the build folder and post the result
                                          D 2 Replies Last reply
                                          6

                                          • Login

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