-
-
Notifications
You must be signed in to change notification settings - Fork 115
Developer Getting Started: OSX Xcode
- Git client (GitHub for Mac)
- CMake
- Xcode
-
SDL 1.2, SDL_mixer 1.2, SDL_image 1.2 (download and copy frameworks into
/Library/Frameworks
, see the READMEs for more details)
-
Click the "Clone in Desktop" button in the repo website.
-
You should now see the repo contents in
/Users/username/cdogs-sdl
-
Run CMake: for "Where is the source code:" and "Where to build the binaries:", input
/Users/username/cdogs-sdl
-
Click "Configure", using Xcode as the generator; click Done
-
Click "Generate"; you should now see an Xcode project in
/Users/username/cdogs-sdl
.
-
Open
/Users/username/cdogs-sdl/cdogs-sdl.xcodeproj
-
Set the
cdogs-sdl
project as the active scheme (32-bit or 64-bit as desired) -
Edit the
cdogs-sdl
scheme (Product > Scheme > Edit Scheme), and set the Working Directory to/Users/username/cdogs-sdl/src
-
Click the Run button to compile and run. You are ready to go!
If the project won't build because certain SDL library headers cannot be found (e.g. sdl_mixer.h or sdl_net.h), try copying them from the Headers folder into SDL's Headers folder. E.g. for sdl_mixer.h
, copy it from /Library/Frameworks/SDL_mixer.framework/Headers
to /Library/Frameworks/SDL.framework/Headers
.