Compiling gphoto on Ubuntu 14.04 LTS

Here are instructions on how to compile a minimal gphoto build into /usr/local on a fresh Ubuntu 14.04 Trusty desktop install:

# install dependencies and checkout gphoto source
$ sudo apt-get install automake autopoint gettext libtool libusb-dev libpopt-dev subversion
$ svn checkout svn://svn.code.sf.net/p/gphoto/code/trunk gphoto
 
# compile libphoto2 and install into /usr/local/lib
$ cd gphoto/libgphoto2/
$ autoreconf --install --symlink
$ ./configure
$ make
$ sudo make install
 
# compile gphoto2 and install into /usr/local/bin
$ cd ../gphoto2
$ autoreconf --install --symlink
$ ./configure
$ make
$ sudo make install

In order to run ghoto with the version of libgphoto2 that you just built (as opposed to the one that came with Ubuntu 14.04), be sure to set LD_LIBRARY_PATH:

$ LD_LIBRARY_PATH=/usr/local/lib /usr/local/bin/gphoto2 --version
gphoto2 2.5.4
 
Copyright (c) 2000-2014 Lutz Mueller and others
 
gphoto2 comes with NO WARRANTY, to the extent permitted by law. You may
redistribute copies of gphoto2 under the terms of the GNU General Public
License. For more information about these matters, see the files named COPYING.
 
This version of gphoto2 is using the following software versions and options:
gphoto2         2.5.4          gcc, popt(m), no exif, no cdk, no aa, no jpeg, no readline
libgphoto2      2.5.4.1        all camlibs, gcc, ltdl, no EXIF
libgphoto2_port 0.10.0         gcc, ltdl, USB, serial without locking