Newer
Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
## Build instructions
The _media library_ depends on _libvlc_, so we must build and install _libvlc_
first.
### Libvlc
To build _libvlc_ in some build directory (let's call it `x`), and install it in
a subdirectory `install/`:
```bash
cd ~/projects/vlc # the VLC git repository
mkdir -p x/install
cd x
../configure --prefix="$PWD"/install
make
make install
```
If everything is ok then _libvlc_ is built and installed in
`~/projects/vlc/x/install`.
### Media library
First, we must set `PKG_CONFIG_PATH` to point to the _libvlc_ `pkgconfig`:
```bash
export PKG_CONFIG_PATH=~/projects/vlc/x/install/lib/pkgconfig
```
We can now build the _media library_:
```bash
cd ~/projects/medialibrary
mkdir x
cd x
../configure
make
```
#### Tests
To build with the tests:
```bash
cd ~/projects/medialibrary
mkdir x
cd x
../configure --enable-tests
make check
```
To run the tests:
```bash
./unittest
./samples
```