Skip to content

Latest commit

 

History

History
112 lines (77 loc) · 2.36 KB

1-Development-requirements.md

File metadata and controls

112 lines (77 loc) · 2.36 KB

Development requirements

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

=== "Windows"

Compilation is tested on MSVC 2019

=== "Centos"

By default, GCC version of Centos7 is 4.8.5.

Some external repositories must be enabled

=== "Centos 7 (EPEL)"

sudo yum install epel-release
sudo yum install centos-release-scl

=== "Centos 8 (PowerTools)"

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

=== "Ubuntu/Debian"

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 3.x must be used.

=== "Windows"

You can download latest Windows version directly from [CMake website](https://cmake.org/download/).

=== "Centos"

```
sudo yum install epel-release
sudo yum install cmake3
```

=== "Ubuntu/Debian"

```
sudo apt install cmake
```

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

=== "Windows"

You can download latest Windows version directly from [Python website](https://www.python.org/downloads/windows/).

=== "Centos"

```
sudo yum install python3 python3-pip
```

=== "Ubuntu/Debian"

```
sudo apt install python3 python3-pip
```

Required python modules can be installed with :

pip install -r requirements-tests.txt

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 google/or-tools#1193).

=== "Windows"

You can download latest Windows version directly from [Git website](https://gitforwindows.org/).

=== "Centos"

```
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
```

=== "Ubuntu/Debian"

```
sudo apt install git
```