Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • gmsh gmsh
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 396
    • Issues 396
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 6
    • Merge requests 6
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Artifacts
    • Schedules
  • Deployments
    • Deployments
    • Releases
  • Packages and registries
    • Packages and registries
    • Model experiments
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • gmshgmsh
  • gmshgmsh
  • Wiki
  • Gmsh compilation

Gmsh compilation · Changes

Page history
Update Gmsh compilation authored Oct 31, 2017 by Christophe Geuzaine's avatar Christophe Geuzaine
Hide whitespace changes
Inline Side-by-side
Gmsh-compilation.md
View page @ df05a50f
......@@ -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
Clone repository
  • First Gmsh Workshop
  • Git cheat sheet
  • Gmsh compilation
  • Second Gmsh Workshop
  • Third Gmsh Workshop
  • Home