PDA

View Full Version : deployment size issues, please help



udit
14th August 2009, 20:19
Hi i just created some apps and was deploying a simple binary to hex converter
The app was desiged in release mode with executable less than 500kb but With the executable to run on any windowsi had to provide 3 extra things with the executable in setup

mingwm10.dll
qtcore4.dll
qtgui4.dll

The total accounted for around 13.4 mb with qtgui4.dll tking about 10 mb

so i was hoping anyone can tell me is there a better way out so that to reduce the size of such a small app to less than 1mb or less, . It is just a binary to hexadecimal converter and should not take such huge size

axeljaeger
16th August 2009, 10:02
if you have a commercial license, you can do static linking.

Boron
16th August 2009, 17:29
Packing exe and libraries with UPX (http://en.wikipedia.org/wiki/UPX) will also help.

Lykurg
16th August 2009, 21:11
if you have a commercial license, you can do static linking.
...or using the GPL.

burnttoy
17th August 2009, 09:32
To follow up Boron's post. Statically link Qt and run UPX over the final executable. You can find UPX here http://upx.sourceforge.net/

To give you some context. I've got a fairly complex UI here with embedded webkit and a lot of other code in (server IO etc). I'm using Core, Gui, Network, Xml, OpenGL and Webkit in this project and the statically linked binary is around 14.1 megabytes. Once UPX'd the size of this falls to 4.5 megabytes - I HUGE saving - plus I've just got one exe to deploy to my users. A very simple installation task.