Qt-interest Archive, May 2008
Problem with Qt executable size : 120 Mo
Message 1 in thread
Hi everyone, I've a 4.3 Qt application developped under Windows. I've ported
it to Mac OS and it works fine, but I've an interrogation about the size of
the executable whitch is 120 Mo . I don't know really why it is toooo big. I
use many frameworks but it is the cause ? Does anyone have an idea about
this and can tell me how to do to mimimize the size especially I must to put
the exécutable to download by clients.
Best regards.


Message 2 in thread
On Thu, May 15, 2008 at 10:54 AM, HEDFI Mourad <mourad@xxxxxxxx> wrote:
> Hi everyone, I've a 4.3 Qt application developped under Windows. I've ported
> it to Mac OS and it works fine, but I've an interrogation about the size of
> the executable whitch is 120 Mo . I don't know really why it is toooo big. I
> use many frameworks but it is the cause ? Does anyone have an idea about
> this and can tell me how to do to mimimize the size especially I must to put
> the exécutable to download by clients.
You mean the app-bundle is 120 or the executable binary? (Found in
Bundle.app/Contents/MacOS)
Our application is ~22MB compiled with static Qt and stripped. Out
application also contains a lot of compiled in resources, so the
actually running binary is a lot less.
--
[ signature omitted ]
Message 3 in thread
On Thu, May 15, 2008 at 11:34 AM, HEDFI Mourad <mourad@xxxxxxxx> wrote:
> I mean the executable binary is 120 Mo and after I must link it so the
> bundle will be 155 Mo
Does stripping the executable help? Do have a lot of static resources
in your application?
--
[ signature omitted ]
Message 4 in thread
Quoting HEDFI Mourad <mourad@xxxxxxxx>:
> Hi everyone, I've a 4.3 Qt application developped under Windows. I've ported
> it to Mac OS and it works fine, but I've an interrogation about the size of
> the executable whitch is 120 Mo . I don't know really why it is toooo big. I
> use many frameworks but it is the cause ? Does anyone have an idea about
> this and can tell me how to do to mimimize the size especially I must to put
> the exécutable to download by clients.
> Best regards.
Is your application compiled with debug symbols?
Have you linked Qt statically?
--
[ signature omitted ]