GUDHI installation

As GUDHI is a header only library, there is no need to install the library.

Examples of GUDHI headers inclusion can be found in Utilities and examples.


The library uses c++14 and requires Boost ≥ 1.56.0 and CMake ≥ 3.5. It is a multi-platform library and compiles on Linux, Mac OSX and Visual Studio 2015.

Utilities and examples

To build the utilities, run the following commands in a terminal:

cd /path-to-gudhi/
mkdir build
cd build/
cmake -DCMAKE_BUILD_TYPE=Release ..

By default, examples are disabled. You can activate their compilation with ccmake (on Linux and Mac OSX), cmake-gui (on Windows) or by modifying the cmake command as follows :


A list of utilities and examples is available here.


To install the library (headers and activated utilities), run the following command in a terminal:

make install 

This action may require to be in the sudoer or administrator of the machine in function of the operating system and of CMAKE_INSTALL_PREFIX.

Test suites

To test your build, run the following command in a terminal:

make test 

make test is using Ctest (CMake test driver program). If some of the tests are failing, please send us the result of the following command:

ctest --output-on-failure 


To generate the documentation, Doxygen is required. Run the following command in a terminal:

make doxygen
# Documentation will be generated in the folder YYYY-MM-DD-hh-mm-ss_GUDHI_X.Y.Z/doc/html/
# You can customize the directory name by calling `cmake -DUSER_VERSION_DIR=/my/custom/folder`

Hello world !

The Hello world for GUDHI project is an example to help developers to make their own C++ project on top of the GUDHI library.

Optional third-party library


The multi-field persistent homology algorithm requires GMP which is a free library for arbitrary-precision arithmetic, operating on signed integers, rational numbers, and floating point numbers.

The following example requires the GNU Multiple Precision Arithmetic Library (GMP) and will not be built if GMP is not installed:

Having GMP version 4.2 or higher installed is recommended.


Some GUDHI modules (cf. modules list), and few examples require CGAL, a C++ library that provides easy access to efficient and reliable geometric algorithms.

There is no need to install CGAL, you can just cmake -DCMAKE_BUILD_TYPE=Release . && make CGAL (or even cmake -DCMAKE_BUILD_TYPE=Release -DCGAL_HEADER_ONLY=ON .), thereafter you will be able to compile GUDHI by calling cmake -DCMAKE_BUILD_TYPE=Release -DCGAL_DIR=/your/path/to/CGAL-X.Y .. && make

The procedure to install this library according to your operating system is detailed here

The following examples/utilities require the Computational Geometry Algorithms Library (CGAL [41]) and will not be built if CGAL version 4.11.0 or higher is not installed:


Some GUDHI modules (cf. modules list), and few examples require Eigen is a C++ template library for linear algebra: matrices, vectors, numerical solvers, and related algorithms.

The following examples/utilities require the Eigen and will not be built if Eigen is not installed:

Threading Building Blocks

Intel® TBB lets you easily write parallel C++ programs that take full advantage of multicore performance, that are portable and composable, and that have future-proof scalability.

Having Intel® TBB installed is recommended to parallelize and accelerate some GUDHI computations.

The following examples/utilities are using Intel® TBB if installed:

Bug reports and contributions

Please help us improving the quality of the GUDHI library. You may report bugs or suggestions to:


GUDHI is open to external contributions. If you want to join our development team, please contact us.

GUDHI  Version 3.4.1  - C++ library for Topological Data Analysis (TDA) and Higher Dimensional Geometry Understanding.  - Copyright : MIT Generated on Fri Jan 22 2021 09:41:16 for GUDHI by Doxygen 1.8.13