These are generic installation instructions. Building from source requires
cmake to be installed (https://cmake.org/).
The simplest way to compile this package is:
cd to the directory containing the package’s source code and type
cmake . to configure the package for your system. This will build
MGIS in place.
However, we strongly recommend building
MGIS out of the source tree as follows:
builddirectory et go in this directory
cmake <path_to_MGIS_SOURCES>to configure the directory
Useful options are listed below.
cmake takes awhile. While running, it prints some messages telling which features it is checking for.
make to compile the package.
make check to run any self-tests that come with the package.
make install to install the programs and any data files and documentation.
You can remove the program binaries and object files from the source code directory by typing
enable-c-bindings: compiles the
enable-fortran-bindings: compiles bindings for the
enable-python-bindings: compiles the
Pythonbindings. This requires the
Boost/Pythonlibrary to be available (default=OFF)
enable-fenics-bindings: compiles the
FEniCSbindings. Those bindings are experimental and very limited. To use
FEniCS, usage of the
Pythonbindings are encouraged.
enable-julia-bindings: compiles the
Juliabindings. This requires the
CxxWraplibrary to be available.
enable-website: generate the TFEL website (enabled by default if pandoc is found)
enable-portable-build: do not use processor specific flags.
enable-static: compiles static libraries
enable-doxygen-doc: enable the generation of the API documentation using with
CMAKE_BUILD_TYPE: two values are supported
CASTEM_INSTALL_PATH: specify where the castem has been installed
CMAKE_TOOLCHAIN_FILE: specify a tool chain file
Python_ADDITIONAL_VERSIONS: select the
pythonversion to use. Note that only the major and minor version of python shall be passed, not the revision version or the detection fails.
spack is flexible package manager (https://spack.io/).
spack shall be as easy as:
$ spack install mgis
By default, the
fortran bindings are installed. The mgis package has numerous variants which allows customizing which bindings must be built.