Project

General

Profile

Actions

Building on Ubuntu using Cmake » History » Revision 1

Revision 1/16 | Next »
Nehal J Wani, 14 Aug 2014 01:25


Building on Ubuntu using Cmake

  • 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
  1. Install some of the basic utilities
    sudo apt-get update
    sudo apt-get install -y subversion make autoconf pkg-config g++
    
  2. 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.
    sudo apt-get update
    sudo apt-get build-dep -y exiv2
    
  3. Fetch the source code:
    mkdir -p ~/gnu/exiv2
    cd ~/gnu/exiv2
    svn checkout svn://dev.exiv2.org/svn/trunk
    cd trunk
    
  4. Start building exiv2
    make config
    ./configure
    make
    sudo make install
    
  5. Building samples
    export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
    make samples
    
  6. Building tests.
    • Running tests requires one additional package:
      sudo apt-get install -y exifprobe
      
    • Finally:
      cd ~/gnu/exiv2/trunk
      make tests
      

Updated by Nehal J Wani over 7 years ago · 1 revisions