Installing on Linux

This guide is written for Ubuntu 14.04, although installation should be fairly portable across most flavors of Linux.

Install Dependencies

Before doing anything make sure you have the core dependencies installed:

sudo apt-get update
sudo apt-get install -y build-essential pkg-config git cmake openssl libssl-dev

Install FFmpeg (optional):

FFmpeg is an optional but recommended dependency that's required to make use of LibSourcey's media encoding capabilities.

Most versions on Linux have FFmpeg development libraries that you can install directly from the package manager. If you're on a newer version of Ubuntu (>= 15.04) then you can install the required libraries as follows:

sudo apt-get install --yes libavcodec-ffmpeg-dev libavdevice-ffmpeg-dev libavfilter-ffmpeg-dev libavformat-ffmpeg-dev libswresample-ffmpeg-dev libpostproc-ffmpeg-dev

Otherwise if you want to compile FFmpeg yourself you can follow the official guide for installing FFmpeg that works out of the box with LibSourcey.

Install WebRTC (optional):

Installing WebRTC can be tricky and time consuming, but using the script below you should be able to get started without a hitch. Using the script is highly recommended as there are a few caveats to take note of when compiling WebRTC for use with LibSourcey:

  1. RTTI must be enabled (the -no_rtti compiler flag must be removed)
  2. The WebRTC static library must not contain JsonCpp (it conflicts with our newer internal version)
  3. libstdc++ iterator debugging must be disabled or it conflicts with external dependencies compiled without it (ninja build must set enable_iterator_debugging=false)
cd ~/tmp
git clone
cd webrtcbuilds
./ -l jsoncpp -e

Install LibSourcey

cd ~/tmp
git clone
cd libsourcey
mkdir build
cd build
cmake .. -DCMAKE_BUILD_TYPE=RELEASE # extra cmake commands here, see below for a full list...
sudo make install

All done!

See here for a complete list of build options.

results matching ""

    No results matching ""