* Add the following environment variables to your windows session:
```
set GMSHSDK=C:\local\gmsh-sdk32
set PATH=%GMSHSDK%\bin;%PATH%
set INCLUDE=%GMSHSDK%\include;%INCLUDE%
set LIB=%GMSHSDK%\lib;%LIB%
set PYTHONPATH=%GMSHSDK%\lib;%PYTHONPATH%
```
In other words, you should add the `bin` folder of `gmsh-sdk32` to your `PATH` so that you can type `gmsh` in any terminal. The `bin` folder also contains the gmsh dynamic library, that must be found when `gmsh` (or your future solver) is run. The `INCLUDE` and `LIB` variables allows `CMake` to find the header `gmsh.h` and the library `gmsh.lib` respectively. Eventually, you may want to add the `lib` folder to your `PYTHONPATH` so that the command `import gmsh` works in python (it could be useful if you want to run python examples)
* Download the latest version of CMake from the [CMake website](https://cmake.org/download/) and install it (add `cmake` to your `PATH` when asked, so that you can type `cmake` from a terminal)
* Download [Code::Blocks](http://www.codeblocks.org/downloads). Choose the version with the mingw compiler included. Install it with the default options.
* Add the MinGW compiler to your `PATH`
* Clone this repository
* ...
## PC/Linux/gcc
gmsh SDK requires libgfortran.so.3 to be installed on the system. On Ubuntu, you can install gfortran with the following line (admin rights required)
```
sudo apt-get install libgfortran3
```
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.
```
module load gcc/4.9.2
```
The following variables should also be defined so that CMake finds the correct gcc. Put these lines in your `~/.bashrc` file: