Project

General

Profile

Building on Ubuntu using Automake » History » Revision 4

Revision 3 (Nehal J Wani, 14 Aug 2014 00:24) → Revision 4/23 (Nehal J Wani, 14 Aug 2014 00:33)

h1. Building on Ubuntu using 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 bulidir is _~/gnu_

# Install some of the basic utilities
<pre>
sudo apt-get update
sudo apt-get install -y subversion make 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. 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.
<pre>
sudo apt-get update
sudo apt-get build-dep -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>
make config
./configure
sudo make install
</pre>
# Building samples
<pre>
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
make samples
</pre>
# Building tests.
** Running tests requires one two additional package: packages:
<pre>
sudo apt-get install -y exifprobe dos2unix
</pre>
** Finally:
<pre>
cd ~/gnu/exiv2/trunk
make tests
</pre>