iDevGames Forums
Installing and using SDL in Mac OS X - Printable Version

+- iDevGames Forums (http://www.idevgames.com/forums)
+-- Forum: Development Zone (/forum-3.html)
+--- Forum: Game Programming Fundamentals (/forum-7.html)
+--- Thread: Installing and using SDL in Mac OS X (/thread-1053.html)



Installing and using SDL in Mac OS X - filfil96 - Jul 6, 2009 04:04 AM

Hello everyone filfil96 here, I started searching for tutorials on developing games for the Mac OS X a couple of months ago and I found a couple of good ones (oh well I guess you can't trust the Internet Annoyed) but anyway I've got some very simple questions here that I would like answered please:

-Does Xcode include SDL?
-If it does, then how do include it? is it just like including OpenGL?
-If it doesn't include SDL then where can I install it?
-Where are any good SDL tutorials ?(My googling power is 0 to none Sad)
-Would you recommend SDL?

Thanks guys! I hope I'm not being too much of a burden Rasp

filfil96


Installing and using SDL in Mac OS X - TythosEternal - Jul 6, 2009 10:31 AM

filfil96 Wrote:-Does Xcode include SDL?
-If it does, then how do include it? is it just like including OpenGL?
-If it doesn't include SDL then where can I install it?
-Where are any good SDL tutorials ?(My googling power is 0 to none Sad)

No, SDL is not included in xCode. SDL must be included and linked as a separate Framework for xCode projects. You may also use the SDL templates to create a project that already has SDL enabled. To learn more, see one of the following pages:

Step-By-Step instructions: http://www.meandmark.com/sdlopenglpart2.html
SDL libraries: http://www.libsdl.org/download-1.2.php (development libraries -> MacOSX)
Two alternative ways: http://guides.macrumors.com/Installing_SDL
Explanation of Frameworks: http://developer.apple.com/DOCUMENTATION/MacOSX/Conceptual/BPFrameworks/Frameworks.html

filfil96 Wrote:-Would you recommend SDL?
Yes, I would. I find SDL to be an excellent way to develop multi-media, cross-platform applications. You may want to pick up OpenGL though, if you haven't already, since you still may need to do shiny graphics things.


Installing and using SDL in Mac OS X - filfil96 - Jul 7, 2009 03:41 AM

Thanks alot guys! But now I can't find the "/Library/Application Support/Developer/Shared/Xcode/Project Templates/Application" folder. This is what the document says specifically
"We have provided 4 different kinds of SDL templates for Xcode.
The installion directory depends on which version of Xcode you have.

For Leopard (Xcode 2.5, 3.0), we recommend you install to:
/Library/Application Support/Developer/Shared/Xcode/Project Templates/Application

For Xcode 1.0 to 2.4,
/Library/Application Support/Apple/Developer Tools/Project Templates/Appllcation

For Project Builder,
/Developer/ProjectBuilder Extras


Also note you may place it in per-user locations, e.g.

~/Library/Application Support/Developer/Shared/Xcode/Project Templates/Application

" But i can't find any of the above folders Annoyed, any help please?


Installing and using SDL in Mac OS X - Oddity007 - Jul 7, 2009 04:42 AM

Its not put there for you, you have to add it. Or, at least, I did. Smile


Installing and using SDL in Mac OS X - filfil96 - Jul 7, 2009 06:26 PM

Ok I have posted the wrong question, please excuse me. What I meant was:

-Where is the folder that Xcode goes to when you choose File -> New Project ?

From what I've read from the SDL developer package manual I need: to find that specific folder and copy and paste the above documents to it.


Installing and using SDL in Mac OS X - TythosEternal - Jul 7, 2009 09:10 PM

Same answer: create the appropriate directory, since it won't exist if you haven't added project templates before. I'd recommend the universal directory:

/Library/Application Support/Developer/Shared/Xcode/Project Templates/Application

I suspect that every directory up to "Developer" will already exist.