[Arm-dev] libgpiod was Re: sysfs and gpio

Wed Jun 3 19:56:24 UTC 2020
R C <cjvijf at gmail.com>

>> Am I missing something?
> The gpio handling was changed several kernels ago, IIRC you need you 
> use libgpio now.
> I think I built it some time ago and put it here 
> https://people.centos.org/pgreco/libgpiod/, let me know if it helps.
>>

I think I only needed to nstall these 3,  but the 2nd one gives me some 
trouble:

libgpiod-1.4.1-2.el7.armv7hl.rpm
libgpiod-devel-1.4.1-2.el7.armv7hl.rpm
libgpiod-utils-1.4.1-2.el7.armv7hl.rpm

[root at localhost libgpiod.rpms]# rpm -ivh 
libgpiod-devel-1.4.1-2.el7.armv7hl.rpm
error: Failed dependencies:
     libgpiodcxx.so.1 is needed by libgpiod-devel-1.4.1-2.el7.armv7hl


is the 2nd one, libgpiod-devel-1.4.1-2.el7.armv7hl.rpm, the one that has 
the header files in it?

When I compile something simple I found:

$ make
cc main.c -lgpiod -D CONSUMER=\"libgpiod-led\" -o libgpiod-led
main.c:1:19: fatal error: gpiod.h: No such file or directory
  #include <gpiod.h>
                    ^

I did a 'find' on the whole filesystem, I don't seem to have it anywhere.


thanks,


Ron