Building on Fedora using Cmake » History » Revision 6
Revision 5 (Nehal J Wani, 14 Aug 2014 06:18) → Revision 6/15 (Nehal J Wani, 14 Aug 2014 06:36)
h1. Building 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 bulidir is _~/gnu/exiv2_
# Install some of the basic utilities
<pre>
sudo yum install -y subversion make cmake autoconf gcc-c++ yum-utils pkgconfig 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
sudo make install
</pre>
# Building tests.
** Optional: Since exifprobe is not available in standard fedora repositories, some tests will get skipped. If you don't want that:
<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>
** Running tests requires one additional package:
<pre>
sudo yum install -y dos2unix
</pre>
** Finally:
<pre>
cd ~/gnu/exiv2/trunk/build
make tests
</pre>
* 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 bulidir is _~/gnu/exiv2_
# Install some of the basic utilities
<pre>
sudo yum install -y subversion make cmake autoconf gcc-c++ yum-utils pkgconfig 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
sudo make install
</pre>
# Building tests.
** Optional: Since exifprobe is not available in standard fedora repositories, some tests will get skipped. If you don't want that:
<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>
** Running tests requires one additional package:
<pre>
sudo yum install -y dos2unix
</pre>
** Finally:
<pre>
cd ~/gnu/exiv2/trunk/build
make tests
</pre>