Building on Fedora using Automake » History » Version 17
Nehal J Wani, 15 Aug 2014 03:25
1 | 16 | Nehal J Wani | h1. Building exiv2 on Fedora using Automake |
---|---|---|---|
2 | 1 | Nehal J Wani | |
3 | 11 | Nehal J Wani | * This has been tested on Fedora20 64 and 32 bit minimal installations. |
4 | 1 | Nehal J Wani | * Last revision on which this method was tested: r3288 |
5 | 17 | Nehal J Wani | * This wiki page assumes that installation prefix is _/usr/local_ and your build-dir is _~/gnu/exiv2_ |
6 | 1 | Nehal J Wani | |
7 | # Install some of the basic utilities |
||
8 | <pre> |
||
9 | 13 | Nehal J Wani | sudo yum install -y subversion make autoconf gcc-c++ yum-utils pkgconfig clang #clang is required only if you wish to use it as the compiler instead of gcc |
10 | 1 | Nehal J Wani | </pre> |
11 | # Install all the dependencies for building exiv2. (Since exiv2 is already available in the Fedora repositories, this python script makes things easy and is provided by the package _yum-utils_) |
||
12 | <pre> |
||
13 | 3 | Nehal J Wani | sudo yum-builddep -y exiv2 |
14 | 1 | Nehal J Wani | </pre> |
15 | # Fetch the source code: |
||
16 | <pre> |
||
17 | mkdir -p ~/gnu/exiv2 |
||
18 | cd ~/gnu/exiv2 |
||
19 | svn checkout svn://dev.exiv2.org/svn/trunk |
||
20 | cd trunk |
||
21 | </pre> |
||
22 | # Start building exiv2 |
||
23 | <pre> |
||
24 | make config |
||
25 | 14 | Nehal J Wani | ./configure #if you are using clang, then do: ./configure CC=clang CXX=clang++ |
26 | 8 | Nehal J Wani | make |
27 | 1 | Nehal J Wani | sudo make install |
28 | </pre> |
||
29 | # Building samples |
||
30 | <pre> |
||
31 | export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig |
||
32 | make samples |
||
33 | </pre> |
||
34 | # Building tests. |
||
35 | ** Optional: Since exifprobe is not available in standard fedora repositories, some tests will get skipped. If you don't want that: |
||
36 | <pre> |
||
37 | cd ~/gnu |
||
38 | 4 | Nehal J Wani | sudo yum install -y git |
39 | 1 | Nehal J Wani | git clone https://github.com/hfiguiere/exifprobe.git |
40 | cd exifprobe |
||
41 | make |
||
42 | 9 | Nehal J Wani | sudo mkdir -p /usr/local/man/man1 |
43 | 1 | Nehal J Wani | sudo make install |
44 | </pre> |
||
45 | ** Running tests requires one additional package: |
||
46 | <pre> |
||
47 | 5 | Nehal J Wani | sudo yum install -y dos2unix |
48 | 1 | Nehal J Wani | </pre> |
49 | ** Finally: |
||
50 | <pre> |
||
51 | cd ~/gnu/exiv2/trunk |
||
52 | make tests |
||
53 | </pre> |