Hi Rafael,

you can strip down qt a lot more by creating and using your own qconfig.h file, 
there are also some examples present in the qt distribution.
I did this for qt 4 once in a while, back then configure hat a -qconfig option 
where you could give it your own qconfig-myown.h file.
If this option does no longer exists ( qt5 is notorious for not supporting many 
configure swicthes, qt 4 did support), edit the qconfig.h in the src yourself.

But be very carefully, i for example disabled svg color names ,which broke many 
quick1 mL scripts. Took some time to understand what was wrong.

Regards,
Gunnar Roth


> Am 07.08.2015 um 22:31 schrieb Rafael Machado 
> <rafaelrodrigues.mach...@gmail.com>:
> 
> Hi everyone
> 
> This is my first question on this mail list, so sorry for possible trivial 
> questions.
> 
> I have task to reduce the size of an installer of an application from my 
> company.
> What I checked is that the qt dlls that we use are kind of big, so my idea 
> was to try to reduce these dlls sizes.
> 
> To do it I have compiled qt removing several modules that we don't use. 
> Something like:
> 
> configure -release -confirm-license -opensource -nomake examples -nomake 
> tests -no-evdev -no-mtdev -no-inotify -no-system-proxies -no-fontconfig 
> -no-harfbuzz -no-plugin-manifests -no-ssl -no-openssl -no-dbus 
> -no-audio-backend -no-wmf-backend -no-qml-debug -no-directwrite -no-direct2d 
> -no-native-gestures -no-style-windows -no-style-windowsxp 
> -no-style-windowsvista -no-style-fusion -skip qt3d -skip qtactiveqt -skip 
> qtandroidextras -skip qtdoc -skip qtdocgallery -skip qtfeedback -skip 
> qtlocation -skip qtmacextras -skip qtmultimedia -skip qtrepotools -skip 
> qtscript -skip qtsensors -skip qtserialport -skip qtsvg -skip qttools -skip 
> qttranslations -skip qtwayland -skip qtwebengine -skip qtwebkit -skip 
> qtwebkit-examples -skip qtwinextras -skip qtx11extras
> 
> After doing this, the qtcore.dll was reduced from 4.928.000 bytes to 
> 4.617.728 bytes.
> 
> I have checked at the documentation, and there are some options to remove 
> some features from the packages. For example, in case, we don't need the 
> feature UDPSOCKET for example, so adding to the configuration command the 
> option -no-feature-UDPSOCKET should remove unneeded things. (Features found 
> at C:\cygwin\home\.............\qtbase\src\corelib\global\qfeatures.txt)
> 
> The problem is that the option to remove features seems to be available just 
> for linux-embedded and not for the windows version of qt.
> Is my understanding correct ?
> 
> The last question. Is if is there any other option to try to reduce the .dll 
> sizes ?
> 
> Thanks for the help.
> 
> Thanks and Regards
> Rafael R. Machado
> _______________________________________________
> Interest mailing list
> Interest@qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest

_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to