update build instructions authored by Boman Romain's avatar Boman Romain
...@@ -18,7 +18,7 @@ cd build ...@@ -18,7 +18,7 @@ cd build
``` ```
cmake -G "MinGW Makefiles" .. cmake -G "MinGW Makefiles" ..
``` ```
* start the compilation * start the compilation (with 4 cores)
``` ```
mingw32-make -j 4 mingw32-make -j 4
``` ```
...@@ -27,15 +27,52 @@ mingw32-make -j 4 ...@@ -27,15 +27,52 @@ mingw32-make -j 4
myedges.exe myedges.exe
``` ```
## PC/Linux/gcc ## CECI clusters / linux
If you want to build the examples on NIC4, you must load a gcc module. I recommend the following one which is compatible with many other libraries of the system. ### configuration
If you want to build the examples on NIC4, you must load several modules related to gcc, cmake, git.
``` ```
module load gcc module load gcc git cmake
``` ```
The following variables should also be defined so that CMake finds the correct gcc. Put these lines in your `~/.bashrc` file: The following variables should also be defined so that CMake finds the correct g++.
``` ```
export CC=gcc
export CXX=g++ export CXX=g++
export FC=gfortran ```
These 2 commands can be added at the end of the `.bashrc` file which is in your hame directory.
### SSH keys
You must create SSH keys for all the git operations with GitLab. It is done as in the Windows case.
### Build the code
* clone the repository
```
git clone git@gitlab.uliege.be:R.Boman/gmsh-api.git
```
* go into the project folder
```
cd gmsh-api
```
* install gmsh-sdk using the script `get_gmsh.sh`
```
./get_gmsh.sh
```
* set the environment variables for cmake
```
source ./envs/linux-macos.sh
```
* create a build folder and go into it
```
mkdir build
cd build
```
* run cmake
```
cmake ..
```
* build the project (with 4 cores)
```
make -j 4
``` ```