Skip to content

Instantly share code, notes, and snippets.

@giordanocardillo
Created March 7, 2017 00:47
Show Gist options
  • Save giordanocardillo/b4fac6d22621dc4af6ffc285604e6247 to your computer and use it in GitHub Desktop.
Save giordanocardillo/b4fac6d22621dc4af6ffc285604e6247 to your computer and use it in GitHub Desktop.
Compile Janus
#!/bin/sh
cd /home
mkdir janus-sources
cd janus-sources
apt-get update
apt-get install -y curl git libmicrohttpd-dev libjansson-dev libnice-dev libssl-dev libsofia-sip-ua-dev libglib2.0-dev libopus-dev libogg-dev libcurl4-openssl-dev pkg-config gengetopt libtool automake cmake
curl -O -L https://github.com/cisco/libsrtp/archive/v2.0.0.tar.gz
tar xfv v2.0.0.tar.gz
cd libsrtp-2.0.0
./configure --prefix=/usr --enable-openssl
make shared_library && make install
cd ..
git clone https://github.com/warmcat/libwebsockets.git
cd libwebsockets
git checkout v2.1-stable
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr -DCMAKE_C_FLAGS="-fpic" ..
make && make install
cd ../..
git clone https://github.com/meetecho/janus-gateway.git
cd janus-gateway
sh autogen.sh
./configure --prefix=/opt/janus --disable-data-channels --disable-rabbitmq --disable-mqtt
make
make install
make configs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment