Project

General

Profile

Building on Ubuntu using Cmake » History » Revision 8

Revision 7 (Nehal J Wani, 14 Aug 2014 04:18) → Revision 8/16 (Nehal J Wani, 14 Aug 2014 04:31)

h1. Building on Ubuntu using Cmake Automake

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

# Install some of the basic utilities
<pre>
sudo apt-get update
sudo apt-get install -y subversion make cmake autoconf pkg-config g++
</pre>
# Install all the dependencies for building exiv2. Since exiv2 is already available in the Ubuntu repositories, this method makes life easier.
<pre>
sudo apt-get build-dep -y exiv2
</pre>
In case you get the error ...
<pre>
E: You must put some 'source' URIs in your sources.list",
</pre>
.. then edit _/etc/apt/sources.list_ . Copy all lines starting with 'deb' and replace the first word of these lines from 'deb' to 'deb-src' in their copied versions.
# 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 ..
make
sudo make install
</pre>
# Building tests.
** Running tests requires one additional package:
<pre>
sudo apt-get install -y exifprobe
</pre>
** Finally:
<pre>
cd ~/gnu/exiv2/trunk/build
make tests
</pre>