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
Forum Updated to NodeBB v4.3 + New Features

How to decrease the size of module

Scheduled Pinned Locked Moved Mobile and Embedded
sizeapp
9 Posts 3 Posters 3.0k 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 12 Oct 2015, 11:37 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
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 12 Oct 2015, 22:04 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 13 Oct 2015, 10:56
      0
      • S SGaist
        12 Oct 2015, 22:04

        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 13 Oct 2015, 10:56 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
        • S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 13 Oct 2015, 21:03 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 14 Oct 2015, 03:50
          0
          • S SGaist
            13 Oct 2015, 21:03

            What are you needing exactly ?

            E Offline
            E Offline
            ericmayc
            wrote on 14 Oct 2015, 03:50 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 14 Oct 2015, 05:47
            0
            • E ericmayc
              14 Oct 2015, 03:50

              @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 14 Oct 2015, 05:47 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
              • S Offline
                S Offline
                SGaist
                Lifetime Qt Champion
                wrote on 14 Oct 2015, 21:38 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 15 Oct 2015, 02:35
                0
                • S SGaist
                  14 Oct 2015, 21:38

                  What features did you kept in that module `

                  E Offline
                  E Offline
                  ericmayc
                  wrote on 15 Oct 2015, 02:35 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
                  • S Offline
                    S Offline
                    SGaist
                    Lifetime Qt Champion
                    wrote on 16 Oct 2015, 16:04 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

                    1/9

                    12 Oct 2015, 11:37

                    • Login

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