Installing from Source Under Ubuntu

This page explains how to install the libavg developer version from github on an Ubuntu machine. If you run into any issues, have a look at Known Linux Installation Issues.

Prerequisite Packages

Start with the installation of all needed packages:

$ sudo apt-get install git cmake libxml2-dev \
libpango1.0-dev librsvg2-dev libgdk-pixbuf2.0-dev libavcodec-dev libavformat-dev \
libswscale-dev libavresample-dev python-dev libboost-python-dev libboost-thread-dev g++ libsdl2-dev \
libxxf86vm-dev libdc1394-22-dev libjpeg-dev linux-libc-dev libvdpau-dev

To support native linux Multitouch devices, you also need to install libxi-dev.

Checkout and Build

Check the code out from git:

$ git clone

Afterward, type:

$ cd libavg
$ mkdir build
$ cd build
$ cmake ..

Start compilation with:

$ make -j3

-j3 is the number of parallel compile processes you'd like to run. A good heuristic is to set this to the number of cores you have + 1.

Then do a make install to get libavg installed in the PREFIX path, which is /usr/local by default:

$ sudo make install

To install libavg into a virtualenv, make sure it is active during the cmake step.


libavg provides some tests which can be used to check if everything works:

$ make check

Report any test failures in the forums :-).