Mac OS X binary deployment

Hello.

I am, in the not too distant future, going to be attempting to
distribute a program written in SDL, OpenGL and SDL_image. It is
fully open source but I want to be able to distribute binaries
that do not require the end user to have SDL/SDL_image installed.

The primary development platform is FreeBSD but I’m aiming to
also produce Mac OS X ‘bundles’.

What is the recommended (read: simplest) way to produce OS X
bundles with external libraries? Ideally what I would want to do
is basically compile SDL in statically and include SDL_image as a
shared object (OS X programs are linked to OpenGL ‘for free’).

I’ve been given a few hints that "MyApp.app/Contents/Frameworks"
is involved in some way but can’t find any useful source of
information that doesn’t assume you’re using Apple Xcode (I’m
not).

Bit out of my depth here, any help would be welcome.

Thanks,
M

What is the recommended (read: simplest) way to produce OS X
bundles with external libraries? Ideally what I would want to do
is basically compile SDL in statically and include SDL_image as a
shared object (OS X programs are linked to OpenGL ‘for free’).

I’ve been given a few hints that "MyApp.app/Contents/Frameworks"
is involved in some way but can’t find any useful source of
information that doesn’t assume you’re using Apple Xcode (I’m
not).

Don’t compile SDL statically into your app. Just copy the
SDL.framework and SDL_image.framework to MyApp.app/Contents/Frameworks
as you have read. This is totally independent from Xcode. You can do
this in Finder or through the command line.

-Eric

Hmm, I don’t seem to have SDL.framework or SDL_image.framework as
I installed SDL via fink (the ‘UNIX’ method).

Is compiling SDL in statically frowned upon? If so, why are static libraries
provided?

thanks,
MOn 12/27/05, E. Wing wrote:

What is the recommended (read: simplest) way to produce OS X
bundles with external libraries? Ideally what I would want to do
is basically compile SDL in statically and include SDL_image as a
shared object (OS X programs are linked to OpenGL ‘for free’).

I’ve been given a few hints that "MyApp.app/Contents/Frameworks"
is involved in some way but can’t find any useful source of
information that doesn’t assume you’re using Apple Xcode (I’m
not).

Don’t compile SDL statically into your app. Just copy the
SDL.framework and SDL_image.framework to MyApp.app/Contents/Frameworks
as you have read. This is totally independent from Xcode. You can do
this in Finder or through the command line.

-Eric

Hmm, I don’t seem to have SDL.framework or SDL_image.framework as
I installed SDL via fink (the ‘UNIX’ method).

You can download the frameworks from the SDL website.

Is compiling SDL in statically frowned upon? If so, why are static libraries
provided?

Static linking while possible is not usually encouraged when dynamic
linking is possible, for many reasons ranging from technical,
security, and legal.

-Eric

Hmm, I don’t seem to have SDL.framework or SDL_image.framework as
I installed SDL via fink (the ‘UNIX’ method).

You can download the frameworks from the SDL website.

Ah, yes. Got them.

Thanks!

Is compiling SDL in statically frowned upon? If so, why are static libraries
provided?

Static linking while possible is not usually encouraged when dynamic
linking is possible, for many reasons ranging from technical,
security, and legal.

-Eric

Oh, ok. I just wondered if there was something specific to SDL.

Thanks for your help, this should be enough to properly automate
the production of bundles now.

MOn 12/27/05, E. Wing wrote: