[Qt-interest] Deploying on Mac -- bundle size is huge?

Michael Jackson mike.jackson at bluequartz.net
Mon Sep 27 22:50:43 CEST 2010


On 9/27/10 3:44 PM, in article 4CA0F42B.2030005 at fxtech.com, "Paul Miller"
wrote:

> On 9/27/2010 1:41 PM, Deepak Chandran wrote:
>> Hello,
>> 
>> I followed the instructions for deploying Mac applications by copying
>> the Qt framework inside the bundle. I find that this blows up the size
>> of the application by around +500MB. I realize that there is a way to
>> copy just the dylib files, but when use otool -L MyApp, the list only
>> contains references to Qt frameworks (e.g.
>> QtGui.framework/Versions/4/QtGui). I don't see any references to dylib
>> files. What do I need to do so that the application references dylib
>> files instead of the whole framework?
> 
> Make sure you're not linking with the debug+release versions of the
> frameworks. Also, you can remove the entire Headers sub-trees from
> inside your embedded Frameworks.
Use the "macdeployqt" application to package your application. This will do
the necessary and CORRECT stripping of the Qt Frameworks so that your
application is self contained.

Mike Jackson




More information about the Qt-interest-old mailing list