UbuntuSourceInstall

Version 11 (scotty, 11/03/2015 17:45)

1 1 admin
h1. Installing from Source Under Ubuntu
2 1 admin
3 1 admin
{{>toc}}
4 1 admin
5 11 scotty
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 [[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 10 coder
<code>$ sudo apt-get install git automake autoconf libtool libxml2-dev \
13 2 coder
libpango1.0-dev librsvg2-dev libgdk-pixbuf2.0-dev libavcodec-dev libavformat-dev \
14 9 coder
libswscale-dev libavresample-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 7 Richy
Check the code out from git:
23 1 admin
24 7 Richy
<pre><code>$ git clone https://github.com/libavg/libavg.git
25 1 admin
</code></pre>
26 1 admin
27 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.
28 1 admin
29 1 admin
Afterward, type:
30 1 admin
31 4 coder
<pre><code>$ cd libavg
32 1 admin
$ ./bootstrap
33 1 admin
</code></pre>
34 1 admin
35 1 admin
to get an automated generation of configure.
36 1 admin
37 1 admin
Run configure (providing optional parameters like --prefix):
38 1 admin
39 4 coder
<pre><code>$ ./configure
40 1 admin
</code></pre>
41 1 admin
42 1 admin
h1. Compilation and Installation
43 1 admin
44 1 admin
Start compilation with:
45 1 admin
46 8 coder
<pre><code>$ make -j3
47 1 admin
</code></pre>
48 8 coder
49 8 coder
-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.
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 :-).