Building Hadouken on Ubuntu

Overview

This will guide you through the process of building Hadouken on Ubuntu 14.04.2 (Trusty Tahr). The instructions here will most probably work on older Ubuntu versions (the Travis CI build for Hadouken runs on 12.04), as well as on Debian and other Debian derivatives.

What you need

In order to successfully clone and build Hadouken you need the following applications and libraries installed.

  • cmake
  • git
  • libssl-dev

Cloning the repository

Clone the Hadouken GitHub repository.

$ git clone https://github.com/hadouken/hadouken
$ cd hadouken
$ git submodule update --init

Running the build

By now you should have all you need to build Hadouken. The repository has two helper scripts which will download and compile Boost (1.58) and libtorrent (1.0.5).

Boost and libtorrent are installed to %HOME%/boost/ and %HOME%/libtorrent/.

$ ./linux/install-boost.sh
$ ./linux/install-libtorrent.sh

Now, run the build.

$ ./linux/build.sh

This should have produced both a Debian package file in the directory linux/build and a binary at linux/build/bin.