Building on Ubuntu using Automake » History » Revision 22
Revision 21 (Nehal J Wani, 02 Sep 2014 13:15) → Revision 22/23 (Nehal J Wani, 17 Jan 2015 13:12)
h1. Building exiv2 on Ubuntu using Automake
* This has been tested on Ubuntu14.04 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 is _~/gnu/exiv2_
# Install some of the basic utilities
<pre>
sudo apt-get update
sudo apt-get install -y subversion make autoconf pkg-config g++ exifprobe libcurl4-openssl-dev 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 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 after following the steps in this "link":http://askubuntu.com/a/496554/95343 , do:
<pre>
sudo apt-get update
</pre>
# Fetch the source code:
<pre>
mkdir -p ~/gnu/exiv2
cd ~/gnu/exiv2
svn checkout svn://dev.exiv2.org/svn/trunk
cd trunk
</pre>
# Build exiv2
<pre>
make config
./configure # if you are using clang, then do: ./configure CC=clang CXX=clang++
make # make CXXFLAGS=-ggdb for debug
sudo make install
</pre>
# Building samples
<pre>
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
make samples
</pre>
# Building tests.
** To execute tests:
<pre>
cd ~/gnu/exiv2/trunk
make tests
</pre>
** Running other "test suites":http://dev.exiv2.org/projects/exiv2/wiki/How_do_I_run_the_test_suite_for_Exiv2
* This has been tested on Ubuntu14.04 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 is _~/gnu/exiv2_
# Install some of the basic utilities
<pre>
sudo apt-get update
sudo apt-get install -y subversion make autoconf pkg-config g++ exifprobe libcurl4-openssl-dev 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 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 after following the steps in this "link":http://askubuntu.com/a/496554/95343 , do:
<pre>
sudo apt-get update
</pre>
# Fetch the source code:
<pre>
mkdir -p ~/gnu/exiv2
cd ~/gnu/exiv2
svn checkout svn://dev.exiv2.org/svn/trunk
cd trunk
</pre>
# Build exiv2
<pre>
make config
./configure # if you are using clang, then do: ./configure CC=clang CXX=clang++
make # make CXXFLAGS=-ggdb for debug
sudo make install
</pre>
# Building samples
<pre>
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
make samples
</pre>
# Building tests.
** To execute tests:
<pre>
cd ~/gnu/exiv2/trunk
make tests
</pre>
** Running other "test suites":http://dev.exiv2.org/projects/exiv2/wiki/How_do_I_run_the_test_suite_for_Exiv2