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. How to Decrease the Size of Qt Apps/libraries?
Forum Updated to NodeBB v4.3 + New Features

How to Decrease the Size of Qt Apps/libraries?

Scheduled Pinned Locked Moved General and Desktop
11 Posts 5 Posters 7.0k Views 1 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.
  • W Offline
    W Offline
    wasim3s
    wrote on last edited by
    #1

    Recently i develop new a application, the size of object files and exe file equal to 15 MB.

    But 6 Qt libraries make its size to 234 MB. I want know how to decrease this size just like normal windows application???

    1 Reply Last reply
    0
    • F Offline
      F Offline
      fluca1978
      wrote on last edited by
      #2

      What are normal windows applications? Are you sure you are not including in your project file libraries that are not used? Are you statically linking the application to libraries?

      1 Reply Last reply
      0
      • G Offline
        G Offline
        giesbert
        wrote on last edited by
        #3

        Are you comparing debug or release builds? 234 MB for qt is not release...
        And If you say, normal application, are you talking about something like MFC? then include all MFC dlls in your calculation ;-)

        Nokia Certified Qt Specialist.
        Programming Is Like Sex: One mistake and you have to support it for the rest of your life. (Michael Sinz)

        1 Reply Last reply
        0
        • W Offline
          W Offline
          wasim3s
          wrote on last edited by
          #4

          Normal windows applications mean Skype and Yahoo messenger etc whose size is 23 and 12 MB respectively.
          Yes i am sure. All libraries have normal size but QtGuid4.dll and Qt cored.dll are heavy.
          I dont know...!

          1 Reply Last reply
          0
          • G Offline
            G Offline
            giesbert
            wrote on last edited by
            #5

            QtGuid4.dll and Qt cored.dll
            These are debug dlls
            so compare them to a skype debug build please...

            Nokia Certified Qt Specialist.
            Programming Is Like Sex: One mistake and you have to support it for the rest of your life. (Michael Sinz)

            1 Reply Last reply
            0
            • W Offline
              W Offline
              wasim3s
              wrote on last edited by
              #6

              Actually i want to run application independent of Qt SDK.
              Either build a application in debug or release mode. It always asked for missing libraries.
              i.e. "The program cant start because mingwm10.dll is missing from your computer. Try reinstalling the program to fix this problem."
              When i copy this dll to exe directory then it will ask libgcc_s_dw2-1.dll by displaying same message until it gain all the required dll.

              Tell me why VLC media Player has 20 MB size. It is also build in Qt???

              1 Reply Last reply
              0
              • A Offline
                A Offline
                andre
                wrote on last edited by
                #7

                You should build in release mode, and use the QtGui4.dll and QtCore4.dll files (note: without the "d"). These are much smaller.

                1 Reply Last reply
                0
                • D Offline
                  D Offline
                  dangelog
                  wrote on last edited by
                  #8

                  Then you should read the deploying documentation.

                  Software Engineer
                  KDAB (UK) Ltd., a KDAB Group company

                  1 Reply Last reply
                  0
                  • W Offline
                    W Offline
                    wasim3s
                    wrote on last edited by
                    #9

                    You mean i should study how to share Qt libraries in a system...?

                    1 Reply Last reply
                    0
                    • G Offline
                      G Offline
                      giesbert
                      wrote on last edited by
                      #10

                      Does VCL hase external dalls or is it stacically linked? That can make an app much smaller, but not all license models allow that (for Qt only commercial and GPL I think, LGPL does not allow that).

                      Nokia Certified Qt Specialist.
                      Programming Is Like Sex: One mistake and you have to support it for the rest of your life. (Michael Sinz)

                      1 Reply Last reply
                      0
                      • G Offline
                        G Offline
                        giesbert
                        wrote on last edited by
                        #11

                        [quote author="wasim3s" date="1323970581"]You mean i should study how to share Qt libraries in a system...?[/quote]

                        you can install them in the system or beside your executable

                        EDIT: by the way, I checked my VCL installation, it's 56 MB :-)

                        Nokia Certified Qt Specialist.
                        Programming Is Like Sex: One mistake and you have to support it for the rest of your life. (Michael Sinz)

                        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