-
-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Required version of libgpiod? #25
Comments
Hi @splitice ! in this repo there is main-1.x branch which is supposed to work with libgpiod 1.x series and main-2.x branch for the new version. the 2.x series will introduce breaking changes because libgpiod itself changed, and we'll try to mirror the original api as much as possible. please check which libgpiod version your system have; if your kernel is updated it is most likely you will need to wait for a 2.x release |
It might be best to use ifdefs to make a dual compatible version? From a project maintenance point of view its a metric PITA for our developers with a different version of libgpiod to the production system during development. And I've checked debian doesnt have a stable release with libgpiod 2.x yet. Even ifdef on |
I got to say ubuntus versioning on libgpiod ("2") is very confusing. I'm on 20.04 (LTS) for development.
I thought you were right initially but instead it looks like the version is 1.4, perhaps 1.4 is too old? Those defines were added in 2019 and are not in v1.4.0. I would confirm this against the source repository at kernel.org, however I'm getting 403's currently. I confirmed it however against a github mirror. This means that we perhaps need either to ifdef these exposed defines, or raise the documented supported version in the README |
Can confirm v1.6.3 (package from ubuntu 22.04) contains the required definitions. |
just to be clear, the definitions are missing from index.d.ts in 1.x branch, is that correct? |
Huh? No. You either need some ifdefs to support v1.4, or to add a min requirement in the README for v1.5. |
Hi @splitice ! The first attempt is indeed to add a compile flag so i can proper setup it in the future. If possible, please check if it works again with older libgpiod (prior to 1.5) and let me know! |
This is on debian bookworm |
Hey @splitice , thanks for the feedback, looks like it's time to debian virtual machine then! i'll figure out what's the issue. |
Hello @splitice , i moved the enums definition to javascript side of the code; i hope this change makes transparent for the node binding if it's being built against 1.4, 1.5 or 1.6 libgpiod version. when you have a chance please run some tests using the 0.4.5 version from npm, or even checking test cases against gpio-sim setup (not perfect yet, but try it out if your environment sits in the sweet spot of having the gpio-sim kernel module and libgpiod version prior to 2.0). |
Potential min libgpiod version or ifdefs required.
Havent yet dug into libgpiod to work out the required version.
The text was updated successfully, but these errors were encountered: