[ODE] OS X binary deployment

Hampus Soderstrom hampus at sxp.se
Thu Oct 19 19:09:50 MST 2006


Make a static universal binary lib and link against that.

Perhaps you know, but here is how to create a universal binary lib  
out of libode.

This is from my Makefile:

libode.a : libode_i386.a libode_ppc.a
         lipo -create $^ -output $@

The file should look like this when you are done.

hampa$ file libode.a
libode.a: Mach-O universal binary with 2 architectures
libode.a (for architecture i386):       current ar archive random  
libode.a (for architecture ppc):        current ar archive

Then when you build your application use -lode as usual.

For plattform independent compilation just put libode.a in different  
directories within your build enviroment and use -L to point to them.

Then compile with -L ../lib/osx, -L ../lib/linux etc.


On 20 Oct 2006, at 4:09 AM, mal content wrote:

> Hello.
> What is the recommended way to link against ODE on OS X, in a way
> that doesn't require the end-user to have the ODE library installed?
> To clarify, when I deploy a program that uses the SDL library, I just
> copy the pre-built framework that the SDL authors supply into
> Thing.app/Contents/Frameworks. I'm assuming it takes a little more
> work than this with ODE?
> I'm hoping to have my program deploy (without too much platform- 
> specific
> work) across Linux, BSD, Windows and OS X. The only dependencies
> are SDL, ODE and OpenGL.
> Any pointers would be appreciated.
> MC
> _______________________________________________
> ODE mailing list
> ODE at q12.org
> http://q12.org/mailman/listinfo/ode

More information about the ODE mailing list