LIBGPHOTO2\_PORT(3) The gPhoto2 Reference (the man LIBGPHOTO2\_PORT(3)

# [NAME](#NAME)

libgphoto2\_port - cross-platform port access library

# [SYNOPSIS](#SYNOPSIS)

```
#include <gphoto2/gphoto2_port.h>
```

# [DESCRIPTION](#DESCRIPTION)

The libgphoto2\_port library was written to provide [libgphoto2(3)](/man/os/libgphoto2/libgphoto2.3) with a generic way of accessing ports. In this function, libgphoto2\_port is the successor of the libgpio library.

Currently, libgphoto2\_port supports serial (RS-232) and USB connections, the latter requiring libusb to be installed.

The autogenerated API docs will be added here in the future.

# [ENVIRONMENT VARIABLES](#ENVIRONMENT_VARIABLES)

[**IOLIBS**](#IOLIBS)

If set, 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 broken/test installations.

[**LD\_DEBUG**](#LD_DEBUG)

Set this to *all* to receive lots of debug information regarding library loading on **ld** based systems.

[**USB\_DEBUG**](#USB_DEBUG)

If set, defines the numeric debug level with which the libusb library will print messages. In order to get some debug output, set it to *1*.

# [SEE ALSO](#SEE_ALSO)

[libgphoto2(3)](/man/os/libgphoto2/libgphoto2.3), The gPhoto2 Manual, \[1]*gphoto website*, automatically generated API docs, \[2]*libusb website*

# [AUTHOR](#AUTHOR)

The gPhoto2 Team.  
Hans Ulrich Niedermann &lt;gp@n-dimensional.de&gt;. (man page)

# [REFERENCES](#REFERENCES)

1. gphoto website

http://www.gphoto.org/

2. libusb website

http://libusb.sourceforge.net/

08/16/2006

---

Document: libgphoto2_port(3) from libgphoto2 2.5.34-r6 (Chainguard OS)
Source: https://github.com/gphoto/libgphoto2
