|Version 5 (modified by 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.
- Download (HTTP): http://prdownloads.sourceforge.net/gphoto/libgphoto2-2.1.99.tar.bz2
- Download (FTP): not available by ftp
- Download MD5 sum: 3c6d9cb65661915e07491a6f9215d5a9
- Download size: 2.74 MB
- Estimated disk space required: 393 MB (includes installing the library)
- Estimated build time: 1.47 SBU (includes installing the library)
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 && make
The package does not come with a test suite. Install the library as the root user:
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.
This simple setup allows users in the 'usb' group (GID=14, see http://www.linuxfromscratch.org/blfs/view/svn/postlfs/users.html) 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
To be supplied. If you have knowledge on this topic, please contribute it.
Installed Library: /usr/lib/libgphoto2_port.so.0.5.2 libgphoto2_port.so.0 libgphoto2_port.so /usr/lib/libgphoto2_port/0.5.2/serial.so /usr/lib/libgphoto2_port/0.5.2/usb.so /usr/lib/libgphoto2.so.2.0.3 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
- The libgphoto2 library.
Last updated on Timestamp