Skip to content
vhuber edited this page Jul 29, 2013 · 3 revisions

If your *nix distributions does not provide you satisfaction about gmsh, you can built your own shared lib for Fell++:

To download the lastest version of Gmsh: http://geuz.org/gmsh/src/gmsh-svn-source.tgz Extract that file somewhere, the go to the created directory, create a build directory and:

cmake .. -DCMAKE_INSTALL_PREFIX=~/gmsh-2.8.2 -DCMAKE_BUILD_TYPE=release -DENABLE_MPI=ON -DENABLE_BUILD_LIB=1 -DENABLE_BUILD_SHARED=1
make -j2 lib
make -j2 shared
make -j2 install

You can disable slepc by adding

-DENABLE_SLEPC=0

to your cmake commande.

And set your GMSH_DIR to you install location.

Once you've run cmake for Feel++, double check that you are using the right gmsh installation. You can see that information using the advanced mode with ccmake.

Tricks:

you may want to use different versions of gmsh. Instead of modifying your GMSH_DIR, you should create a simlink (e.g: ~/gmsh -> gmsh-2.8.2) and define your GMSH_DIR as ~/gmsh. If you want to use another version of gmsh, just modify your simlink.

You will have to regenerate the Feel++ library after that.

Clone this wiki locally