Installing on Linux
This guide is written for Ubuntu 14.04, although installation should be fairly portable across most flavors of Linux.
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:
- RTTI must be enabled (the
-no_rtticompiler flag must be removed)
- The WebRTC static library must not contain
JsonCpp(it conflicts with our newer internal version)
- libstdc++ iterator debugging must be disabled or it conflicts with external dependencies compiled without it (ninja build must set
cd ~/tmp git clone firstname.lastname@example.org:sourcey/webrtcbuilds.git cd webrtcbuilds ./build.sh -l jsoncpp -e
cd ~/tmp git clone https://github.com/sourcey/libsourcey.git cd libsourcey mkdir build cd build cmake .. -DCMAKE_BUILD_TYPE=RELEASE # extra cmake commands here, see below for a full list... make sudo make install
See here for a complete list of build options.