Setting up sdl on Mac OS X 10.3 panther

Hi, Im currently developing an elite stylge game using sdl. Most of the
development so far has been done on linux. However, I recnelty became a convert
to the land of apple thanks to my nice shiny new powerbook. Ive got the devtools
installed fine, however, how do I install sdl dev files on mac osx, and more
importantly, how do I use them when they are installed. I apologise to anyone if
this sounds like a daft question. But either I having a sever brain fart here,
or there more to it than there was under linux.

Thanks in advance for any help.-------------------------------------------------
Everyone should have http://www.freedom2surf.net/

msimpson at f2s.com wrote:

Hi, Im currently developing an elite stylge game using sdl. Most of the
development so far has been done on linux. However, I recnelty became a convert
to the land of apple thanks to my nice shiny new powerbook. Ive got the devtools
installed fine, however, how do I install sdl dev files on mac osx, and more
importantly, how do I use them when they are installed. I apologise to anyone if
this sounds like a daft question. But either I having a sever brain fart here,
or there more to it than there was under linux.

Ok, first - think simple - it’s a Mac =)

Download the developer build for SDL (1.2.7 contains XCode templates)
and/or any other SDL addons like SDL_Image. Double click the package.
Follow the instructions.

Open XCode choose new project -> SDL project.
If you use any other frameworks right or ctrl-click on the "Frameworks"
folder (or any other) in your project tree and choose “Add existing
Framework”.
You can find Framworks at /Library/Framworks or ~/Library/Frameworks or
on very rare occasions under /System/Library/Frameworks. Choose the
folder you need an choose ok.

That should be it besides importing your projectfiles (and maybe setting
some pathes -> Apple + I on your project in your project tree).
One last thing :wink: - you DO need the SDL_Main files, as they are a cocoa
wrapper for your app.

Hope that helps.
There are afair some how-to’s in the developer package, too.

BR
Arne