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
To complete the installation process, you will also need to bring in some packages from the experimental packages. If you don't already have the experimental packages available, then add them so your /etc/apt/sources.list
:
echo " deb http://ftp.debian.org/debian experimental main" | sudo tee -a /etc/apt/sources.list
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 .