Skip to content

Build instructions for Linux

Tobias Wellnitz edited this page Nov 6, 2021 · 13 revisions

Build instructions for Ubuntu >= 20.04 LTS

  1. Make sure, you have installed a recent Go version (>= 1.16). Although not strictly necessary anymore, it is still recommended to set the $GOPATH environment variable and add $GOPATH/bin to your $PATH environment path variable.

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

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

    $ sudo apt install -y git autoconf automake libtool build-essential pkg-config protobuf-compiler
    $ sudo apt install -y libsamplerate0 libsamplerate0-dev libopusfile-dev libopus-dev libportaudio2 portaudio19-dev
    
  2. Clone this repository including the submodules

    $ git clone --recurse-submodules https://github.com/dh1tw/remoteAudio.git
    
  3. Change into the repository's directory

    $ cd remoteAudio
    
  4. Download and install go dependencies

    $ make install-deps
    
  5. Build remoteAudio

    $ make build
    
  6. Optional: Install remoteAudio on your Systems

    $ make install