Getting Started (Mac OS X)
- Make sure you have Xcode Development Tools installed.
- Make sure you have CMake installed.
- Make sure you have SVN installed.
- Make sure you have Boost installed.
- Launch a terminal. I prefer iTerm, but you can also just use Terminal.app, which comes with OS X. It’s in /Applications/Utilities.
- Get the source code, as described in the post that brought you to this page. Here’s an example for the initial version of Bayts:
Bash
svn checkout http://programmicon.googlecode.com/svn/tags/IntroducingBayts-0.01 programmicon
- Create a build directory, and change into it. Continuing with the Bayts example:
Bash
- cd programmicon/Bayts
- mkdir build
- cd build
- Configure the project with CMake:
Bash
- ccmake ../src
- Hit ‘c’, wait a bit, then hit ‘c’ again, followed by ‘g’.
- And build the project:
Bash
- make
- Bayts isn’t too big, but one of its dependencies can take a little while to build, so, in the tradition of tutorials like this: Go get a cup of coffee.
- When the build is done, you’ll have a new application called Bayts.app, which you can launch from the Finder, or with:
Bash
- open Bayts.app
Note: CMake is capable of generating Xcode projects instead of makefile projects:
Bash
- ccmake ../src -G Xcode