Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. App size
Forum Updated to NodeBB v4.3 + New Features

App size

Scheduled Pinned Locked Moved Qt Creator and other tools
6 Posts 2 Posters 2.2k 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.
  • I Offline
    I Offline
    itisman
    wrote on last edited by
    #1

    Hello all, I've been messing around with the Wiggly example widget from Qt. The application is only 34 kb, but it requires 6 dlls to run properly. (Qt5Core.dll, Qt5Gui.dll, Qt5Widgets.dll, icudt51.dll, icuin51.dll and icuuc51.dll)

    Is there a way to reduce it's size, because a simply text draw app can't be 39 mb in size. I was reading about static linking but I don't want to use that, for some reasons. I was thinking, since the app doesn't use all the functions in these dlls, can I somehow cut them off, so the program will use only the necessary things?

    Thanks in advance.

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

      Hi and welcome to devnet,

      If you don't want to use static linking the only other option would be to rebuild Qt by disabling all the features you don't need. That's a pretty long process and there are very few people that uses this option.

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

      1 Reply Last reply
      0
      • I Offline
        I Offline
        itisman
        wrote on last edited by
        #3

        [quote author="SGaist" date="1376767159"]Hi and welcome to devnet,

        If you don't want to use static linking the only other option would be to rebuild Qt by disabling all the features you don't need. That's a pretty long process and there are very few people that uses this option.[/quote]

        Hi and thank you for the reply. If I'd like to use static linking will the final size be like 2-3 mb or smaller? How really does this work?

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

          It all depends of what you use from the libraries so I can't tell you the final size of your application.

          What do you mean by "how really does this work ?" ?

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

          1 Reply Last reply
          0
          • I Offline
            I Offline
            itisman
            wrote on last edited by
            #5

            I mean, the static linking itself removes the unnecessary stuff (functions) from these libraries so the final size gets smaller?

            I'm talking about the Wiggly widget example right now. It's 39 mb with all these 6 dlls. The archived version is about 10 mb, anyway that's very huge for that kind of application.

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

              It all depends on what your application uses from the libraries.

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

              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