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 10.0k 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
    #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
                          • C ChrisW67

                            @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 Offline
                            D Offline
                            duncan98
                            wrote on last edited by
                            #21

                            @ChrisW67
                            Thank you for your explanation. It should be related to the compiler. But something more strange happened. I uninstalled and reinstalled QT, and now I can't start it 😂

                            jsulmJ 1 Reply Last reply
                            0
                            • D duncan98

                              @ChrisW67
                              Thank you for your explanation. It should be related to the compiler. But something more strange happened. I uninstalled and reinstalled QT, and now I can't start it 😂

                              jsulmJ Offline
                              jsulmJ Offline
                              jsulm
                              Lifetime Qt Champion
                              wrote on last edited by
                              #22

                              @duncan98 You mean you can't start QtCreator? What exactly happens? Any error message?

                              https://forum.qt.io/topic/113070/qt-code-of-conduct

                              D 2 Replies Last reply
                              1
                              • jsulmJ jsulm

                                @duncan98 You mean you can't start QtCreator? What exactly happens? Any error message?

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

                                @jsulm
                                Creator failed to start without any response

                                jsulmJ 1 Reply Last reply
                                0
                                • D duncan98

                                  @jsulm
                                  Creator failed to start without any response

                                  jsulmJ Offline
                                  jsulmJ Offline
                                  jsulm
                                  Lifetime Qt Champion
                                  wrote on last edited by
                                  #24

                                  @duncan98 Then start it from a terminal to see whether there are any errors/warnings.

                                  https://forum.qt.io/topic/113070/qt-code-of-conduct

                                  1 Reply Last reply
                                  0
                                  • C ChrisW67

                                    @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 Offline
                                    D Offline
                                    duncan98
                                    wrote on last edited by duncan98
                                    #25

                                    @ChrisW67
                                    dir.jpg

                                    compiler output

                                    JonBJ C 2 Replies Last reply
                                    0
                                    • D duncan98

                                      @ChrisW67
                                      dir.jpg

                                      compiler output

                                      JonBJ Offline
                                      JonBJ Offline
                                      JonB
                                      wrote on last edited by
                                      #26
                                      This post is deleted!
                                      1 Reply Last reply
                                      0
                                      • jsulmJ jsulm

                                        @duncan98 You mean you can't start QtCreator? What exactly happens? Any error message?

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

                                        @jsulm
                                        I uninstall qt5.15.2 and install qt5.15.1. It just works

                                        1 Reply Last reply
                                        0
                                        • JoeCFDJ Offline
                                          JoeCFDJ Offline
                                          JoeCFD
                                          wrote on last edited by
                                          #28

                                          Wow, such a big difference between these two versions. I will check them out on Linux.

                                          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