* MacOS: look [here](http://www.robotran.be/tutorial/install/MacOS/MBsysC.html) to install GSL and LibXML2
Then you can compile.
* Go to the path: `....../mbsysC/MBsysC`
* Make a build directory: `mkdir build`
* Go to the build directory: `cd build`
* Configure the project: `cmake ..`
* Adapt the options so as to compile the MBS-DEM and the python interfaces
* Open cmake-gui
* Check the following options:
* FLAG_ADDON_MBSLMGC (to compile the MBS-DEM coupling)
* FLAG_INTERFACE_PYTHON (to compile the python interface to MBsysC modules)
* FLAG_IPY_WITH_MBS_LMGC (to compile the python interface to the MBS-DEM coupling)
***Warning for MacOS user**, you have to force to use the same compiler
as LMGC90, i.e. gcc:
* With cmake-gui: check *avdanced* and set the option CMAKE_C_COMPILER to gcc
* Alternatively, in the command line: `cmake . -DCMAKE_C_COMPILER=gcc`
* Compile MBsysC: `make`
## Compiling LMGC90 by linking to Robotran/MBsysC
* Go to the build folder of LMGC90
* Open cmake-gui and set the following options:
* set EXT_MBS_VERSION to *Robotran*
* set EXT_MBS_FILE with the path `....../mbsysC/MBsysC/build/mbs_add_on/mbs_lmgc/Robotran_Lmgc90.cfg`
* Alternatively, in the command line: `cmake . -DEXT_MBS_VERSION=Robotran -DEXT_MBS_FILE=....../mbsysC/MBsysC/build/mbs_add_on/mbs_lmgc/Robotran_Lmgc90.cfg`
* re-Compile LMGC90: `make`
## Compiling a Robotran project: the MultiplePendulum example
The MultiplePendulum example comes with the MBsysC distribution and is
stroed in the ExampleProjects folder
* Go to the *workR* folder of the MultiplePendulum project