LIBGPHOTO2_PORT(3)

πŸ“¦
version 2.5.34 Β· 2 versions
  • 2.5.34 Β· alpine 3.24, arch rolling, centos-stream 10, debian bookworm, debian trixie, fedora 43, fedora 44, nixos 26.05, nixpkgs unstable, opensuse-leap 16.0, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking (latest)
  • 2.5.27 Β· centos-stream 9, ubuntu jammy
, in alpine 3.24, arch rolling, centos-stream 10, debian bookworm, debian trixie, fedora 43, fedora 44, nixos 26.05, nixpkgs unstable, opensuse-leap 16.0, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’– LIBGPHOTO2_PORT(3) πŸ’–

okay bestie, welcome to the gPhoto2 Reference (the man page edition ✨). this is the manual for libgphoto2_port, and it's literally the cross-platform port access library. yes, the one. buckle up πŸŽ€


🌸 NAME 🌸

libgphoto2_port β€” the cross-platform port access library. she talks to ports so you don't have to. πŸ’…


✨ SYNOPSIS ✨

#include <gphoto2/gphoto2_port.h>

that's it. that's the whole vibe. include the header and you're in. 🫢


πŸ¦‹ DESCRIPTION πŸ¦‹

so here's the lore: libgphoto2_port was written to give libgphoto2(3) a generic way of accessing ports. in this function, libgphoto2_port is the successor of the libgpio library β€” glow up complete, no cap πŸ‘‘

currently, libgphoto2_port supports serial (RS-232) and USB connections. the USB one? yeah, she requires libusb to be installed. non-negotiable, sorry bestie 😭

the autogenerated API docs will be added here in the future. so like… watch this space πŸ‘€

🌈 ENVIRONMENT VARIABLES 🌈

these are the lil settings that change how she behaves. read them, love them πŸ’œ

  • IOLIBS β€” if set, this defines the directory where the libgphoto2_port library looks for its I/O drivers (iolibs). 🧚 you only need to set this on Windows systems and on broken/test installations. everyone else can chill.
  • LD_DEBUG β€” set this to all to receive lots of debug information regarding library loading on ld based systems. prepare to be absolutely flooded, it's giving firehose πŸ’€
  • USB_DEBUG β€” if set, this defines the numeric debug level with which the libusb library will print messages. in order to get some debug output, set it to 1. start small, babe πŸ”₯

πŸ‘‘ SEE ALSO πŸ‘‘

go read these next, they're iconic:

  • libgphoto2(3)
  • The gPhoto2 Manual
  • [1] gphoto website
  • automatically generated API docs
  • [2] libusb website

πŸ’œ AUTHOR πŸ’œ

The gPhoto2 Team. ✨

Hans Ulrich Niedermann <gp@n-dimensional.de>. (man page) β€” the man page author himself, we stan 🫢


πŸ“š REFERENCES πŸ“š

  1. gphoto website http://www.gphoto.org/
  2. libusb website http://libusb.sourceforge.net/

aaaand that's a wrap, bestie! this page is straight out of The gPhoto2 Reference and it's dated 08/16/2006 β€” a certified classic from way back, still serving πŸ’…βœ¨ stay hydrated, read your man pages, and may your ports always connect on the first try. mwah! πŸŽ€πŸ’–πŸ¦‹

πŸ“¦ where this page comes from