[[toc]] ---- ===Install CMake=== * Install the binary CMake distribution from http://www.cmake.org/HTML/Download.html ---- ===Install library dependencies=== * SDL-1.2.13.dmg under Runtime Libraries at http://www.libsdl.org/download-1.2.php * SDL_ttf-2.0.9.dmg from http://www.libsdl.org/projects/SDL_ttf/ (for font rendering) These downloads will give you SDL.framework and SDL_ttf.framework. Copy them to the appropriate framework directory, for example, /Library/Frameworks I have found SDL_ttf won't work unless you have Apple Developer Tools version 2.4.1 or greater. ---- ===Install Fortran compiler=== There are many ways to get a Fortran compiler if you don't already have one. Here is one way: * Download gfortran-intel-bin.tar.gz from http://hpc.sourceforge.net/ * Make sure to get the right one. There is one for Tiger and one for Leopard. * You must have Apple Developer Tools version 2.4.1 or greater. Extract to /usr/local: [[code]] gunzip gfortran-intel-bin.tar.gz sudo tar -xvf gfortran-intel-bin.tar -C /. [[code]] Open a new terminal and test that gfortran can be found: [[code]] gfortran --version [[code]] ---- ===Configure and compile DVC=== Command line instructions: [[code]] svn co https://dvc.svn.sourceforge.net/svnroot/dvc dvc cd dvc/trunk mkdir build cd build ccmake ../ [[code]] ccmake will launch a curses style interface. Press 'c' to configure. Configuration is an iterative process, as new variables appear you must confirm them and hit 'c' again. Confirm that the BUILD_SICONOS option appears and is enabled. You may need to add libstdc++ to SICONOS_EXTRA_LIBS. On my mac, I have /usr/lib/libstdc++.6.dylib, so I set SICONOS_EXTRA_LIBS to "stdc++.6" Ignore the error that warns PATH library is not found so PATH CP Solver is not built. When all variables have been confirmed, the generate option will appear. Press 'G' to generate make files. Then build dvc: [[code]] make [[code]] Try executing example 1 first: [[code]] bin/example1 [[code]] The main graphical interface is example 3: [[code]] bin/example3 [[code]]