libstick: Installation

Downloading

You may obtain a tarball of libstick from my git repository. The prefered way, however, is to directly use git:

curl "https://git.sthu.org/?p=libstick.git;a=snapshot;h=master;sf=tgz" | tar -xvz
# or
git clone "https://git.sthu.org/repos/libstick.git"

Building

Libstick is written in C++ (-std=c++98) and employs cmake for building software. Using the script build.sh from the source, building libstick should be as easy as

sh build.sh

on a Linux platform. However, by invoking cmake directly, you can also build libstick on other platforms, e.g., by letting cmake create a Visual Studio project file you. Also, if you want to change the cmake configuration (e.g., enabling unit tests or changing the installation directory), you have to invoke cmake directly, say:

mkdir -p build
cd build
cmake -D CMAKE_INSTALL_PREFIX:PATH=$HOME/.local/ \
    -D CMAKE_BUILD_TYPE="Debug" -D WITH_UNITTESTS=1 ..

Installing

You can install libstick by invoking the following command from the build/ directory:

make install

See INSTALL.txt for further details.