Setting Up Xcode with SDL

Before i go into the actual setup stage i’ll talk a little about why i chose SDL, and what SDL really does. Firstly i Chose SDL because it works on pretty much every platform available, now its not critical to write portable code, but in general if you can achieve it without sacrificing anything there really is not reason not to.

SDL stands for “Simple Directmedia Layer”, its basically  a set of libraries that give you low level access to all of the hardware devices. For this project I will mainly use it for window context creation, and for keyboard and mouse management. SDL accesses the graphics card through OpenGL, meaning that you can create the window context with SDL, but use normal OpenGL.

Okay, down to brass tax

You will have to get the SDL Framework from the SDL site, http://www.libsdl.org/download-1.2.php

SDL-1.2.14.dmg contains everything you need.

SDL-devel-1.2.14-extras.dmg contains templates.

You want to open the SDL-1.2.14.dmg file and copy the SDL.framework file into /Library/Frameworks/ directory.

You want to then open the SDL-devel-1.2.14-extras.dmg and copy the relevant frameworks  to /Developer/Library/Xcode/Project Templates/Application

For me, they were in XcodeTemplates/TemplatesForXcodeSnowLeopard/ of the DMG file. one you have done that. SDL should be installed into xcode.

Till next time.

Something to Pass The Time!

Well since it seems that it is the “in” thing to do these day’s, I might as well follow the herd and start a development diary, blog, ongoing tutorial.. What ever you wanna call it.

Main goals of this blog,

  1. Produce a product from start to finish.
  2. Introduce some of the less known aspects of computer science.
  3. Introduction to the xcode IDE.
  4. Weekly updates.

Here is just a example of that the code will look like.

#include <stdio.h>
int main(void)
{
    printf("Hello, World!\n");
    return 0;
}

PS: I just want to add that i do have work, and am involved with another project, both of which will get precedence over this. In other words I’m going to do my best to maintain my mission goal of a weekly post, not no guarantees.

Follow

Get every new post delivered to your Inbox.