gphoto2  2.5.28
About: gphoto2 is a command-line frontend to libgphoto2 (a set of digital camera software applications).
  Fossies Dox: gphoto2-2.5.28.tar.bz2  ("unofficial" and yet experimental doxygen-generated source code documentation)  

gphoto2 Documentation

Some Fossies usage hints in advance:

  1. To see the Doxygen generated documentation please click on one of the items in the steelblue colored "quick index" bar above or use the side panel at the left which displays a hierarchical tree-like index structure and is adjustable in width.
  2. If you want to search for something by keyword rather than browse for it you can use the client side search facility (using Javascript and DHTML) that provides live searching, i.e. the search results are presented and adapted as you type in the Search input field at the top right.
  3. Doxygen doesn't incorporate all member files but just a definable subset (basically the main project source code files that are written in a supported language). So to search and browse all member files you may visit the Fossies gphoto2-2.5.28.tar.bz2 contents page and use the Fossies standard member browsing features (also with source code highlighting and additionally with optional code folding).


What is gphoto2?

gphoto2 is a command-line frontend to libgphoto2.

Where can I find more information?

Visit the gphoto project web site. It should always be found at least at one of the following URLs:

The man page is in the file gphoto2.1.

How do I build it?

If you have installed libgphoto2 into $HOME/.local and want to install gphoto2 to $HOME/.local as well, keep the PKG_CONFIG_PATH= and --prefix= arguments to configure. Otherwise adapt or remove them.

autoreconf -is  # if using a git clone
./configure PKG_CONFIG_PATH="$HOME/.local/lib/pkgconfig${PKG_CONFIG_PATH+":${PKG_CONFIG_PATH}"}" --prefix="$HOME/.local"
make install

Out-of-tree builds are supported. ./configure --help may help.

To build gphoto2, you will need the following (apart from the common build tools):

  • The libgphoto2 library.
  • The popt libraries (for commandline option handling), the system package may be called popt-devel or popt-dev or similar.


  • The EXIF library. (libexif-devel, libexif-dev or similar)
  • The JPEG library. (libjpeg-devel, libjpeg-dev, or jpeg-dev or similar)
  • The CDK library (for ncurses based configuration UI). (cdk-devel or similar)
  • The AALIB library (for ascii art rendering of previews). (aalib-devel or similar)

How do I test it?

make check

The test suite checks the installation and basic functionality of the gphoto2 program and the 'Directory Browse' libgphoto2 camera driver.