Using SDL 1.3 and SDL 1.2 on the same macOS X machine

I’m thinking about porting one of our applications to Mac, but it will
need multi-monitor fullscreen blitting support, which SDL 1.2 doesn’t
support. Version 1.3 apparently does support this (please correct me
if i’m wrong !), but i’m not really sure if it is possible to have
BOTH the 1.2 and 1.3 frameworks installed in /Library/Frameworks

will this ruin my previous projects, which depend on 1.2 ?

Or should I upgrade ALL my projects to 1.3 ? How compatible are these
two frameworks ?

as a sidenote : the Mac downloads page for 1.2 has a nice dmg for the
Mac runtime. For 1.3, I haven’t found such a runtime installer. Is it
available, or will I have to compile this myself (I’ve never built the
SDL framework myself. Is this a though job ?)

thanks !

Jeroen

I’m thinking about porting one of our applications to Mac, but it will need
multi-monitor fullscreen blitting support, which SDL 1.2 doesn’t support.
Version 1.3 apparently does support this (please correct me if i’m wrong !),
but i’m not really sure if it is possible to have BOTH the 1.2 and 1.3
frameworks installed in /Library/Frameworks

You don’t need to keep it in /Library/Frameworks, if you use XCode add the
framework to your project (where it is on the disk is not important) and
then add a copy step to include the framework inside the app bundle.

If you are not using XCode use -F in the link stage to specify the
correct path where to look for your framework and -I to point to the
correct headers in your compile flags.

That said I don’t know if SDL 1.3 on OSX already support multi-monitor
setups :)On Tue, Jul 15, 2008 at 10:40 AM, Jeroen Clarysse < jeroen.clarysse at telenet.be> wrote:


Bye,
Gabry

That said I don’t know if SDL 1.3 on OSX already support multi-
monitor setups :slight_smile:

hm, that changes everything of course !

can anyone on the list confirm/deny this ?

I think some of the new SDL 1.3 headers have the same names as the old ones, so
you’ll have to either overwrite them ( then your SDL 1.2 will be overwritten )
or put them in a different folder, you could for example make your map
structure like this:

include/SDL/1.2/
Here you put your SDL 1.2 headers.

include/SDL/1.3/
And here you can put the new SDL 1.3 headers.

In your projects, you could use (C++)
#include <SDL/1.3/SDL.h>
to use 1.3 and change 1.3 to 1.2 to use the other ones, this might not be what
you’re looking for, but it should work.