[Qt-interest] Strip Mac Universal Binary?
Paul Miller
paul at fxtech.com
Sat Oct 16 16:54:55 CEST 2010
On 10/16/2010 1:58 AM, Joshua Grauman wrote:
> Hello,
>
> I'm only planning on shipping my app for x86_64. The Qt libraries however
> are universal binaries with x86_64 and i386. Rather than recompiling Qt,
> is there an easy way to strip out the i386 stuff to shrink the size of the
> Qt libs? Thanks!
lipo is your friend.
I took the stock Qt frameworks and used lipo to remove the i386
versions, and those are the ones I bundle with my x64 app.
From memory, it's something like this (use man lipo for details):
lipo -remove -arch i386 QtCore.framework/Versions/4/QtCore -output
QtCore.framework/Versions/4/QtCore
Rinse and repeat for the other frameworks.
More information about the Qt-interest-old
mailing list