DizzyMoods
26th August 2012, 12:06
Hello.
What's the best way to reduce the size of a statically-linked Qt executable? I've configured my Qt build using:
configure -release -static -opensource -confirm-license -platform win32-g++ -nomake examples -nomake demos -no-ltcg -no-exceptions -no-accessibility -no-sql-mysql -no-sql-psql -no-sql-oci -no-sql-odbc -no-sql-tds -no-sql-db2 -no-sql-sqlite -no-sql-sqlite2 -no-sql-ibase -no-qt3support -no-opengl -no-openvg -no-gif -no-libpng -no-libpng -no-libmng -no-libtiff -no-libjpeg -no-dsp -no-vcproj -no-incredibuild-xge -no-plugin-manifests -no-plugin-manifests -no-rtti -no-mmx -no-3dnow -no-sse -no-sse2 -no-openssl -no-dbus -no-phonon -no-phonon-backend -no-multimedia -no-audio-backend -no-webkit -no-script -no-scripttools -no-declarative -no-declarative-debug -no-style-plastique -no-style-cleanlooks -no-style-motif -no-style-cde -no-style-windowsce -no-style-windowsmobile -no-style-s60 -no-mp -no-iwmmxt -no-crt -no-cetest -no-freetype -no-s60 -no-usedeffiles -no-native-gestures
This configuration basically includes all of the -no-??? directives apart from -no-stl and -no-qmake and. A simple Qt widget application still takes about 7-8 MBs. Is there any way to reduce it's size even more (besides packers like UPX)?
What's the best way to reduce the size of a statically-linked Qt executable? I've configured my Qt build using:
configure -release -static -opensource -confirm-license -platform win32-g++ -nomake examples -nomake demos -no-ltcg -no-exceptions -no-accessibility -no-sql-mysql -no-sql-psql -no-sql-oci -no-sql-odbc -no-sql-tds -no-sql-db2 -no-sql-sqlite -no-sql-sqlite2 -no-sql-ibase -no-qt3support -no-opengl -no-openvg -no-gif -no-libpng -no-libpng -no-libmng -no-libtiff -no-libjpeg -no-dsp -no-vcproj -no-incredibuild-xge -no-plugin-manifests -no-plugin-manifests -no-rtti -no-mmx -no-3dnow -no-sse -no-sse2 -no-openssl -no-dbus -no-phonon -no-phonon-backend -no-multimedia -no-audio-backend -no-webkit -no-script -no-scripttools -no-declarative -no-declarative-debug -no-style-plastique -no-style-cleanlooks -no-style-motif -no-style-cde -no-style-windowsce -no-style-windowsmobile -no-style-s60 -no-mp -no-iwmmxt -no-crt -no-cetest -no-freetype -no-s60 -no-usedeffiles -no-native-gestures
This configuration basically includes all of the -no-??? directives apart from -no-stl and -no-qmake and. A simple Qt widget application still takes about 7-8 MBs. Is there any way to reduce it's size even more (besides packers like UPX)?