How to decrease the size of module
-
Hi and welcome to devnet,
You can re-build Qt with all unneeded features disabled that may save you some trouble
-
What are you needing exactly ?
-
@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.
-
@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. -
What features did you kept in that module `
-
@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 \ -
You can also take a look at qfeatures.txt to see everything you can disable to make Qt smaller.