rcpy for beaglebone blue


I’m just getting into beaglebone and working with linux in general. I have the robotics controller library loaded and up to date. I would like to use rcpy. The first step on the rcpy documentation is to install libgpiod. I can git that fine, but when I go to do the autogen step, it gives me an error saying “libgpiod needs linux headers version >= v5.5.0”. The kernel I have is 4.19 from the most recent flashed image. Is there anyway around this?

Thanks in advance

Try installing libgpiod from the debian package repository - with luck you might find an older version which supports the available kernel version.
Run “apt search libgpiod” and see if the packages are there; then install them as usual (“sudo apt install libgpiod libgpiod-dev” or something similar). For compiling other source code against it, you’ll also need the development package which ends with “-dev”.

Who needs luck? <G>

debian@beaglebone:~$ apt search libgpiod
Sorting... Done
Full Text Search... Done
libgpiod-dev/unknown,now 1.4.1-2rcnee3~buster+20190906 armhf [installed]
  C library for interacting with Linux GPIO device - static libraries and

libgpiod-doc/unknown 1.4.1-2rcnee3~buster+20190906 all
  C library for interacting with Linux GPIO device - library documentation

libgpiod2/unknown,now 1.4.1-2rcnee3~buster+20190906 armhf
  C library for interacting with Linux GPIO device - shared libraries

libgpiod2-dbgsym/unknown 1.4.1-2rcnee3~buster+20190906 armhf
  debug symbols for libgpiod2

python3-libgpiod/unknown,now 1.4.1-2rcnee3~buster+20190906 armhf
  Python bindings for libgpiod (Python 3)

python3-libgpiod-dbgsym/unknown 1.4.1-2rcnee3~buster+20190906 armhf
  debug symbols for python3-libgpiod

debian@beaglebone:~$ uname -a
Linux beaglebone 4.19.94-ti-r48 #1buster SMP PREEMPT Wed Aug 19 17:38:55
UTC 2020 armv7l GNU/Linux

  Strange, I don't recall explicitly installing those packages; they may
be part of the standard Beagle images.

Correct libgpiod is installed by default.. There are a few projects
that utilize that library in the standard image..