Version 5 (modified by trac, 17 years ago) ( diff )



Introduction to Libgphoto2

Libgphoto2 is a library of routines to access Digital Cameras. It is used by GUI applications and CLI applications such as GPhoto2.

Package Information

Libgphoto2 Dependencies



libusb-0.1.10a (for USB cameras only)




Note: This is not necessarily an exhaustive list.

Installation of Libgphoto2

Build the Libghoto2 library with the following:

   	./configure --prefix=/usr &&

The package does not come with a test suite. Install the library as the root user:

   	make install

Command Explanations

The installation is a straightforward CMMI (Configure, make, make install) - no explanaition is needed.


The main obstacle to running applications, such as GPhoto2, that use libgphoto2 is the configuration of the hotplug/udev systems to allow users to access the camera with GPhoto2. We are still learning how to do this, and will document our discoveries here. There is some documentation supplied with the package that should also be consulted and web-based manuals.

USB Cameras

This simple setup allows users in the 'usb' group (GID=14, see to run GPhoto2.

It is important that the usbfs kernel pseudo filesystem is mounted if a USB camera is to be used. One way of doing this is to have the following line in /etc/fstab:

      usbfs          /proc/bus/usb usbfs devmode=0660,devgid=14 0 0

alternatively this command can be issued as root, either by hand or as part of a script:

      mount -o devmode=0660,devgid=14 -t usbfs usbfs /proc/bus/usb

Other Cameras

To be supplied. If you have knowledge on this topic, please contribute it.


Installed Programs:
Installed Library: /usr/lib/ /usr/lib/libgphoto2_port/0.5.2/ /usr/lib/libgphoto2_port/0.5.2/ /usr/lib/ plus numerous camera device libraries in the /usr/lib/libgphoto2/2.1.99 directory
Installed Directories: /usr/lib/libgphoto2_port/0.5.2 /usr/lib/libgphoto2/2.1.99 /usr/include/libgphoto2

Short Descriptions
The libgphoto2 library.

Last updated on Timestamp

Note: See TracWiki for help on using the wiki.