Building the C++ library

The following section describes building the AMICI C++ library:


The AMICI C++ interface only supports simulation of models imported using the Python interface and Matlab interface. It cannot be used for model import itself.


To use AMICI from C++, run the


script to build the AMICI library.


On some systems, the CMake executable may be named something other than cmake. In this case, set the CMAKE environment variable to the correct name (e.g. export CMAKE=cmake3, in case you have CMake available as cmake3).

The static library can then be linked from


In CMake-based packages, amici can be linked via


For further usage, consult the AMICI C++ interface documentation.

Supported CBLAS libraries

The C++ interfaces require a system installation of a CBLAS-compatible Basic Linear Algebra Subprograms (BLAS) library. AMICI has been tested with various implementations such as Accelerate, Intel MKL, cblas, openblas and atlas.

Optional SuperLU_MT support

To build AMICI with SuperLU_MT support, run

cd build/