Getting Started (Mac OS X)

  1. Make sure you have Xcode Development Tools installed.
  2. Make sure you have CMake installed.
  3. Make sure you have SVN installed.
  4. Make sure you have Boost installed.
  5. Launch a terminal. I prefer iTerm, but you can also just use Terminal.app, which comes with OS X. It’s in /Applications/Utilities.
  6. 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:
    svn checkout http://programmicon.googlecode.com/svn/tags/IntroducingBayts-0.01 programmicon
    
  7. Create a build directory, and change into it. Continuing with the Bayts example:
    1. cd programmicon/Bayts
    2. mkdir build
    3. cd build
  8. Configure the project with CMake:
    1. ccmake ../src
  9. Hit ‘c’, wait a bit, then hit ‘c’ again, followed by ‘g’.
  10. And build the project:
    1. make
  11. 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.
  12. When the build is done, you’ll have a new application called Bayts.app, which you can launch from the Finder, or with:
    1. open Bayts.app

Note: CMake is capable of generating Xcode projects instead of makefile projects:

  1. ccmake ../src -G Xcode
This is actually pretty handy, and I use the functionality quite a bit, but there is one caveat. As of this writing, CMake does not correctly add sub-project requirements and dependencies to a project. So, if you go this route, you’ll have to open each of the sub-projects and build them individually. For Bayts, that means you’ll need to build the TMV and ANN sub-projects.