[Qt-interest] FW: Mac OS X Bundle Sizes

Scott Aron Bloom Scott.Bloom at sabgroup.com
Sun Apr 19 16:45:29 CEST 2009


Please replay to the list...

There is a tool that comes with qt-embedded that graphically allows you
to turn on and off the system...

I had written a perl script, that using the qmake project file would
traverse each file and keep a list of every QT file that was included..
If it wasn't included, I had also made up a lookup table for File->the
ifdef needed...

It would then give me the script to call configure with.

That said... OSX is as bloated as any other OS... And since you are
shipping a universal binary.. in reality, yoru probably looking at
12-14MB anyway (assuming size ~ windows size) so all this for 15 MB
seems like overkill on a non-embedded system..

Also.. whynot just build and bind the QT libs statically?

Scott

-----Original Message-----
From: Freddie Witherden [mailto:freddie at witherden.org] 
Sent: Sunday, April 19, 2009 4:18 AM
To: Scott Aron Bloom
Subject: Re: [Qt-interest] Mac OS X Bundle Sizes

Hi,

On 19 Apr 2009, at 11:48, Scott Aron Bloom wrote:
> Not really.. When you ship dynamic/shared libs for only 1 application,

> or not actually sharing them across applications, you are simply 
> wasting hard drive space.. Not that this "waste" isn't useful for 
> other reasons (allowing plugins for QT is one major advantaged) but if

> you are only using 1/2 a library, you are shipping the other half, 
> just in case some other app needs it...
>
> One way to do what you want, is to build a minimal build of QT 
> itself...
> Which is the technique I have used for embedded QT..  Where I may have

> 2 or 3 QT apps on my device, so I want a share library.. However I am 
> not using anywhere near the full QT library.
>
> You can do this, but going through and manually removing what is used 
> via #defines..
>
> Ie, not using QT3 support, make sure its defined out, same thing for 
> say comboboxes..  TrolLTech is VERY VERY good about allowing you to 
> remove a bunch of functionality that you don't need...

Are there any tools which can work out what my application needs, Qt
wise and then do the configure stuff on my behalf? (My application does
not require plug-ins per-se.)

Regards, Freddie.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 201 bytes
Desc: not available
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090419/1cdca41f/attachment.bin 


More information about the Qt-interest-old mailing list