Skip to the text
KDOS
Menu
kdos.dev KDOS from Scratch KDOS 0.2 · 4dd4a10 · 2026-11-30 Contents Index

184.1. libgphoto2-2.5.34

Drive a camera over PTP — the udev rules already grant the class

2.5.34-1 · LGPL-2.1-or-later · 2.2 SBU · 3.9 MiB, 120 files · 42_graphics, 144 of 189 · ports/core/mobile/libgphoto2

Homepage: http://www.gphoto.org/

Why it is in KDOS. The comment above it in script/phases/42_graphics/packages.d/mobile.txt:

The camera classes 70-kdos-*.rules already grant: without the library the permission opens a device nothing can talk to.

Depends on: pkgconf, libusb, libexif, libjpeg-turbo, gettext, libintl, libtool, libxml2, curl, libtiff, libgd.

Required by (6): darktable, digikam, gphoto2, gvfs, kamera, wine.

Sources: libgphoto2-2.5.34.tar.bz2 (8.4 MiB). Every step kpkg takes applies to this port.

Install: script/chroot/exec.sh bash -c 'source script/phases/42_graphics/phase.env && kpkg install libgphoto2'

build.sh:

./configure --prefix=/usr --libdir=/usr/lib --disable-static \
	--with-camlibs=all --disable-rpath \
	--enable-nls \
	--disable-lockdev --disable-ttylock \
	--with-libusb=no \
	DOXYGEN=no DOT=no
for _h in HAVE_LIBEXIF HAVE_LIBJPEG HAVE_LIBXML2 HAVE_LIBCURL HAVE_LIBGD HAVE_LIBTIFF; do
	grep -q "^#define $_h 1" config.h || { echo "libgphoto2: $_h missing" >&2; exit 1; }
done
grep -q "^#define HAVE_LIBUSB1 1" libgphoto2_port/config.h \
	|| { echo "libgphoto2: HAVE_LIBUSB1 missing" >&2; exit 1; }
make
make DESTDIR=$PKG install

Programs: gphoto2-config, gphoto2-port-config.

Libraries: libgphoto2.so, libgphoto2_port.so.

Directories: /usr/include/gphoto2, /usr/lib/libgphoto2, /usr/lib/libgphoto2_port, /usr/share/doc/libgphoto2, /usr/share/doc/libgphoto2_port, /usr/share/libgphoto2, /usr/share/libgphoto2_port, /usr/share/licenses/libgphoto2.