Re: Building universal binary of open source library
Re: Building universal binary of open source library
- Subject: Re: Building universal binary of open source library
- From: Tobias Ford <email@hidden>
- Date: Thu, 15 Mar 2007 02:23:47 -0500
I remember when I was looking into this same thing there wasn't much
information. So...
this is what I'm using to combine the fmod sound libs using lipo
lipo -create ../../external/library/fmod/lib/macosx/ppc/
libfmodex.dylib ../../external/library/fmod/lib/macosx/x86/
libfmodex.dylib -output ../../external/library/fmod/lib/macosx/
libfmodex.dylib
this combines the 2 versions of the lib located in:
.../library/fmod/lib/macosx/x86/libfmodex.dylib
.../library/fmod/lib/macosx/ppc/libfmodex.dylib
into the single lib located at
.../library/fmod/lib/macosx/libfmodex.dylib
which is a universal lib that I link against.
The paths leading to libfmodex are only relevant to my project
setup. They can be whatever you lay out your project structure to be.
additionally, I run install_name_tool on this library after copying
it to the final application bundle and and don't want to install it
under /usr or force users to do the same.
install_name_tool -change /usr/local/lib/libfmodex.dylib
@loader_path/../Frameworks/libfmodex.dylib "$TARGET_BUILD_DIR/
$PRODUCT_NAME.app/Contents/MacOS/Client"
-------------------
Tobias Ford...
tobias1482 'at' mac.com
tford 'at' spacetimestudios.com
-------------------
Sr Programmer @ space time studios for a generic space game mmo
"The Batman is Muhhammed Ali -- Jim Brown -- Shaft -- an' Super-Fly
all rolled into one!" -- Batman #250 by Frank Robbins
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden