Update build_linux authored by Adrien Crovato's avatar Adrien Crovato
## Linux ## Linux
Note that these build instructions are using the GNU compilers but Intel's compiler can be used as well. Note that these build instructions are using the GNU compilers but Intel's compiler can be used as well.
**Required packages** **Required packages**
```bash ```bash
# Common # Common
sudo apt update sudo apt update
sudo apt install git sudo apt install git
sudo apt install build-essential cmake sudo apt install build-essential cmake
sudo apt install swig sudo apt install swig
sudo apt install libeigen3-dev sudo apt install libeigen3-dev
sudo apt install gmsh # Python 3
# Python 3 sudo apt install python3-dev
sudo apt install python3-dev python3-numpy python3-scipy python3 -m pip install numpy scipy matplotlib voluptuous
``` # Gmsh
**Optional packages** python3 -m pip install gmsh
```bash ```
# CoDiPack **Optional packages**
git clone https://github.com/SciCompKL/CoDiPack.git ```bash
export INCLUDE=${INCLUDE}:/path/to/codipack/include # CoDiPack
# VTK git clone https://github.com/SciCompKL/CoDiPack.git
sudo apt install python3-vtk9 export INCLUDE=${INCLUDE}:/path/to/codipack/include
# Documentation # VTK
sudo apt install doxygen sudo apt install python3-vtk9
sudo apt install graphviz python3 -m pip install vtk
``` # Documentation
**Build** sudo apt install doxygen graphviz
```bash ```
# Get the code **Build**
git lfs install # enable large file support ```bash
git clone git@gitlab.uliege.be:am-dept/sdpm.git # ssh only # Get the code
cd sdpm git lfs install # enable large file support
# Build git clone git@gitlab.uliege.be:am-dept/sdpm.git # ssh only for developers
mkdir build && cd build cd sdpm
cmake .. # Build
make [-j4] mkdir build && cd build
[make install] # to install cmake ..
[make dox] # to build the documentation make [-j4]
# Test [make dox] # to build the documentation
ctest [-E exclude_pattern] [-R include_pattern] [-j4] # Test
``` ctest [-E exclude_pattern] [-R include_pattern] [-j4]
For a complete list of options, refer to the [build](Build) page. # Install
python3 -m pip install . [--user]
**Example** ```
From the SDPM root directory, For a complete list of options, refer to the [build](Build) page.
```bash
python run.py sdpm/tests/lann.py **Example**
From the SDPM root directory,
```bash
python run.py sdpm/tests/lann.py [-v] [--nogui]
```
From anywhere, if the Python package has been installed,
```bash
sdpm-run your_example.py [-v] [--nogui]
``` ```
\ No newline at end of file