[Qt-interest] possible to cut size of my final released package?

Alessandro Portale Alessandro.Portale at trolltech.com
Thu Dec 18 18:02:32 CET 2008


Hi,

try to build the application with a static Qt. See:
http://doc.trolltech.com/latest/deployment-windows.html#static-linking

Additionally you can add configure options like "-no-stl", 
"-no-style-cde", "-no-style-cleanlooks", "-no-style-motif" or 
"-no-style-plastique". Those should remove a few Kilobytes.

Confirming what Diego Schulz suggested. You can squeeze the last bit of 
air out of your package with the Exe-packer UPX: 
http://upx.sourceforge.net/

Good luck,
Alessandro

James Yan schrieb:
> for example:
> qtcore4.dll +  qtgui4.dll = 8MB or so, which is twice bigger for my 
> current released package based on MFC. is there any method to make it slim?
> 
> On Wed, Dec 17, 2008 at 10:16 AM, James Yan <jyan972 at gmail.com 
> <mailto:jyan972 at gmail.com>> wrote:
> 
>     hi all,
> 
>     i'm using qt on win32, and i found these some qt must-have dll files
>     are not small, such as qtcore4.dll and qtgui4.dll, those dll make my
>     final released package much bigger than the one based on non-qt GUI
>     lib before, like MFC,etc.
> 
>     is there anyway to cut the size of my release? thanks.



More information about the Qt-interest-old mailing list