This documents how to build and install libdistance on your computer.
In the following section, you are supposed to have fetched the libdistance sources and being located in its root directory:
git clone https://github.com/bootphon/libdistance.git
Installation from source¶
cmake is widely distributed, on Ubuntu/Debian just have a
sudo apt install cmake.
install arrayfire following those instructions.
Then compile and install libdistance:
mkdir -p build
By default libdistance is installed to
/usr/local on UNIX and
c:/Program Files/libdistance on Windows. To install it in another
cmake -DCMAKE_INSTALL_PREFIX=<installation_path> ...
Run the tests (optional)¶
To build and run the tests you need the boost-test library. Specify
BUILD_TEST=ON to cmake:
cmake -DBUILD_TEST=ON ..
make all -j
To install the boost-test library
sudo apt install libboost-test-dev
sudo yum install boost-test
brew install boost
On Windows: see here.
Build the documentation (optional)¶
cmake -DBUILD_DOC=ON ..
The HTML documentation is now in
Doxygen is available on OS packages managers for Linux and MacOS. Install it
apt/yum/brew install doxygen. On Windows, a installer is available