UbuntuSourceInstall

Version 6 (coder, 16/02/2014 11:50)

1 1 admin
h1. Installing from Source Under Ubuntu
2 1 admin
3 1 admin
{{>toc}}
4 1 admin
5 1 admin
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 [[LinuxInstallIssues|Linux Installation Issues]].
6 1 admin
7 1 admin
h1. Prerequisite Packages
8 1 admin
9 1 admin
Start with the installation of all needed packages:
10 1 admin
11 4 coder
<pre>
12 4 coder
<code>$ sudo apt-get install subversion automake autoconf libtool libxml2-dev \
13 2 coder
libpango1.0-dev librsvg2-dev libgdk-pixbuf2.0-dev libavcodec-dev libavformat-dev \
14 1 admin
libswscale-dev python-dev libboost-python-dev libboost-thread-dev g++ libSDL-dev \
15 2 coder
libxxf86vm-dev libdc1394-22-dev linux-libc-dev libvdpau-dev
16 1 admin
</code></pre>
17 1 admin
18 6 coder
To support native linux Multitouch devices, you also need to install libxi-dev.
19 1 admin
20 1 admin
h1. Checkout and Configure
21 1 admin
22 1 admin
Check the code out from subversion:
23 1 admin
24 5 coder
<pre><code>$ svn co https://www.libavg.de/svn/trunk/libavg
25 1 admin
</code></pre>
26 1 admin
27 1 admin
Accept the certificate with a 'p' and wait for the checkout to complete.
28 1 admin
29 1 admin
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.
30 1 admin
31 1 admin
Afterward, type:
32 1 admin
33 4 coder
<pre><code>$ cd libavg
34 1 admin
$ ./bootstrap
35 1 admin
</code></pre>
36 1 admin
37 1 admin
to get an automated generation of configure.
38 1 admin
39 1 admin
Run configure (providing optional parameters like --prefix):
40 1 admin
41 4 coder
<pre><code>$ ./configure
42 1 admin
</code></pre>
43 1 admin
44 1 admin
h1. Compilation and Installation
45 1 admin
46 1 admin
Start compilation with:
47 1 admin
48 4 coder
<pre><code>$ make
49 1 admin
</code></pre>
50 1 admin
51 1 admin
Then do a make install to get libavg installed in the PREFIX path, which is, by default @/usr/local@:
52 1 admin
53 4 coder
<pre><code>$ sudo make install
54 1 admin
</code></pre>
55 1 admin
56 1 admin
h1. Test
57 1 admin
58 1 admin
libavg provides some tests which can be used to check if everything works:
59 1 admin
60 4 coder
<pre><code>$ make check
61 1 admin
</code></pre>
62 3 coder
Report any test failures in the forums :-).