Hi,
Right now, the application size of my trivial wxWidgets app ( just a frame , containing a canvas and making it visible ) is about 5MB . I was wondering if there is any way we can reduce this app. size.
The linking options that I am having are -
-mwindows
-lwxmsw25d
-lwxregexd
-lwxpngd
-lwxjpegd
-lwxzlibd
-lwxtiffd
-lwxmsw25d_gl
-lstdc++ -lgcc -lodbc32 -lwsock32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -lodbc32 -ladvapi32 -lodbc32 -lwsock32 -lopengl32 -lglu32 -lole32 -loleaut32 -luuid
Is there any way to reduce the application size , ( in terms of adding / removing some libraries ?? ) or some other options.
Reducing the size of the wxWidgets app. executable
There has been lots of talk about this on the mail list. YOu can search thru google:
http://groups.google.com/groups?hl=en&l ... .wxwindows
If you *really* need a compact exe you can use something like UPX:
http://upx.sourceforge.net/
Or you can use borland, visual c++ or digital mars they all have free compilers that products smaller exes. But not that much smaller.
CG
http://groups.google.com/groups?hl=en&l ... .wxwindows
If you *really* need a compact exe you can use something like UPX:
http://upx.sourceforge.net/
Or you can use borland, visual c++ or digital mars they all have free compilers that products smaller exes. But not that much smaller.
CG
- ABX
- Can't get richer than this
- Posts: 810
- Joined: Mon Sep 06, 2004 1:43 pm
- Location: Poznan, Poland
- Contact:
Re: Reducing the size of the wxWidgets app. executable
For release there is no reason to use debug version of library. Also do you really use all the formats of the images ? You can also disable some of the feature. For comparison I once tried to cut size of exacutables experimenting with Borland on minimal wxW sample. I started from more than 3MB. After disabling everything possible (in setup.h) I finished with about 500KB. So definietly there is a lot to play with.akkumar wrote:Hi,
Right now, the application size of my trivial wxWidgets app ( just a frame , containing a canvas and making it visible ) is about 5MB . I was wondering if there is any way we can reduce this app. size.
The linking options that I am having are -
-mwindows
-lwxmsw25d
-lwxregexd
-lwxpngd
-lwxjpegd
-lwxzlibd
-lwxtiffd
-lwxmsw25d_gl
-lstdc++ -lgcc -lodbc32 -lwsock32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -lodbc32 -ladvapi32 -lodbc32 -lwsock32 -lopengl32 -lglu32 -lole32 -loleaut32 -luuid
Is there any way to reduce the application size , ( in terms of adding / removing some libraries ?? ) or some other options.