LIBGPHOTO2_PORT(3)
π 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 thelibgphoto2_portlibrary 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 toallto 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 thelibusblibrary will print messages. in order to get some debug output, set it to1. 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 π
- gphoto website http://www.gphoto.org/
- 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
- alpine 3.24: libgphoto2-doc 2.5.33-r1 Β· LGPL-2.1-or-later
- arch rolling: libgphoto2 2.5.34-1 Β· LGPL-2.1-or-later
- centos-stream 10: libgphoto2-devel 2.5.30-10.el10 Β· GPL-2.0-only AND GPL-2.0-or-later AND LGPL-2.0-only AND LGPL-2.0-or-later AND LGPL-2.1-or-later AND LGPL-3.0-or-later AND BSD-3-Clause AND IJG-short AND (MIT OR Unlicense)
- debian bookworm: libgphoto2-dev 2.5.30-1 Β· LGPL-2.0-or-later
- debian trixie: libgphoto2-dev 2.5.31-4 Β· LGPL-2.0-or-later
- fedora 43: libgphoto2-devel 2.5.31-4.fc43 Β· GPL-2.0-only AND GPL-2.0-or-later AND LGPL-2.0-only AND LGPL-2.0-or-later AND LGPL-2.1-or-later AND LGPL-3.0-or-later AND BSD-3-Clause AND IJG-short AND (MIT OR Unlicense)
- fedora 43: libgphoto2-devel 2.5.31-4.fc43 Β· GPL-2.0-only AND GPL-2.0-or-later AND LGPL-2.0-only AND LGPL-2.0-or-later AND LGPL-2.1-or-later AND LGPL-3.0-or-later AND BSD-3-Clause AND IJG-short AND (MIT OR Unlicense)
- fedora 43: libgphoto2-devel 2.5.33-1.fc43 Β· GPL-2.0-only AND GPL-2.0-or-later AND LGPL-2.0-only AND LGPL-2.0-or-later AND LGPL-2.1-or-later AND LGPL-3.0-or-later AND BSD-3-Clause AND IJG-short AND (MIT OR Unlicense)
- fedora 43: libgphoto2-devel 2.5.33-1.fc43 Β· GPL-2.0-only AND GPL-2.0-or-later AND LGPL-2.0-only AND LGPL-2.0-or-later AND LGPL-2.1-or-later AND LGPL-3.0-or-later AND BSD-3-Clause AND IJG-short AND (MIT OR Unlicense)
- fedora 44: libgphoto2-devel 2.5.33-2.fc44 Β· GPL-2.0-only AND GPL-2.0-or-later AND LGPL-2.0-only AND LGPL-2.0-or-later AND LGPL-2.1-or-later AND LGPL-3.0-or-later AND BSD-3-Clause AND IJG-short AND (MIT OR Unlicense)
- fedora 44: libgphoto2-devel 2.5.33-2.fc44 Β· GPL-2.0-only AND GPL-2.0-or-later AND LGPL-2.0-only AND LGPL-2.0-or-later AND LGPL-2.1-or-later AND LGPL-3.0-or-later AND BSD-3-Clause AND IJG-short AND (MIT OR Unlicense)
- nixos 26.05: libgphoto2 2.5.34
- nixpkgs unstable: libgphoto2 2.5.34
- opensuse-leap 16.0: libgphoto2-doc 2.5.31-160000.2.2 Β· LGPL-2.1-or-later
- ubuntu noble: libgphoto2-dev 2.5.31-2.1build2 Β· LGPL-2.0-or-later
- ubuntu noble: libgphoto2-dev 2.5.31-2.1ubuntu1.1 Β· LGPL-2.0-or-later
- ubuntu questing: libgphoto2-dev 2.5.31-4build1
- ubuntu questing: libgphoto2-dev 2.5.31-4ubuntu1
- ubuntu resolute: libgphoto2-dev 2.5.33-1ubuntu1 Β· LGPL-2.0-or-later
- ubuntu resolute: libgphoto2-dev 2.5.33-1ubuntu1.1 Β· LGPL-2.0-or-later
- ubuntu stonking: libgphoto2-dev 2.5.33-1ubuntu2 Β· LGPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms