Linux (generic)

This section provides setup instructions for generic Linux distributions.

Note

The installation of compilers and general development tools is outside the scope of this tutorial. It is assumed that a working C++ compiler and a Make-based build system are already available.

MARTe2 has been successfully deployed on both Red Hat–based and Debian-based distributions (e.g. Ubuntu).

Dependencies

Some DataSources and components require additional external dependencies, such as:

Installation of these dependencies is not covered here. Please refer to their respective documentation.

Some training exercises may also require:

Core

Clone and build the MARTe2 core:

git clone https://vcis-gitlab.f4e.europa.eu/aneto/MARTe2.git
cd MARTe2
export MARTe2_DIR=$(pwd)
export TARGET=x86-linux
make -f Makefile.gcc core

Components

Clone and build the MARTe2 components:

git clone https://vcis-gitlab.f4e.europa.eu/aneto/MARTe2-components.git
cd MARTe2-components
export MARTe2_Components_DIR=$(pwd)
export TARGET=x86-linux
make -f Makefile.gcc core

Note

It is recommended to add the environment variables MARTe2_DIR, MARTe2_Components_DIR, and TARGET to your shell profile (e.g. ~/.bashrc).

Training material

Install the training material:

export MARTE_TRAINING_PARENT_DIR=$HOME  # Adjust if needed
cd $MARTe2_DIR/Docs/User/source/_static/tutorial
./InstallTraining.sh

Verification

Verify that the training material has been correctly installed:

ls $MARTE_TRAINING_PARENT_DIR/MARTe2-training-proj/

The output should include:

  • Startup

  • Configurations

  • Documentation

  • Resources

  • Source

  • Test

  • Tools