Hi all,
How can I reduce the size of QtCore4.dll and QTGUI4.dll so that my downloaded program is as small as possible?
Patrick
Hi all,
How can I reduce the size of QtCore4.dll and QTGUI4.dll so that my downloaded program is as small as possible?
Patrick
You could always try using UPX to reduce the size of your application.
There are several make variables Qt uses during its build that can reduce its size. These are intended for Qtopia, but should be usable by Qt/win32 as well. These are listed in src/corelib/global/qfeatures.h. I have never done this, but presumably you can edit qconfig.h and add these variables, then make sub-src.
p.s. You can, of course, statically link your application, then strip it. That will give you the smallest size executable possible. It won't work if you have multiple executables using the libraries, but is ideal for deploying single applications. There is a page deploying in Assistant.
p.p.s. If you have a commercial license, you may consider "downgrading" to the desktop-light edition.
I think one can do the "downgrade" by (un)defining some defines which turn off support for parts of the api. But one needs to scan Qt code to find proper defines
Bookmarks