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. Deployment size for Linux vs Windows
Forum Update on Monday, May 27th 2025

Deployment size for Linux vs Windows

Scheduled Pinned Locked Moved Solved General and Desktop
8 Posts 4 Posters 596 Views
  • 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.
  • M Offline
    M Offline
    m3g1dd
    wrote on last edited by
    #1

    I'm deploying an app developed by Qt for both Windows and Linux:

    On Windows I'm using built-in Qt windeployqt tool:

    windeployqt.exe app.exe --qmldir %NS_REPO_DIR%\qml\
    

    On Linux I'm using linuxdeployqt:

    linuxdeployqt_EXE="${NS_REPO_DIR}/scripts/linuxdeployqt/linuxdeployqt-7-x86_64.AppImage"
    
    ${linuxdeployqt_EXE} app -qmake=${NS_QT_QMAKE_EXE} -qmldir=${NS_REPO_DIR}/qml/ 
    

    The deployment size for Windows is around 70 MB and for Linux is around 300 MB. Is it normal? Is there anything I might be missing?

    Thanks!

    1 Reply Last reply
    0
    • M m3g1dd

      @sierdzio

      This is my deployment on Linux whose content is sorted by size. The Qt files don't look like to be debug mode. Also, there is a huge libQt5WebEngineCore.so.5.12.7 file of 111 MB:

      Screenshot_20210120_140004.png

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

      @m3g1dd You can remove libs which are not used by your app.
      Do

      ldd YOUR_APP
      

      to see which libs are used.

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

      1 Reply Last reply
      4
      • sierdzioS Offline
        sierdzioS Offline
        sierdzio
        Moderators
        wrote on last edited by
        #2

        Maybe you have used debug libraries on Linux? They weigh a lot more than release ones.

        (Z(:^

        M 1 Reply Last reply
        3
        • sierdzioS sierdzio

          Maybe you have used debug libraries on Linux? They weigh a lot more than release ones.

          M Offline
          M Offline
          m3g1dd
          wrote on last edited by
          #3

          @sierdzio

          This is my deployment on Linux whose content is sorted by size. The Qt files don't look like to be debug mode. Also, there is a huge libQt5WebEngineCore.so.5.12.7 file of 111 MB:

          Screenshot_20210120_140004.png

          M jsulmJ W 3 Replies Last reply
          0
          • M m3g1dd

            @sierdzio

            This is my deployment on Linux whose content is sorted by size. The Qt files don't look like to be debug mode. Also, there is a huge libQt5WebEngineCore.so.5.12.7 file of 111 MB:

            Screenshot_20210120_140004.png

            M Offline
            M Offline
            m3g1dd
            wrote on last edited by
            #4

            @m3g1dd

            Some non-Qt files like TBB files are deployed which are in debug mode. But their sizes are not that large.

            Any ways, I might remove the non-Qt debug mode files and see how it changes the deployment size.

            1 Reply Last reply
            0
            • M m3g1dd

              @sierdzio

              This is my deployment on Linux whose content is sorted by size. The Qt files don't look like to be debug mode. Also, there is a huge libQt5WebEngineCore.so.5.12.7 file of 111 MB:

              Screenshot_20210120_140004.png

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

              @m3g1dd You can remove libs which are not used by your app.
              Do

              ldd YOUR_APP
              

              to see which libs are used.

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

              1 Reply Last reply
              4
              • M m3g1dd

                @sierdzio

                This is my deployment on Linux whose content is sorted by size. The Qt files don't look like to be debug mode. Also, there is a huge libQt5WebEngineCore.so.5.12.7 file of 111 MB:

                Screenshot_20210120_140004.png

                W Offline
                W Offline
                wrosecrans
                wrote on last edited by
                #6

                @m3g1dd This isn't a particularly large part of your problem, but it makes no sense that libgmp.a is in your AppImage. There is generally no need to ship a static library like that for use at runtime.

                That said, compare exactly what libs are shipped on Windows. Is LinuxdeployQt including more libraries, or are those libraries just individually all larger?

                1 Reply Last reply
                1
                • M Offline
                  M Offline
                  m3g1dd
                  wrote on last edited by
                  #7

                  The major reason for Linux vs Windows deployment size difference (300 MB vs 70MB) is suggested to be: https://stackoverflow.com/a/65813398/3405291

                  jsulmJ 1 Reply Last reply
                  0
                  • M m3g1dd

                    The major reason for Linux vs Windows deployment size difference (300 MB vs 70MB) is suggested to be: https://stackoverflow.com/a/65813398/3405291

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

                    @m3g1dd So, did you try to find out whether all these libs are really needed? Did you check what @wrosecrans wrote?

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

                    1 Reply Last reply
                    1

                    • Login

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