[sldev] Mac Build Instructions / Universal / FMOD

Sammy Frederix sammy.frederix at gmail.com
Mon Jul 21 20:17:51 PDT 2008


I've been using lipo to create a universal library:
$ cp -p fmodapi375mac/api/inc/*.h libraries/include
$ lipo -create fmodapi375mac/api/lib/libfmod.a fmodapi375mac/api/lib/ 
libfmodx86.a -output libraries/universal-darwin/lib_debug/libfmod.a
$ lipo -create fmodapi375mac/api/lib/libfmod.a fmodapi375mac/api/lib/ 
libfmodx86.a -output libraries/universal-darwin/lib_release/libfmod.a
$ touch -r fmodapi375mac/api/lib/libfmod.a libraries/universal-darwin/ 
lib_debug/libfmod.a
$ touch -r fmodapi375mac/api/lib/libfmod.a libraries/universal-darwin/ 
lib_release/libfmod.a

(Beware of line wrapping)

On 22/07/2008, at 12:16 PM, Aimee Walton wrote:

> OK, following the Mac build instructions to the letter there seems  
> to be one remaining problem. TThe build instructions say to install  
> the FMOD libraries with ...
>
> $ 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
>
> Cmake however doesn't detect the fmod library there as it's only  
> searching in linden/libraries/universal-darwin. This means it  
> disables fmod and builds without libfmodwrapper ... which  
> viewer_manifest.py then tries to copy ... and dies.
>
> Easiest solution seemed to be to create a fat library when doing the  
> copy, changing the above to ...
>
> cp -p ../fmodapi375mac/api/inc/*.h linden/libraries/include
>
> 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
>
> Should I put that on the Wiki or is there another preferred solution?
>
> Aimee.
>
> PS. Still seem to be those few files missing from llrender in the  
> featurettes-5 branch *Nudges Soft softly* :D blindly copying them  
> over from release "seems" to work though at the moment.
>
>
>
>
> _______________________________________________
> Policies and (un)subscribe information available here:
> http://wiki.secondlife.com/wiki/SLDev
> Please read the policies before posting to keep unmoderated posting  
> privileges



More information about the SLDev mailing list