Skip to content

Development requirements

C++ version

The compilation of antares-xpansion requires C++17 support.

Compilation is tested on MSVC 2019

By default, GCC version of Centos7 is 4.8.5.

Some external repositories must be enabled

sudo yum install epel-release
sudo yum install centos-release-scl
sudo yum install dnf-plugins-core
sudo yum config-manager --set-enabled PowerTools

You can then use a more recent version of GCC by enabling devtoolset-9 :

sudo yum install devtoolset-9

Before compiling antares-xpansion we must launch a new shell with scl tool :

scl enable devtoolset-9 bash

For building on Debian 12 or Ubuntu 23.04 the installation requires the following build and test dependencies:

    sudo apt install git unzip build-essentials

CMake version

CMake 3.x must be used.

You can download latest Windows version directly from CMake website.

sudo yum install epel-release
sudo yum install cmake3
sudo apt install cmake

Python version

Python 3.x is used for end-to-end test.

You can download latest Windows version directly from Python website.

sudo yum install python3 python3-pip
sudo apt install python3 python3-pip

Required python modules can be installed with :

pip install -r requirements-tests.txt

Git version

Git version must be above 2.15 for external dependencies build because --ignore-whitespace is not used by default and we have an issue with OR-Tools compilation of ZLib and application of patch on Windows (see https://github.com/google/or-tools/issues/1193).

You can download latest Windows version directly from Git website.

sudo yum install rh-git227-git
sudo yum install git

Sometimes we need a 2.x version of git. To enable git 2.27 :

source /opt/rh/rh-git227/enable

sudo apt install git