Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. How to decrease the size of module

How to decrease the size of module

Scheduled Pinned Locked Moved Mobile and Embedded
sizeapp
9 Posts 3 Posters 3.5k 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.
  • E Offline
    E Offline
    ericmayc
    wrote on last edited by
    #1

    I deploy the app developed by qml to mobile and the size is so large. After investigation, I find the size of each of quick, core, gui and qml is more than 3M. I want to decrease the size of module as far as possible. Anyone has any idea?

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

      Hi and welcome to devnet,

      You can re-build Qt with all unneeded features disabled that may save you some trouble

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

      E 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi and welcome to devnet,

        You can re-build Qt with all unneeded features disabled that may save you some trouble

        E Offline
        E Offline
        ericmayc
        wrote on last edited by
        #3

        @SGaist ,Yes, I have done that. But it can't meet my need. What I need is total size of all these modules are less than 10M.

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

          What are you needing exactly ?

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

          E 1 Reply Last reply
          0
          • SGaistS SGaist

            What are you needing exactly ?

            E Offline
            E Offline
            ericmayc
            wrote on last edited by
            #5

            @SGaist ,decrease the size of gui, qml, core, quick as much as possible. Re-build Qt with all unneeded features disabled is not enough. For example, after I have re-build without unneeder features, the size of module libQt5Gui.so is 2808k. I hope it is less than 2M.

            L 1 Reply Last reply
            0
            • E ericmayc

              @SGaist ,decrease the size of gui, qml, core, quick as much as possible. Re-build Qt with all unneeded features disabled is not enough. For example, after I have re-build without unneeder features, the size of module libQt5Gui.so is 2808k. I hope it is less than 2M.

              L Offline
              L Offline
              LJoker
              wrote on last edited by
              #6

              @ericmayc
              I have the same problem with you, the ipa or apk is too big for my users. And as I know, some developers turned to choose xarmarin because of its smaller package. I hope Qt to provide a tool to reconfigure features and re-build it for smaller size.

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

                What features did you kept in that module `

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

                E 1 Reply Last reply
                0
                • SGaistS SGaist

                  What features did you kept in that module `

                  E Offline
                  E Offline
                  ericmayc
                  wrote on last edited by
                  #8

                  @SGaist , I disable these features as following. I don't know what else I can do. Do you have any ideas?
                  -no-widgets
                  -no-accessibility
                  -no-openssl
                  -no-mtdev
                  -no-libudev
                  -no-sql-ibase
                  -no-sql-mysql
                  -no-sql-odbc
                  -no-sql-psql
                  -no-sql-sqlite
                  -no-sql-sqlite2
                  -no-sql-tds
                  -system-sqlite
                  -system-zlib
                  -system-libpng
                  -system-libjpeg
                  -no-dbus
                  -no-gtkstyle
                  -no-openvg
                  -nomake tests
                  -nomake examples
                  -no-qml-debug
                  -no-xinput2
                  -no-feature-CSSPARSER
                  -no-feature-XMLSTREAM
                  -no-feature-XMLSTREAMREADER
                  -no-feature-XMLSTREAMWRITER
                  -no-feature-TEXTODFWRITER \

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

                    You can also take a look at qfeatures.txt to see everything you can disable to make Qt smaller.

                    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