CAPD::DynSys Library
6.0.0
|
This section describes how to compile the CAPD library from sources.
Before compiling the library, please check if all System Requirements are fulfilled.
Here is a short list of commands which clones the repository, builds the library with support to multriprecision computation enabled, builds example programs and runs all tests. For more details and options see below.
First download the sources of CAPD (see Get CAPD for more details):
We are using the cmake tool to configure the CAPD library. First, you need to create an empty directory in which the library will be built. For example,
Available CAPD-specific options are:
–DCAPD_ENABLE_MULTIPRECISION=<true|false>
- turns on/off support for computation in multiprecision. If true, cmake checks if gmp and mpfr libraries are installed. Default value is true. –DCAPD_BUILD_EXAMPLES=<true|false>
- specifies wheter example programs should be built or not. Default value is false.–DCAPD_BUILD_TESTS=<true|false>
- specifies whether test programs should be built or not. Default value is false. –DCAPD_BUILD_ALL=<true|false>
- turns on/off building both examples and tests. Default value is false, that is building examples and tests depends on setting CAPD_BUILD_EXAMPLES
and CAPD_BUILD_TESTS
, respectively.Usefull cmake general options:
–DCMAKE_INSTALL_PREFIX=<path>
- specifies the directory, where the CAPD library will be installed after call to make install
. By default it is equal to /usr/local/
. –DCMAKE_CXX_COMPILER=compiler
- specifies, which C++ compiler (e.g. g++, clang++) will be used to build the library.This step is optional. After successful build of the library one can call
make install
The above command copies all header files and files for pkg-config to CMAKE_INSTALL_PREFIX
directory.
The last command may require administrator rights depending on the path specified in CMAKE_INSTALL_PREFIX
.