Install general dependencies:
sudo apt-get install git build-essential cmake pkg-config libboost-dev libboost-test-dev \
libboost-program-options-dev libevent-dev automake libtool flex bison pkg-config \
libssl-dev libsoup2.4-dev
Install a Java JDK (if you don't already have one available):
sudo apt-get install openjdk-7-jdk
Kurento uses Apache Thrift, so we will need to build that for our machine first (well at least that's what I did, because I couldn't find a suitable installation candidate). I chose to build against the git repository as I encountered this error when attempting to compile the 0.9.1
source tarball.
git clone https://git-wip-us.apache.org/repos/asf/thrift.git thrift
cd thrift/
git checkout thrift-0.9.1 -b build
./bootstrap.sh
./configure
make
sudo make install
cd ..
If the above instructions fail for any reason, then consult the Thrift Building from Source documentation.
Clone the kurento-media-server project:
git clone https://github.com/Kurento/kurento-media-server
cd kurento-media-server
Initialise git submodules:
git submodule init
git submodule update
Run cmake:
cmake .