... | ... | @@ -4,7 +4,7 @@ This page contains more detailed instructions to compile a full-featured version |
|
|
|
|
|
## OpenCASCADE
|
|
|
|
|
|
OpenCASCADE is a free CAD kernel that Gmsh uses extensively for constructive solid geometry and for importing STEP files.
|
|
|
OpenCASCADE is a free CAD kernel that Gmsh uses extensively for constructive solid geometry and for importing STEP files. You don't need OpenCASCADE to build geometrical models with Gmsh's built-in (`geo`) kernel, but you'll need it to import `STEP` and `IGES` files.
|
|
|
|
|
|
On most Linux distributions you can just install the `occt` development package(s), e.g. `libocct-foundation-dev`, `libocct-data-exchange-dev`, etc.
|
|
|
|
... | ... | @@ -44,7 +44,7 @@ sudo make install |
|
|
|
|
|
## FLTK
|
|
|
|
|
|
Gmsh's graphical user interface uses the FLTK widget toolkit.
|
|
|
Gmsh's graphical user interface uses the FLTK widget toolkit. You only need FLTK if you plan to use Gmsh's graphical (interactive) features.
|
|
|
|
|
|
On most Linux distributions you can just install the `fltk` development package(s), e.g. `libfltk1.3-dev`.
|
|
|
|
... | ... | @@ -63,25 +63,6 @@ sudo make install |
|
|
# * if you don't have root access, remove "sudo"
|
|
|
```
|
|
|
|
|
|
## PETSc
|
|
|
|
|
|
Some Gmsh algorithms (relying on cross-fields or reparametrization) benefit from fast sparse linear solvers. Gmsh can use PETSc for this. To compile a sequential real arithmetic PETSc library (here for PETSc 3.7.4):
|
|
|
|
|
|
```bash
|
|
|
curl -O http://ftp.mcs.anl.gov/pub/petsc/release-snapshots/petsc-3.7.4.tar.gz
|
|
|
tar zxvf petsc-3.7.4.tar.gz
|
|
|
cd petsc-3.7.4
|
|
|
export PETSC_DIR=$PWD
|
|
|
export PETSC_ARCH=real_mumps_seq
|
|
|
./configure --with-clanguage=cxx --with-debugging=0 --with-mpi=0 --with-mpiuni-fortran-binding=0 --download-mumps=yes --with-mumps-serial --with-shared-libraries=0 --with-x=0 --with-ssl=0 --with-scalar-type=real
|
|
|
# Notes:
|
|
|
# * if your compilers are not found, specify them explicitly: e.g. --FC=/path/to/f90 for the fortran compiler
|
|
|
# * if the BLAS/LAPACK libraries are not installed in standard locations, you will have to specify their location by hand with options --with-blas-lib=/path/to/libblas and --with-lapack-lib=/path/to/liblapack
|
|
|
# * as a last recourse (but this will severely degrade performance), you can use generic non-optimized BLAS/LAPACK libraries by using the option --download-fblaslapack=1
|
|
|
make
|
|
|
cd ..
|
|
|
```
|
|
|
|
|
|
## Gmsh
|
|
|
|
|
|
You can then compile Gmsh as follows:
|
... | ... | |