UbuntuSourceInstall

Version 10 (coder, 21/07/2014 17:52) → Version 11/17 (scotty, 11/03/2015 17:45)

h1. Installing from Source Under Ubuntu

{{>toc}}

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

h1. Prerequisite Packages

Start with the installation of all needed packages:

<pre>
<code>$ sudo apt-get install git automake autoconf libtool 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++ libSDL-dev \
libxxf86vm-dev libdc1394-22-dev linux-libc-dev libvdpau-dev
</code></pre>

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

h1. Checkout and Configure

Check the code out from git:

<pre><code>$ git clone https://github.com/libavg/libavg.git
</code></pre>

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

Afterward, type:

<pre><code>$ cd libavg
$ ./bootstrap
</code></pre>

to get an automated generation of configure.

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

<pre><code>$ ./configure
</code></pre>

h1. Compilation and Installation

Start compilation with:

<pre><code>$ make -j3
</code></pre>

-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, by default @/usr/local@:

<pre><code>$ sudo make install
</code></pre>

h1. Test

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

<pre><code>$ make check
</code></pre>
Report any test failures in the forums :-).