Project

General

Profile

Building on Fedora using Cmake » History » Version 4

Nehal J Wani, 14 Aug 2014 04:32

1 3 Nehal J Wani
h1. Building on Fedora using Cmake
2 1 Nehal J Wani
3
* This has been tested on Fedora20 64bit minimal install.
4
* Last revision on which this method was tested: r3288
5 2 Nehal J Wani
* This wiki page assumes that installation prefix is _/usr/local_ and your bulidir is _~/gnu/exiv2_
6 1 Nehal J Wani
7
# Install some of the basic utilities
8
<pre>
9
sudo yum install -y subversion make cmake autoconf gcc-c++ yum-utils pkgconfig
10
</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
sudo yum-builddep -y exiv2
14
</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
mkdir build
25 2 Nehal J Wani
cd build
26 1 Nehal J Wani
cmake ..
27 2 Nehal J Wani
make
28
sudo make install
29 1 Nehal J Wani
</pre>
30
# Building tests.
31
** Optional: Since exifprobe is not available in standard fedora repositories, some tests will get skipped. If you don't want that:
32
<pre>
33
cd ~/gnu
34
sudo yum install -y git
35
git clone https://github.com/hfiguiere/exifprobe.git
36
cd exifprobe
37
make
38
sudo mkdir -p /usr/local/man/man1
39
sudo make install
40
</pre>
41
** Running tests requires one additional package:
42
<pre>
43
sudo yum install -y dos2unix
44
</pre>
45
** Finally:
46
<pre>
47 4 Nehal J Wani
cd ~/gnu/exiv2/trunk/build
48 1 Nehal J Wani
make tests
49
</pre>