Installation on Unix (short version)

This page shortly explains how to build and install BornAgain from source on Unix platforms.

Install third party software

  • Compiler with C++-14 full support (e.g. gcc>= 4.9)
  • cmake (>= 2.8.11)
  • boost library (>= 1.48)
  • fftw3 library (>= 3.3.1)
  • gsl (GNU scientific library, >= 1.15)
  • libtiff library (>=4.0.2)
  • python-3, python3-devel, python3-numpy-devel
  • Qt5 (>=5.4)

Get the source

Download the BornAgain source tarball or use the following git repository

$ git clone --recursive https://github.com/scgmlz/BornAgain.git

Build and install the framework

$ mkdir <build_dir>; cd <build_dir>;
$ cmake -DCMAKE_INSTALL_PREFIX=<install_dir> <source_dir>
$ make -j4
$ ctest -j4
$ make install

For Python2 (if you have strong reasons to avoid Python3)

$ cmake -DBORNAGAIN_USE_PYTHON3=OFF -DCMAKE_INSTALL_PREFIX=<install_dir> <source_dir>