Development requirements¶
C++ version¶
The compilation of Antares-Xpansion requires C++17 support in order to use execution policy.
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-10
:
sudo yum install devtoolset-10
Before compiling Antares-Xpansion, we must launch a new shell with scl
tool :
scl enable devtoolset-10 bash
sudo apt install build-essential
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 must be used.
You can download latest Windows version directly from Python website.
sudo yum install python3 python3-pip
sudo apt-get 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 to git 2.27:
source /opt/rh/rh-git227/enable
sudo apt-get install git