Skip to content

Instantly share code, notes, and snippets.

@DamonOehlman
Last active December 18, 2015 02:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DamonOehlman/5712137 to your computer and use it in GitHub Desktop.
Save DamonOehlman/5712137 to your computer and use it in GitHub Desktop.
Installation of Erizo on Ubuntu based system

Erizo is an MCU that is part of the licode stack. It is written in C++ and a node API is provided, so I personally find that pretty exciting.

Prequesites

To build erizo you are going to need both cmake and various boost libaries. These can be installed on a debian based system with the following command:

sudo apt-get install cmake libboost-dev libboost-system-dev libboost-thread-dev libboost-regex-dev libnice-dev

Installation

Once you have the prereqs installed, you can then clone the licode repository:

git clone git://github.com/ging/lynckia.git

While the repository provides some helper scripts, I prefer to change into the erizo directory and compile from there:

./generateProject.sh

All being well you should see output similar to the following:

current source dir /home/doehlman/code/github/lynckia/erizo/src/erizo
-- Found glib-2.0: /usr/include/glib-2.0, /usr/lib/x86_64-linux-gnu/libglib-2.0.so;/usr/lib/x86_64-linux-gnu/libgobject-2.0.so;/usr/lib/x86_64-linux-gnu/libgthread-2.0.so
-- Boost version: 1.49.0
-- Found the following Boost libraries:
--   system
--   thread
--   regex
-- Could NOT find Doxygen (missing:  DOXYGEN_EXECUTABLE) 
-- Configuring done
-- Generating done
-- Build files have been written to: /home/doehlman/code/github/lynckia/erizo/build
Done

Now that cmake has done it's thing preparing the project, you should now be able to build:

cd build
make

If built successfully, you should now have a shiny new liberizo.so in the erizo/build/erizo/ directory.

Building the Node Wrapper API

With the erizo library built, you should now be able to build the node wrapper. To do this, head back to the main directory of the licode repository and chdir to the erizoAPI directory:

cd erizoAPI

If you have a version of node installed, you should now be able to use node-waf to configure and build the module:

ERIZO_HOME=~/code/github/lynckia/erizo node-waf configure build

The above command sets the ERIZO_HOME environment variable for the duration of the build process. You should change this to suit your own pathing preferences (noting that the path must be absolute).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment