Skip to content

Latest commit

 

History

History
76 lines (52 loc) · 2.13 KB

tutorial-install.md

File metadata and controls

76 lines (52 loc) · 2.13 KB

Installing

1. Prerequisites

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.

2. Download and build mora-base

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 the PATH env var.
  • MORA_EXECUTABLE_OUTPUT: (Optional) If defined, will override CMake's default EXECUTABLE_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

3. Download & build the rest of pkgs

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