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 libboost-system-dev libboost-filesystem-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.
Next, we will need to build gstreamer 1.0 from source as support for gstreamer on Debian Wheezy seems pretty poor. If you are following these instructions on a later distribution of Debian or Ubuntu you may be able to skip this step:
wget http://gstreamer.freedesktop.org/src/gstreamer/gstreamer-1.2.2.tar.xz
tar xf gstreamer-1.2.2.tar.xz
cd gstreamer-1.2.2
./configure
make
sudo make install
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 .