Skip to content

Build instructions for Linux

Tobias Wellnitz edited this page Apr 18, 2017 · 13 revisions

Build instructions for Ubuntu >= 14.04

  1. Make sure, you have installed the latest Go version and set the Go environment variables:

    • $GOPATH
    • $PATH=$PATH:$GOPATH/bin

    If this is the first time you use go, you might want to add them to your bash profile ($HOME/.profile) so that the variables get set automatically. For example:

    export GOPATH=$HOME/go
    export PATH=$PATH:$GOPATH/bin
    
  2. Install apt packages:

    $ sudo apt-get install -y autoconf automake libtool build-essential
    $ sudo apt-get install -y pkg-config libsamplerate0 libsamplerate0-dev libopusfile-dev libopus-dev libportaudio2 portaudio19-dev
    
  3. Download this repository

    $ go get -d github.com/dh1tw/remoteAudio
    
  4. Change into the repository's directory

    $ cd $GOPATH/src/github.com/dh1tw/remoteAudio
    
  5. Download and install go dependencies

    $ make install-deps
    
  6. Install the latest Protocol buffers compiler (>=3.0)

    The installation & compilation of the protobuf compiler might take some time, depending on the available CPU power.

    $ ./ci/install-protobuf.sh
    
  7. Build remoteAudio

    $ make build
    
  8. Install remoteAudio on your Systems

    $ make install