Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. How to reduce required installation space?

How to reduce required installation space?

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
4 Posts 2 Posters 973 Views 2 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.
  • R Offline
    R Offline
    Richard Buchmann
    wrote on last edited by
    #1

    Dear community,

    I'm using the command line interface to install Qt:

    qt-unified-linux-x64-4.6.0-online.run --email ${MAIL} --password ${PASSWORD} --accept-licenses --accept-obligations --default-answer --confirm-command --no-default-installations install ...
    

    The required installation space is more than 7GB. I would like to find a way to reduce this.

    I know I do not need some packages. For example: qt.qt6.643.examples.qtshadertools, qt.qt6.643.doc.qtmultimedia etc.

    Is there any way to deselect some specific packages?
    or tips to reduce the footprint ?

    sierdzioS 1 Reply Last reply
    0
    • R Richard Buchmann

      Dear community,

      I'm using the command line interface to install Qt:

      qt-unified-linux-x64-4.6.0-online.run --email ${MAIL} --password ${PASSWORD} --accept-licenses --accept-obligations --default-answer --confirm-command --no-default-installations install ...
      

      The required installation space is more than 7GB. I would like to find a way to reduce this.

      I know I do not need some packages. For example: qt.qt6.643.examples.qtshadertools, qt.qt6.643.doc.qtmultimedia etc.

      Is there any way to deselect some specific packages?
      or tips to reduce the footprint ?

      sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      @Richard-Buchmann said in How to reduce required installation space?:

      Is there any way to deselect some specific packages?

      Which packages are you actually installing?

      or tips to reduce the footprint ?

      • pick only packages you need (you can check which using the GUI installer, it will be a bit easier to understand it this way)
      • do not pick debug symbols
      • do not pick source components
      • only choose a single Qt version, for single compiler

      Alternatively, you can compile Qt yourself. This way you get total control and can get down in size a lot. Just as an example, I am using Qt 6.5.3 on my current project, which is compiled statically with only a tight selection of modules we actually use. The entire Qt, after build, weights 228 MiB.

      (Z(:^

      R 1 Reply Last reply
      0
      • sierdzioS sierdzio

        @Richard-Buchmann said in How to reduce required installation space?:

        Is there any way to deselect some specific packages?

        Which packages are you actually installing?

        or tips to reduce the footprint ?

        • pick only packages you need (you can check which using the GUI installer, it will be a bit easier to understand it this way)
        • do not pick debug symbols
        • do not pick source components
        • only choose a single Qt version, for single compiler

        Alternatively, you can compile Qt yourself. This way you get total control and can get down in size a lot. Just as an example, I am using Qt 6.5.3 on my current project, which is compiled statically with only a tight selection of modules we actually use. The entire Qt, after build, weights 228 MiB.

        R Offline
        R Offline
        Richard Buchmann
        wrote on last edited by
        #3

        @sierdzio Thank you for the tips. Debug symbols, of course, reduce a lot. I tried to remove it. I hope I does not need it soon.

        I would like to keep using dynamic libraries.

        I need gcc and android platforms. It install android_armv7, android_x86 etc.
        414M /opt/Qt/6.4.3/android_arm64_v8a
        346M /opt/Qt/6.4.3/android_armv7
        351M /opt/Qt/6.4.3/android_x86
        413M /opt/Qt/6.4.3/android_x86_64

        I do not need android_x86*. I guess I can save space (and network bandwidth) here.

        The UI has only 1 check box for all android stuff, so I cannot select architectures. I cannot also install debug for gcc_64 only (not for android_*, for example).

        "MaintenanceTool list" display packages list. So I tried to install only the one I need: "qt.qt6.643.addons.qtmultimedia.android_arm64_v8a" and some other specific packages. The installation process ends normally but "6.4.3/android_arm64_v8a" is still missing.

        sierdzioS 1 Reply Last reply
        0
        • R Richard Buchmann

          @sierdzio Thank you for the tips. Debug symbols, of course, reduce a lot. I tried to remove it. I hope I does not need it soon.

          I would like to keep using dynamic libraries.

          I need gcc and android platforms. It install android_armv7, android_x86 etc.
          414M /opt/Qt/6.4.3/android_arm64_v8a
          346M /opt/Qt/6.4.3/android_armv7
          351M /opt/Qt/6.4.3/android_x86
          413M /opt/Qt/6.4.3/android_x86_64

          I do not need android_x86*. I guess I can save space (and network bandwidth) here.

          The UI has only 1 check box for all android stuff, so I cannot select architectures. I cannot also install debug for gcc_64 only (not for android_*, for example).

          "MaintenanceTool list" display packages list. So I tried to install only the one I need: "qt.qt6.643.addons.qtmultimedia.android_arm64_v8a" and some other specific packages. The installation process ends normally but "6.4.3/android_arm64_v8a" is still missing.

          sierdzioS Offline
          sierdzioS Offline
          sierdzio
          Moderators
          wrote on last edited by
          #4

          @Richard-Buchmann said in How to reduce required installation space?:

          @sierdzio Thank you for the tips. Debug symbols, of course, reduce a lot. I tried to remove it. I hope I does not need it soon.

          Is this for your development machine? I thought we are talking about some CI runner.

          On a dev machine space and network bandwidth are usually not a big problem, you only need to install Qt once after all.

          I would like to keep using dynamic libraries.

          Sure, I was not suggesting a switch to static, just providing an example and a static build was all I had :-)

          [...]
          "MaintenanceTool list" display packages list. So I tried to install only the one I need: "qt.qt6.643.addons.qtmultimedia.android_arm64_v8a" and some other specific packages. The installation process ends normally but "6.4.3/android_arm64_v8a" is still missing.

          Hm yes, Android builds are often pretty big, although also here a custom build of Qt can help. But building Qt manually is not easy so it is not a great solution.

          (Z(:^

          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