joan2937 / lg

Linux C libraries and Python modules for manipulating GPIO
The Unlicense
57 stars 20 forks source link

Error compiling libraries #13

Open mauricio-bv opened 2 years ago

mauricio-bv commented 2 years ago

Hi I am following lg library installation instructions, but when running "make", I get many errors as below. Am I missing something in the installation. Thanks.

image

alainguima commented 2 years ago

Did you manage to build it?

ramok commented 1 year ago

Looks like you have kernel before v5.10, when gpiochip API v2 was introduced. Actually dropping gpiochip API v1 from lgpio v0.2 it's a problem, becouse a lot of embedded systems use LTS kernel before v5.10.

I make openembedded/yocto recipe for lgpio, and forced to drop last commit before v0.2 becouse of this :(

It's possible to return support of gpiochip API v1?

joan2937 commented 1 year ago

Use v0.1 if you need API v1.

The only difference between the versions is one uses gpiochip API v1 and the other uses gpiochip API v2.

(the only functional difference is the addition of pulls which are supported in gpiochip API v2 but not in gpiochip API v1).