- A C++ compiler
- CMake
- mrpt
- Python CLI (Windows download) with the modules:
- YAML (Windows download)
In Ubuntu, run:
sudo apt-get install build-essential cmake python python-yaml libmrpt-dev
In Windows:
- Remember to add Git, CMake and Python to the system PATH env var.
Create an empty directory for OpenMORA packages:
mkdir openmora && cd openmora
Get a copy of the mora-base
pkg (note the --recursive
, required to init the external submodules):
git clone --recursive https://github.com/OpenMORA/mora-base.git
Now we must set up the working environment.
In Linux, add this line to ~./bashrc
source [path to mora-base]/scripts/mora-setup.sh
In Windows, set these environment vars:
MORA_PATH
: List of directories containing OpenMORA pkgs. Separator is ";" in Windows, ":" in unices. Must point to the parent directory of MORA pkgs, such that$MORA_PATH/mora-base/
exists.MORA_CMAKE_GENERATOR
: Must be set in Windows to the desired CMake generator, e.g. "Visual Studio 10 Win64"- Manually add
[MORA-BASE_PATH]/scripts/
to thePATH
env var. MORA_EXECUTABLE_OUTPUT
: (Optional) If defined, will override CMake's defaultEXECUTABLE_OUTPUT_PATH
. Can be used to put all executables into one single directory.
Then, do source ~./bashrc
or open a new terminal to make sure that the new variables have been loaded, and you are ready to compile the first OpenMORA package:
mora-build mora-base
Note that the following commands work on both Windows and Linux.
To download all publicly listed pkgs, simply run:
mora-pull --all
Build by calling CMake for each directory, or do it automatically with:
mora-build # Builds pkg at current dir
mora-build ual*-pkg # Builds specific pkgs
Move into the directory of some module with mora-cd
mora-cd mora-base