Getting Started (Linux)

  1. Make sure you have gcc 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 / console.
  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, which you can launch with:
    1. ./Bayts

Note: CMake is capable of generating projects for KDevelop 3, like this:

  1. ccmake ../src -G KDevelop3
I’ve never used this functionality, so I don’t know how well it works. I do know that for both the Apple XCode and Microsoft Visual Studio generators, CMake doesn’t correctly set up dependencies for sub-projects. This may well be the case for KDevelop, too, so you may need to open up each of the sub-projects and build them individually before building the main project. In the case of Bayts, that’s TMV, ANN, and freeglut.