node-libgpiod icon indicating copy to clipboard operation
node-libgpiod copied to clipboard

Cannot install on ubuntu 25.04 on RPi 4B

Open hobbit44 opened this issue 4 months ago • 2 comments

One thing is i couldnt install libgpiod2 as it complained about a missing installation candidate. I had to install libgpiod3.

  CXX(target) Release/obj.target/node-libgpiod/src/main.o
│ In file included from ../src/main.cc:1:
│ ../src/bulk.hh:13:3: error: ‘gpiod_line_bulk’ does not name a type; did you mean ‘gpiod_line_bias’?
│    13 |   gpiod_line_bulk *getNativeBulk();
│       |   ^~~~~~~~~~~~~~~
│       |   gpiod_line_bias
│ ../src/bulk.hh:22:3: error: ‘gpiod_line_bulk’ does not name a type; did you mean ‘gpiod_line_bias’?
│    22 |   gpiod_line_bulk bulk;
│       |   ^~~~~~~~~~~~~~~
│       |   gpiod_line_bias
│ In file included from ../src/main.cc:3:
│ ../src/line.hh:13:3: error: ‘gpiod_line’ does not name a type
│    13 |   gpiod_line *getNativeLine();
│       |   ^~~~~~~~~~
│ ../src/line.hh:20:3: error: ‘gpiod_line’ does not name a type
│    20 |   gpiod_line *line;
│       |   ^~~~~~~~~~
│ In file included from ../../../../[email protected]/node_modules/nan/nan.h:62,
│                  from ../src/bulk.hh:5:
│ /home/matt/.cache/node-gyp/22.18.0/include/node/node.h:1228:7: warning: cast between incompatible function types from ‘void (*)(Nan::ADDON_REGISTER_FUNCTION_ARGS_TYPE)’ {aka ‘void (*)(v8::Local<v8::Object>)’} to ‘node::addon_regist…
│  1228 |       (node::addon_register_func) (regfunc),                          \
│       |       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
│ /home/matt/.cache/node-gyp/22.18.0/include/node/node.h:1262:3: note: in expansion of macro ‘NODE_MODULE_X’
│  1262 |   NODE_MODULE_X(modname, regfunc, NULL, 0)  // NOLINT (readability/null_usage)
│       |   ^~~~~~~~~~~~~
│ ../src/main.cc:131:1: note: in expansion of macro ‘NODE_MODULE’
│   131 | NODE_MODULE(NativeExtension, InitAll);
│       | ^~~~~~~~~~~
│ make: *** [node-libgpiod.target.mk:114: Release/obj.target/node-libgpiod/src/main.o] Error 1

hobbit44 avatar Aug 23 '25 21:08 hobbit44

Hello @hobbit44

Can you check if gpiod version on this ubuntu release is 1.6 or 2.0?

the 2.0 version is on our roadmap yet to be fully supported.

sombriks avatar Aug 24 '25 11:08 sombriks

On Debian Trixie

> apt info libgpiod3
Package: libgpiod3
Version: 2.2.1-2
Priority: optional
Section: libs
Source: libgpiod
Maintainer: Gavin Lai (賴建宇) <[email protected]>
Installed-Size: 337 kB
Depends: libc6 (>= 2.33), libgcc-s1 (>= 3.3.1), libstdc++6 (>= 13.1)
Breaks: libgpiod2 (<< 2.2.1-2), libgpiod2t64 (<< 2.2.1-2)
Replaces: libgpiod2, libgpiod2t64

sonnyp avatar Sep 18 '25 07:09 sonnyp