UbuntuSourceInstall

Version 16 (coder, 06/07/2016 23: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 14 coder
libswscale-dev libavresample-dev python-dev libboost-python-dev libboost-thread-dev g++ libsdl2-dev \
15 15 scotty
libxxf86vm-dev libdc1394-22-dev libjpeg-dev linux-libc-dev libvdpau-dev
16 1 admin
</code></pre>
17 1 admin
18 13 coder
To support native linux Multitouch devices, you also need to install @libxi-dev@.
19 1 admin
20 16 coder
h1. Checkout and Build
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
Afterward, type:
28 1 admin
29 1 admin
<pre><code>$ cd libavg
30 16 coder
$ mkdir build
31 16 coder
$ cd build
32 16 coder
$ cmake ..
33 1 admin
</code></pre>
34 1 admin
35 1 admin
Start compilation with:
36 1 admin
37 1 admin
<pre><code>$ make -j3
38 1 admin
</code></pre>
39 8 coder
40 1 admin
-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.
41 8 coder
42 8 coder
Then do a make install to get libavg installed in the @PREFIX@ path, which is @/usr/local@ by default:
43 1 admin
44 12 coder
<pre><code>$ sudo make install
45 1 admin
</code></pre>
46 16 coder
47 16 coder
To install libavg into a virtualenv, make sure it is active during the cmake step.
48 1 admin
49 1 admin
h1. Test
50 1 admin
51 1 admin
libavg provides some tests which can be used to check if everything works:
52 1 admin
53 4 coder
<pre><code>$ make check
54 1 admin
</code></pre>
55 3 coder
Report any test failures in the forums :-).