I guess you need to install libgpio-c++ as well.
[image: logo_papillon_1.jpg]
[image: color.jpg]
Stéphan GUILLOUX Ingénieur Développement Sr
40 avenue de la libération 57160 Châtel St-Germain Tél. 03 87 65 98 80 / poste 221 stephan.guilloux@crisalid.com
LES LOGICIELS QUI VOUS DONNENT DES AILES ! - www.crisalid.com
Le mer. 3 juin 2020 à 21:56, R C cjvijf@gmail.com a écrit :
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@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
Arm-dev mailing list Arm-dev@centos.org https://lists.centos.org/mailman/listinfo/arm-dev