User avatar
Posts: 1389
Joined: Thu Jun 21, 2012 10:48 am

gpiod_chip_get_fd function missing

Mon Jan 29, 2024 6:49 pm

Seemingly gpiod_chip_get_fd() is not exported by on my Raspberry Pi 4 running 64-bit PiOS. Is that correct? Is there an alternative function or is it not possible to get the file descriptor?

Posts: 2
Joined: Sun Mar 03, 2019 5:13 am

Re: gpiod_chip_get_fd function missing

Mon Feb 12, 2024 6:45 am

Version 2.x of libgpiod has a different & incompatible API than version 1.
The gpiod_chip_get_fd function appears in version 2.x, but not version 1.x.
The rpi/Debian distro package 'libgpiod' (as of today) seems to be version libgpiod v1.6.3!
I've built libgpiod v2.1 from source, and it installs as

Return to “General programming discussion”