.. _installation: .. title:: Installation Installation ============ Acquiring KSL --------------- KSL can be obtained by cloning the repository from the GitHub site: .. code:: git clone git@github.com:shift-dynamics/ksl.git Required tools --------------------- * `meson `_ and `ninja `_ * `check `_ (for the test suite) Optional dependencies --------------------- * `Eigen `_ and a C++ compiler, for the benchmark in :ref:`performance` * doxygen, sphinx, breathe and sphinxcontrib-bibtex, to build this documentation Linux ***** On most Linux distributions the above packages can be installed using the distribution's package manager. Arch Linux: ^^^^^^^^^^^ .. code:: pacman -S meson ninja check # optional: Eigen and the documentation tools pacman -S eigen doxygen python-sphinx python-breathe python-sphinxcontrib-bibtex Ubuntu / Debian-based Linux Distributions: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ .. code:: apt-get install meson ninja-build check # optional: Eigen and the documentation tools apt-get install libeigen3-dev doxygen pip install sphinx breathe sphinxcontrib-bibtex Macintosh ********* On a Macintosh, the dependencies can be installed using the *brew* package manager: .. code:: brew install meson ninja check Windows ******* *KSL* has not been tested on Windows machines. Building KSL -------------- To build the KSL library, from within the top directory of the repository, issue the following commands: .. code:: meson setup build meson compile -C build To build in release mode (disables asserts and debug output) .. code:: meson setup build --buildtype=release -Db_ndebug=true Build options ************* Options are passed to ``meson setup`` or changed later with ``meson configure build -D