Version 1/17 - Next ยป - Current version
admin, 20/03/2012 14:25


Installing from Source Under Ubuntu

This page explains how to install the libavg developer version from subversion 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:

1$ sudo apt-get install subversion automake autoconf libtool libxml2-dev \
2libpango1.0-dev libgraphicsmagick++1-dev libavcodec-dev libavformat-dev \
3libswscale-dev python-dev libboost-python-dev libboost-thread-dev g++ libSDL-dev \
4libxxf86vm-dev libdc1394-22-dev linux-libc-dev

Post version 1.6 (starting with svn r6478), the dependency on graphicsmagick has been removed. Instead, you need to install librsvg2-dev and libgdk-pixbuf2.0-dev (10.10 and above) or libgtk2.0-dev (10.04 and below), respectively.

To support native linux Multitouch devices, you also need to install libxi-dev (11.04 and above) and/or libmtdev-dev (10.10 and above). Under 11.04, the XInput support should work out of the box. Under 10.10, libmtdev support needs a bit of work.

Post-1.6, vdpau video acceleration support was added to libavg. For this to work, add libvdpau-dev to the dependencies line.

Checkout and Configure

Check the code out from subversion:

1$ svn co https://www.libavg.de/svn/trunk/libavg

Accept the certificate with a 'p' and wait for the checkout to complete.

Alternatively, you can download the release tarball from the download page. In that case, you can skip the bootstrap step and just run configure.

Afterward, type:

1$ cd libavg
2$ ./bootstrap

to get an automated generation of configure.

Run configure (providing optional parameters like --prefix):

1$ ./configure

Compilation and Installation

Start compilation with:

1$ make

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

1$ sudo make install

Test

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

1$ make check

Report any test failures to the mailing list :-).