Actions
Building on Ubuntu using Automake » History » Revision 18
« Previous |
Revision 18/23
(diff)
| Next »
Nehal J Wani, 26 Aug 2014 13:42
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
sudo apt-get update sudo apt-get install -y subversion make autoconf pkg-config g++ exifprobe clang #clang is required only if you wish to use it as the compiler instead of gcc
- Install all the dependencies for building exiv2. Since exiv2 is already available in the Ubuntu repositories, this method makes life easier.
sudo apt-get build-dep -y exiv2
In case you get the error ...E: You must put some 'source' URIs in your sources.list",
.. 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:
mkdir -p ~/gnu/exiv2 cd ~/gnu/exiv2 svn checkout svn://dev.exiv2.org/svn/trunk cd trunk
- Start building exiv2
make config ./configure # if you are using clang, then do: ./configure CC=clang CXX=clang++ make # make CXXFLAGS=-ggdb for debug sudo make install
- Building samples
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig make samples
- Building tests.
- To execute tests::
cd ~/gnu/exiv2/trunk make tests
- Running other test suites
- To execute tests::
Updated by Nehal J Wani about 7 years ago · 18 revisions