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.
**Get the code**
```bash
sudo apt install git git-lfs
git clone git@gitlab.uliege.be:am-dept/amfe.git # ssh only for developers
```
**Required packages** **Required packages**
```bash ```bash
# Common # Common
sudo apt update sudo apt update
sudo apt install git git-lfs
sudo apt install build-essential cmake sudo apt install build-essential cmake
sudo apt-get install swig sudo apt-get install swig
sudo apt-get install libeigen3-dev sudo apt-get install libeigen3-dev
...@@ -43,17 +38,23 @@ sudo apt install python3-vtk9 ...@@ -43,17 +38,23 @@ sudo apt install python3-vtk9
python3 -m pip install vtk python3 -m pip install vtk
``` ```
**Compilation** **Get the code**
```bash
# Either SSH for developers
git clone git@gitlab.uliege.be:am-dept/amfe.git
# Or HTTPS
git clone https://gitlab.uliege.be/am-dept/amfe.git
```
**Build and install**
```bash ```bash
# Either CMake for developers
mkdir build && cd build mkdir build && cd build
cmake .. cmake [-Dopt=val] ..
make [-j4] make [-j4]
[make dox] # to build the documentation [make dox] # to build the documentation
ctest [-E exclude_pattern] [-R include_pattern] [-j4] ctest [-E exclude_pattern] [-R include_pattern] [-j4]
# Or pip for users
python3 -m pip install . [-Ccmake.define.opt=val] [--user]
``` ```
For a complete list of options, refer to the [build](Build) page. For a complete list of options, refer to the [build](Build) page.
\ No newline at end of file
**Install**
```bash
python3 -m pip install . [--user]
```
\ No newline at end of file