|
|
General build instructions are available in the top-level [README](http://gitlab.onelab.info/gmsh/gmsh/tree/master/README.txt). The CTest scripts used for the nightly builds and the official releases are also available [here](http://gitlab.onelab.info/gmsh/gmsh/tree/master/utils/nightly).
|
|
|
|
|
|
Below are additional instructions to compile some optional packages
|
|
|
This page contains more detailed instructions to compile a full-featured version of Gmsh, including the compilation of common dependencies: OpenCASCADE (https://www.opencascade.com/content/latest-release) and FLTK (http://www.fltk.org). In addition to CMake and C++ compiler, you should have (preferably optimized) versions of the BLAS and LAPACK libraries on your system (e.g. OpenBLAS, ATLAS or the MKL).
|
|
|
|
|
|
## OpenCASCADE
|
|
|
|
|
|
Download the sources from [the official site](https://www.opencascade.com/content/latest-release), then (here for occt 7.1.0):
|
|
|
```
|
|
|
tar zxvf opencascade-7.1.0.tgz
|
|
|
OpenCASCADE is a free CAD kernel that Gmsh uses extensively for constructive solid geometry and for importing STEP files. To compile OpenCASCADE, download and uncompress the sources from [the official site](https://www.opencascade.com/content/latest-release), then (here for occt 7.1.0):
|
|
|
|
|
|
```bash
|
|
|
cd opencascade-7.1.0
|
|
|
mkdir build
|
|
|
cd build
|
... | ... | @@ -16,7 +16,9 @@ make install |
|
|
|
|
|
## FLTK
|
|
|
|
|
|
```
|
|
|
Gmsh's default graphical user interface used the FLTK widget toolkit. To compile FLTK:
|
|
|
|
|
|
```bash
|
|
|
svn co http://seriss.com/public/fltk/fltk/branches/branch-1.3/ fltk-1.3
|
|
|
cd fltk-1.3
|
|
|
make install
|
... | ... | @@ -24,7 +26,9 @@ make install |
|
|
|
|
|
## Gmsh
|
|
|
|
|
|
```
|
|
|
You can then compile Gmsh as follows:
|
|
|
|
|
|
```bash
|
|
|
git clone http://gitlab.onelab.info/gmsh/gmsh.git
|
|
|
cd gmsh
|
|
|
mkdir build
|
... | ... | |