Thank you Aimee - the fat binary libraries was the answer.

I deleted everything and started over at the point of unpacking the tar files, and just following the wiki did not do it, but adding the step you mentioned did. I made a simple shell script to speed up dealing with the fmod libraries... not sure if some of it is redundant (the part out of the wiki) but I've done both that and the stuff you told me, and it works.

#!/bin/bash

# from the wiki
mkdir -p linden/libraries/include
mkdir -p linden/libraries/powerpc-darwin/lib_debug
mkdir -p linden/libraries/powerpc-darwin/lib_release
mkdir -p linden/libraries/i386-darwin/lib_debug/
mkdir -p linden/libraries/i386-darwin/lib_release
cp -p fmodapi375mac/api/inc/*.h linden/libraries/include
cp -p fmodapi375mac/api/lib/libfmod.a linden/libraries/powerpc- darwin/lib_debug cp -p fmodapi375mac/api/lib/libfmod.a linden/libraries/powerpc- darwin/lib_release cp -p fmodapi375mac/api/lib/libfmodx86.a linden/libraries/i386- darwin/lib_debug/libfmod.a cp -p fmodapi375mac/api/lib/libfmodx86.a linden/libraries/i386- darwin/lib_release/libfmod.a

# make the universal library folders
mkdir -p linden/libraries/universal-darwin/lib_debug/
mkdir -p linden/libraries/universal-darwin/lib_release
# create the fat binary libraries
lipo -create fmodapi375mac/api/lib/libfmod.a fmodapi375mac/api/lib/ libfmodx86.a -output linden/libraries/universal-darwin/lib_release/ libfmod.a cp -p linden/libraries/universal-darwin/lib_release/libfmod.a linden/ libraries/universal-darwin/lib_debug/libfmod.a




Thank you to everyone who helped!

Cheers!

-Atashi



On 23-Jan-2009, at 14.17.12, Aimee Trescothick wrote:


On 23 Jan 2009, at 00:57, Atashi Toshihiko wrote:

I have searched through the XCode project and can't find any reference to libfmod and I've searched through my build directory tree (/Users/atashi/Documents/SL_Source/linden) and the only references to libfmod are the ones that were copied over from the fmod download as per the instructions on the wiki page, but none of those are .dylib they are all .a files.

Ah, just thought, this sounds like ... 
https://lists.secondlife.com/pipermail/sldev/2008-July/011066.html

Looks like it never into the wiki build instructions, oops. You need to turn the libs into a fat binary on the Mac rather than just copying them.

Something like this should do it ...

lipo -create fmodapi375mac/api/lib/libfmod.a fmodapi375mac/api/lib/ libfmodx86.a -output linden/libraries/universal-darwin/lib_release/ libfmod.a

cp -p linden/libraries/universal-darwin/lib_release/libfmod.a linden/ libraries/universal-darwin/lib_debug/libfmod.a


Aimee.

_______________________________________________
Policies and (un)subscribe information available here:
http://wiki.secondlife.com/wiki/SLDev
Please read the policies before posting to keep unmoderated posting privileges

Reply via email to