Getting the MereIdea Projects

Code has begun to be added to the Main repository of the MereIdea projects. Details of the contents of this code can be found on the MereIdea Website. This page just details how to get the MereIdea projects and build them.

The projects use CMake to build, and require Subversion to get the code (tar/zip release versions may be available at some point, but for now you need the repository code). To get the code simply type:

svn co http://www.mereidea.com/svn/main/trunk src

This will check the code out into a directory named src inside your current directory. If you are using TortoiseSVN on Windows instead of a command line client, the just right click on the directory you want to check the code out into and select SVN Checkout from the menu. Then enter the details similar to:

Checking out the code in TortoiseSVN

If you use some other SVN client, you should be able to work out how to check the code out with it from the above examples!

Once the code is checked out, create a directory named build alongside src. Inside this you can place release, debug and optimised directories if you wish to build different versions of the code. Then simply change to the appropriate directory and type:

> cmake ../src

if you are on a Linux machine and only in the build directory, or:

> cmake ../../src

if you are on Linux and in a release or other subdirectory. This will create the necessary makefiles so that you can simply type:

> make

to make the code. On Linux you can also get a basic CMake UI by typing ccmake instead of cmake. This UI enables you to change some of the variables set up by CMake or by the MereIdea code.

On Windows, if you want to build the code on the command line using NMake, then you should open a command prompt, ensure you can run NMake in it (running a Visual Studio Command Prompt is the best way, or running vcvars32.bat manually is another), change to the build directory and type:

> cmake -G "NMake Makefiles" ..\src
> nmake

To use Visual Studio solutions and projects, it’s best to use the CMake UI that comes with the Windows CMake installer. Then you can load the project files into the Visual Studio IDE, and build and debug as you would normally.

Any problems with getting started with this code, please let us know.