UbuntuSourceInstall

Version 1 (admin, 20/03/2012 14:25)

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 1 admin
<pre><code class="shell">
12 1 admin
$ sudo apt-get install subversion automake autoconf libtool libxml2-dev \
13 1 admin
libpango1.0-dev libgraphicsmagick++1-dev libavcodec-dev libavformat-dev \
14 1 admin
libswscale-dev python-dev libboost-python-dev libboost-thread-dev g++ libSDL-dev \
15 1 admin
libxxf86vm-dev libdc1394-22-dev linux-libc-dev
16 1 admin
</code></pre>
17 1 admin
18 1 admin
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.
19 1 admin
20 1 admin
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|libmtdev support]] needs a bit of work.
21 1 admin
22 1 admin
Post-1.6, vdpau video acceleration support was added to libavg. For this to work, add libvdpau-dev to the dependencies line.
23 1 admin
24 1 admin
h1. Checkout and Configure
25 1 admin
26 1 admin
Check the code out from subversion:
27 1 admin
28 1 admin
<pre><code class="shell">
29 1 admin
$ svn co https://www.libavg.de/svn/trunk/libavg
30 1 admin
</code></pre>
31 1 admin
32 1 admin
Accept the certificate with a 'p' and wait for the checkout to complete.
33 1 admin
34 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.
35 1 admin
36 1 admin
Afterward, type:
37 1 admin
38 1 admin
<pre><code class="shell">
39 1 admin
$ cd libavg
40 1 admin
$ ./bootstrap
41 1 admin
</code></pre>
42 1 admin
43 1 admin
to get an automated generation of configure.
44 1 admin
45 1 admin
Run configure (providing optional parameters like --prefix):
46 1 admin
47 1 admin
<pre><code class="shell">
48 1 admin
$ ./configure
49 1 admin
</code></pre>
50 1 admin
51 1 admin
h1. Compilation and Installation
52 1 admin
53 1 admin
Start compilation with:
54 1 admin
55 1 admin
<pre><code class="shell">
56 1 admin
$ make
57 1 admin
</code></pre>
58 1 admin
59 1 admin
Then do a make install to get libavg installed in the PREFIX path, which is, by default @/usr/local@:
60 1 admin
61 1 admin
<pre><code class="shell">
62 1 admin
$ sudo make install
63 1 admin
</code></pre>
64 1 admin
65 1 admin
h1. Test
66 1 admin
67 1 admin
libavg provides some tests which can be used to check if everything works:
68 1 admin
69 1 admin
<pre><code class="shell">
70 1 admin
$ make check
71 1 admin
</code></pre>
72 1 admin
Report any test failures to the [[MailingLists|mailing list]] :-).