How to Install libgpiod-dev in Ubuntu 18.04



Install libgpiod-dev by entering the following commands in the terminal:

sudo apt update
sudo apt install libgpiod-dev

Description:

C library for interacting with Linux GPIO device - static libraries and headers

libgpiod encapsulates the ioctl calls and data structures behind a straightforward API. This new character device interface guarantees all allocated resources are freed after closing the device file descriptor and adds several new features that are not present in the obsolete sysfs interface (like event polling, setting/reading multiple values at once or open-source and open-drain GPIOs). . This package contains the required static libraries, headers.

Homepage: https://git.kernel.org/pub/scm/libs/libgpiod/libgpiod.git

Version: 1.0-1

Section: universe/libdevel