Skip to content
Snippets Groups Projects
Select Git revision
  • d5edb2a0d55cb6a6da44a86b6d28a3e5fbd882cb
  • master default protected
  • alphashapes
  • quadMeshingTools
  • cygwin_conv_path
  • macos_arm64
  • add-transfiniteautomatic-to-geo
  • patch_releases_4_10
  • HierarchicalHDiv
  • isuruf-master-patch-63355
  • hyperbolic
  • hexdom
  • hxt_update
  • jf
  • 1618-pythonocc-and-gmsh-api-integration
  • octreeSizeField
  • hexbl
  • alignIrregularVertices
  • getEdges
  • patch_releases_4_8
  • isuruf-master-patch-51992
  • gmsh_4_11_0
  • gmsh_4_10_5
  • gmsh_4_10_4
  • gmsh_4_10_3
  • gmsh_4_10_2
  • gmsh_4_10_1
  • gmsh_4_10_0
  • gmsh_4_9_5
  • gmsh_4_9_4
  • gmsh_4_9_3
  • gmsh_4_9_2
  • gmsh_4_9_1
  • gmsh_4_9_0
  • gmsh_4_8_4
  • gmsh_4_8_3
  • gmsh_4_8_2
  • gmsh_4_8_1
  • gmsh_4_8_0
  • gmsh_4_7_1
  • gmsh_4_7_0
41 results

Geo

Forked from gmsh / gmsh
Source project has a limited visibility.
This is Gmsh, an automatic three-dimensional finite element mesh
generator with built-in pre- and post-processing facilities.

Gmsh is distributed under the terms of the GNU General Public License,
Version 2 or later, with an exception to allow for easier linking with
external libraries. See doc/LICENSE.txt and doc/CREDITS.txt for more
information.

See the doc/ and tutorial/ directories for documentation. The
reference manual is located in doc/texinfo/. See the demos/ directory
and the web site http://geuz.org/gmsh for additional examples.

Building Gmsh from its source code requires a C++ compiler and CMake
(http://cmake.org).  Building the graphical user interface requires
FLTK 1.1.7 or above (http://fltk.org), configured with OpenGL
support. Building the 64 bit graphical version on MacOS X requires
FLTK 1.3.


Build Gmsh using CMake's graphical user interface
-------------------------------------------------

* Launch CMake and fill-in the two top input fields (telling where the
  Gmsh source directory is located and where you want the Gmsh binary
  to be created).

* Click on "Add entry" and define the variable CMAKE_PREFIX_PATH, of
  type "PATH", pointing to the location(s) of any external package(s)
  (FLTK, BLAS/LAPACK, etc.) installed in non-standard directories. 

  (If you are using our pre-compiled "gmsh dependencies" package
  (http://geuz.org/gmsh/bin/Windows/gmsh-dep-msvc2008-release.zip)
  with Visual Studio on Windows simply point CMAKE_PREFIX_PATH to the
  "gmsh-dep" directory.)

* Click on "Configure" and choose your compiler (e.g. Visual Studio).

* Optionally change some configuration options (re-run "Configure"
  every time you change some options).

* Once you are happy with all the configuration options, click on
  "Generate".

* Go to the build directory and build Gmsh using your chosen compiler.

  (With Visual Studio double-click on "gmsh.sln". If you are using our
  pre-compiled "gmsh dependencies" package you must use the "Release"
  or "RelWithDebInfo" build type.)


Build Gmsh from the command line
--------------------------------

* Create a build directory, for example as a subdirectory of Gmsh's
  source directory:

    mkdir build

* Run cmake from within the build directory, pointing to Gmsh's
  source directory:

    cd build
    cmake ..

* To build and install Gmsh then simply type

    make
    make install

* To change build options you can use "ccmake" instead of "cmake",
  e.g.:

    ccmake ..

  or you can specify options directly on the command line. For
  example, you can use

    cmake -DCMAKE_PREFIX_PATH=/opt/local ..

  to specify the location of external packages installed in
  non-standard directories. You can use

    cmake -DCMAKE_INSTALL_PREFIX=/opt

  to change the installation directory. Or you can use

    cmake -DENABLE_FLTK=0 ..

  to build a version of Gmsh without the FLTK graphical interface.

* You can keep multiple builds with different build options at the
  same time. For example, you could configure a debug graphical build
  in a "bin" subdirectory with

    cd bin
    cmake -DCMAKE_BUILD_TYPE=Debug .. 
    make
    make install

  and static and dynamic non-graphical release libraries in a "lib"
  subdirectory with

    cd lib
    cmake -DCMAKE_BUILD_TYPE=Release -DENABLE_FLTK=0 -DENABLE_OCC=0 ..
    make lib
    make shared
    make install/fast

* To see a detailed compilation log use

    make VERBOSE=1