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 cd libdistance
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 cd build cmake .. make -j make install
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:
cd build cmake -DBUILD_TEST=ON .. make all -j make test
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)¶
cd build cmake -DBUILD_DOC=ON .. make doc
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