... | @@ -6,7 +6,9 @@ This page contains more detailed instructions to compile a full-featured version |
... | @@ -6,7 +6,9 @@ This page contains more detailed instructions to compile a full-featured version |
|
|
|
|
|
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.
|
|
|
|
|
|
First make sure that you have the Freetype libraries installed on your system (OpenCASCADE depends on them). On a recent Ubutuntu/Debian system for example, use 'sudo apt install libfreetype6-dev'. If not available, download and install them (here for Freetype 2.8):
|
|
On most Linux distributions you can just install the `occt' development package(s), e.g. `libocct-foundation-dev`, `libocct-data-exchange-dev`, etc.
|
|
|
|
|
|
|
|
On other platforms, or if you just want to compile OpenCASCADE from source, first make sure that you have the Freetype libraries installed on your system (OpenCASCADE depends on them). If not available, download and install them (here for Freetype 2.8):
|
|
|
|
|
|
```bash
|
|
```bash
|
|
curl -O http://download.savannah.gnu.org/releases/freetype/freetype-2.8.tar.gz
|
|
curl -O http://download.savannah.gnu.org/releases/freetype/freetype-2.8.tar.gz
|
... | @@ -21,17 +23,17 @@ sudo make install |
... | @@ -21,17 +23,17 @@ sudo make install |
|
# * if you don't have root access, remove "sudo"
|
|
# * if you don't have root access, remove "sudo"
|
|
```
|
|
```
|
|
|
|
|
|
To compile OpenCASCADE (here for OCCT 7.2.0):
|
|
To compile OpenCASCADE (here for OCCT 7.3.0):
|
|
|
|
|
|
```bash
|
|
```bash
|
|
curl -L -o occt.tgz "http://git.dev.opencascade.org/gitweb/?p=occt.git;a=snapshot;h=refs/tags/V7_2_0;sf=tgz"
|
|
curl -L -o occt.tgz "http://git.dev.opencascade.org/gitweb/?p=occt.git;a=snapshot;h=refs/tags/V7_3_0;sf=tgz"
|
|
tar zxf occt.tgz
|
|
tar zxf occt.tgz
|
|
cd occt-V7_2_0
|
|
cd occt-V7_3_0
|
|
mkdir build
|
|
mkdir build
|
|
cd build
|
|
cd build
|
|
cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_MODULE_Draw=0 -DBUILD_MODULE_Visualization=0 -DBUILD_MODULE_ApplicationFramework=0 ..
|
|
cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_MODULE_Draw=0 -DBUILD_MODULE_Visualization=0 -DBUILD_MODULE_ApplicationFramework=0 ..
|
|
# Notes:
|
|
# Notes:
|
|
# * if you installed dependencies (e.g. Free type) in non-standard locations, add the option -DCMAKE_PREFIX_PATH=path-of-installed-dependencies
|
|
# * if you installed dependencies (e.g. Freetype) in non-standard locations, add the option -DCMAKE_PREFIX_PATH=path-of-installed-dependencies
|
|
# * if you don't have root access, add -DCMAKE_INSTALL_PREFIX=path-to-install
|
|
# * if you don't have root access, add -DCMAKE_INSTALL_PREFIX=path-to-install
|
|
make
|
|
make
|
|
sudo make install
|
|
sudo make install
|
... | | ... | |