Update Build authored by Boman Romain's avatar Boman Romain
## PC/windows/mingw
This page explains how to build the code. You must have checked that [git](Git), [a C++ compiler](MinGW) and [cmake](CMake) are correctly installed on your system.
## Windows
* Clone the repository somewhere on your PC using "git bash"
```
git clone git@gitlab.uliege.be:R.Boman/gmsh-api.git
......@@ -26,29 +28,11 @@ mingw32-make -j 4
* run a program
```
gmsh -2 ..\sandbox\mymesh.geo
.\bin\myedges.exe ..\sandbox\mymesh.msh
bin\myedges.exe ..\sandbox\mymesh.msh
```
## CECI clusters / linux
### configuration
If you want to build the examples on NIC4, you must load several modules related to gcc, cmake, git.
```
module load gcc git cmake
```
The following variables should also be defined so that CMake finds the correct g++.
```
export CXX=g++
```
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 codes
* clone the repository
```
git clone git@gitlab.uliege.be:R.Boman/gmsh-api.git
......@@ -79,5 +63,7 @@ cmake ..
make -j 4
```
* run a program
```
gmsh -2 ../sandbox/mymesh.geo
./bin/myedges.exe ../sandbox/mymesh.msh
```
\ No newline at end of file