user1163392
user1163392

Reputation: 167

Using SDL with Xcode 4.3

I've decided to learn c++ and try to make a game with SDL framework. The problem is that I don't know how to use SDL together with Xcode 4.3, since I can't use it like a template, as seen in other guides. Would be great if someone could help me get SDL to work with Xcode 4.3.

EDIT: I try add SDL to Xcode project following http://meandmark.com/blog/2012/01/using-sdl-with-xcode-4/

When I try to compile I get this error:

enter image description here

Upvotes: 1

Views: 1750

Answers (2)

Michael Dorner
Michael Dorner

Reputation: 20195

It took a quite long time until I got SDL and Xcode running. So, don't care. :-)

I uploaded here a simple SDL template for Xcode 4.5 and Mac OS X 10.7 and 10.8 (also using OpenGL 3.2 Core Profile possible). Step by Step instructions:

  1. Download SDL (at the moment version 1.2.15)
  2. Open the downloaded .dmg file
  3. copy the SDL.framework into /Library/Frameworks/
  4. Done. You can use the Xcode template (you should see a red area): enter image description here

Further details and an image on my Blog (only german, sorry).

Upvotes: 0

Swift Dev Journal
Swift Dev Journal

Reputation: 20098

The following article should help you:

Using SDL with Xcode 4

Upvotes: 1

Related Questions