Project

General

Profile

Building on Fedora using Cmake » History » Revision 12

Revision 11 (Nehal J Wani, 26 Aug 2014 13:42) → Revision 12/15 (Nehal J Wani, 26 Aug 2014 13:43)

h1. Building exiv2 on Fedora using Cmake

* This has been tested on Fedora20 64 and 32 bit minimal installations.
* Last revision on which this method was tested: r3288
* This wiki page assumes that installation prefix is _/usr/local_ and your build-dir bulidir is _~/gnu/exiv2_

# Install some of the basic utilities
<pre>
sudo yum install -y subversion make cmake autoconf gcc-c++ yum-utils pkgconfig dos2unix clang #clang is required only if you wish to use it as the compiler instead of gcc
</pre>
# 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_)
<pre>
sudo yum-builddep -y exiv2
</pre>
# Fetch the source code:
<pre>
mkdir -p ~/gnu/exiv2
cd ~/gnu/exiv2
svn checkout svn://dev.exiv2.org/svn/trunk
cd trunk
</pre>
# Start building exiv2
<pre>
mkdir build
cd build
cmake # if you are using clang, then do: CC=clang CXX=clang++ cmake ..
make # -DCMAKE_BUILD_TYPE=Debug for debugging
sudo make install
</pre>
# Building tests.
** Optional: Some tests depend on exifprobe and will be skipped when not available. If you wish to install exifprobe:
<pre>
cd ~/gnu
sudo yum install -y git
git clone https://github.com/hfiguiere/exifprobe.git
cd exifprobe
make
sudo mkdir -p /usr/local/man/man1
sudo make install
</pre>
** To execute tests:
<pre>
cd ~/gnu/exiv2/trunk/build
make tests
</pre>
** Running other "test suites":http://dev.exiv2.org/projects/exiv2/wiki/How_do_I_run_the_test_suite_for_Exiv2