... | ... | @@ -4,15 +4,34 @@ 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. 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):
|
|
|
OpenCASCADE is a free CAD kernel that Gmsh uses extensively for constructive solid geometry and for importing STEP files. First make sure that you have the Freetype libraries installed on your system (OpenCASCADE depends on it); if not, download and install them:
|
|
|
```
|
|
|
curl -O http://download.savannah.gnu.org/releases/freetype/freetype-2.8.tar.gz
|
|
|
tar zxvf freetype-2.8.tar.gz
|
|
|
cd freetype-2.8
|
|
|
# Notes:
|
|
|
# * if you don't have root access, add --prefix==path-to-install
|
|
|
./configure
|
|
|
make
|
|
|
# Notes:
|
|
|
# * if you don't have root access, remove "sudo"
|
|
|
sudo make install
|
|
|
```
|
|
|
|
|
|
To compile OpenCASCADE, download and uncompress the sources from [the official site](https://www.opencascade.com/content/latest-release), then (here for occt 7.2.0):
|
|
|
|
|
|
```bash
|
|
|
cd opencascade-7.1.0
|
|
|
curl -L -o occt.tgz "http://git.dev.opencascade.org/gitweb/?p=occt.git;a=snapshot;h=refs/tags/V7_2_0;sf=tgz"
|
|
|
tar zxvf occt.tgz
|
|
|
cd occt-V7_2_0
|
|
|
mkdir build
|
|
|
cd build
|
|
|
cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_MODULE_Draw=0 -DBUILD_MODULE_Visualization=0 -DBUILD_MODULE_ApplicationFramework=0 ..
|
|
|
# Notes:
|
|
|
# * if you don't have root access, add -DCMAKE_INSTALL_PREFIX=path-to-install
|
|
|
cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_MODULE_Draw=0 -DBUILD_MODULE_Visualization=0 -DBUILD_MODULE_ApplicationFramework=0 ..
|
|
|
make
|
|
|
# Notes:
|
|
|
# * if you don't have root access, remove "sudo"
|
|
|
sudo make install
|
|
|
```
|
|
|
|
... | ... | @@ -23,7 +42,13 @@ Gmsh's default graphical user interface uses the FLTK widget toolkit. To compile |
|
|
```bash
|
|
|
svn co http://seriss.com/public/fltk/fltk/branches/branch-1.3/ fltk-1.3
|
|
|
cd fltk-1.3
|
|
|
make install
|
|
|
# Notes:
|
|
|
# * if you don't have root access, add --prefix==path-to-install
|
|
|
./configure
|
|
|
make
|
|
|
# Notes:
|
|
|
# * if you don't have root access, remove "sudo"
|
|
|
sudo make install
|
|
|
```
|
|
|
|
|
|
## Gmsh
|
... | ... | @@ -35,9 +60,10 @@ git clone http://gitlab.onelab.info/gmsh/gmsh.git |
|
|
cd gmsh
|
|
|
mkdir build
|
|
|
cd build
|
|
|
cmake ..
|
|
|
# Notes:
|
|
|
# * if you installed dependencies (e.g. OpenCASCADE) in non-standard locations, add the option -DCMAKE_PREFIX_PATH=path-of-installed-dependencies
|
|
|
# * to build a distributed memory (MPI) capable version add the option -DENABLE_MPI=1
|
|
|
# * for a list of all available configuration options see http://gmsh.info/doc/texinfo/gmsh.html#Compiling-the-source-code
|
|
|
cmake ..
|
|
|
make
|
|
|
``` |
|
|
\ No newline at end of file |