Weiter zum Inhalt
  • Home
  • Aktuell
  • Tags
  • 0 Ungelesen 0
  • Kategorien
  • Unreplied
  • Beliebt
  • GitHub
  • Docu
  • Hilfe
Skins
  • Hell
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dunkel
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Standard: (Kein Skin)
  • Kein Skin
Einklappen
ioBroker Logo

Community Forum

donate donate
  1. ioBroker Community Home
  2. Deutsch
  3. ioBroker Allgemein
  4. RPI-Monitor und GPIO rpi2 v2.3.1

NEWS

  • Monatsrückblick Januar/Februar 2026 ist online!
    BluefoxB
    Bluefox
    18
    1
    705

  • Jahresrückblick 2025 – unser neuer Blogbeitrag ist online! ✨
    BluefoxB
    Bluefox
    18
    1
    5.8k

  • Neuer Blogbeitrag: Monatsrückblick - Dezember 2025 🎄
    BluefoxB
    Bluefox
    13
    1
    1.5k

RPI-Monitor und GPIO rpi2 v2.3.1

Geplant Angeheftet Gesperrt Verschoben ioBroker Allgemein
64 Beiträge 7 Kommentatoren 2.4k Aufrufe 6 Beobachtet
  • Älteste zuerst
  • Neuste zuerst
  • Meiste Stimmen
Antworten
  • In einem neuen Thema antworten
Anmelden zum Antworten
Dieses Thema wurde gelöscht. Nur Nutzer mit entsprechenden Rechten können es sehen.
  • S Offline
    S Offline
    searcher57
    schrieb am zuletzt editiert von
    #55

    Ich mach es nochmal:

    sudo apt update
    apt policy libgpio*
    OK:1 http://deb.debian.org/debian trixie InRelease
    OK:2 http://deb.debian.org/debian trixie-updates InRelease
    OK:3 http://deb.debian.org/debian-security trixie-security InRelease
    OK:4 http://archive.raspberrypi.com/debian trixie InRelease
    OK:5 https://deb.nodesource.com/node_22.x nodistro InRelease
    Alle Pakete sind aktuell.
    libgpiod-dev:
      Installiert:           2.2.1-2+deb13u1
      Installationskandidat: 2.2.1-2+deb13u1
      Versionstabelle:
     *** 2.2.1-2+deb13u1 500
            500 http://deb.debian.org/debian trixie/main arm64 Packages
            100 /var/lib/dpkg/status
    libgpiod-doc:
      Installiert:           (keine)
      Installationskandidat: 2.2.1-2+deb13u1
      Versionstabelle:
         2.2.1-2+deb13u1 500
            500 http://deb.debian.org/debian trixie/main arm64 Packages
            500 http://deb.debian.org/debian trixie/main armhf Packages
    libgpiolib0:
      Installiert:           20251120-1
      Installationskandidat: 20251120-1
    lines 1-17...skipping...
    libgpiod-dev:
      Installiert:           2.2.1-2+deb13u1
      Installationskandidat: 2.2.1-2+deb13u1
      Versionstabelle:
     *** 2.2.1-2+deb13u1 500
            500 http://deb.debian.org/debian trixie/main arm64 Packages
            100 /var/lib/dpkg/status
    libgpiod-doc:
      Installiert:           (keine)
      Installationskandidat: 2.2.1-2+deb13u1
      Versionstabelle:
         2.2.1-2+deb13u1 500
            500 http://deb.debian.org/debian trixie/main arm64 Packages
            500 http://deb.debian.org/debian trixie/main armhf Packages
    libgpiolib0:
      Installiert:           20251120-1
      Installationskandidat: 20251120-1
      Versionstabelle:
     *** 20251120-1 500
            500 http://archive.raspberrypi.com/debian trixie/main arm64 Packages
            100 /var/lib/dpkg/status
    libgpiolib-dev:
      Installiert:           (keine)
      Installationskandidat: 20251120-1
      Versionstabelle:
         20251120-1 500
            500 http://archive.raspberrypi.com/debian trixie/main arm64 Packages
    libgpiolib0-dbgsym:
      Installiert:           (keine)
      Installationskandidat: 20251120-1
      Versionstabelle:
         20251120-1 500
            500 http://archive.raspberrypi.com/debian trixie/main arm64 Packages
    libgpiod3:
      Installiert:           2.2.1-2+deb13u1
      Installationskandidat: 2.2.1-2+deb13u1
      Versionstabelle:
     *** 2.2.1-2+deb13u1 500
            500 http://deb.debian.org/debian trixie/main arm64 Packages
            100 /var/lib/dpkg/status
    ~
    ~
    ~
    ~
    ~
    ~
    ~
    ~
    lines 1-40/40 (END)
    
    
    1 Antwort Letzte Antwort
    0
    • S Offline
      S Offline
      searcher57
      schrieb am zuletzt editiert von
      #56

      Nach Installation kommt das:

      $ iobroker add rpi2 --host Raspi48GB
      
      NPM version: 10.9.4
      
      Installing iobroker.rpi2@2.4.0... (System call)
      
      npm error code 1npm error path /opt/iobroker/node_modules/opengpionpm error command failednpm error command sh -c node-gyp rebuildnpm error make: Verzeichnis „/opt/iobroker/node_modules/opengpio/build“ wird betretennpm error CXX(target) Release/obj.target/opengpio/cpp/opengpio.onpm error make: Verzeichnis „/opt/iobroker/node_modules/opengpio/build“ wird verlassennpm error ../cpp/opengpio.cpp: In function ‘Napi::Array GpioInput(const Napi::CallbackInfo&)’:npm error ../cpp/opengpio.cpp:14:17: error: expected primary-expression before ‘line’npm error 14 | gpiod::line line = chip.get_line(lineNumber);npm error | ^~~~npm error ../cpp/opengpio.cpp:19:9: error: ‘line’ was not declared in this scope; did you mean ‘gpiod::line’?npm error 19 | line.request({resourceName, gpiod::line_request::DIRECTION_INPUT, 0});npm error | ^~~~npm error | gpiod::linenpm error In file included from /usr/include/gpiodcxx/chip.hpp:21,npm error from /usr/include/gpiod.hpp:27,npm error from ../cpp/opengpio.cpp:3:npm error /usr/include/gpiodcxx/line.hpp:24:11: note: ‘gpiod::line’ declared herenpm error 24 | namespace line {npm error | ^~~~npm error ../cpp/opengpio.cpp:19:58: error: ‘DIRECTION_INPUT’ is not a member of ‘gpiod::line_request’npm error 19 | line.request({resourceName, gpiod::line_request::DIRECTION_INPUT, 0});npm error | ^~~~~~~~~~~~~~~npm error ../cpp/opengpio.cpp:28:62: error: ‘line’ was not declared in this scope; did you mean ‘gpiod::line’?npm error 28 | Napi::Function getter = Napi::Function::New(info.Env(), [line](const Napi::CallbackInfo &info)npm error | ^~~~npm error | gpiod::linenpm error /usr/include/gpiodcxx/line.hpp:24:11: note: ‘gpiod::line’ declared herenpm error 24 | namespace line {npm error | ^~~~npm error ../cpp/opengpio.cpp: In lambda function:npm error ../cpp/opengpio.cpp:30:22: error: ‘line’ is not capturednpm error 30 | bool value = line.get_value();npm error | ^~~~npm error ../cpp/opengpio.cpp:28:66: note: the lambda has no capture-defaultnpm error 28 | Napi::Function getter = Napi::Function::New(info.Env(), [line](const Napi::CallbackInfo &info)npm error | ^npm error ../cpp/opengpio.cpp:28:62: note: ‘<typeprefixerror>line’ declared herenpm error 28 | Napi::Function getter = Napi::Function::New(info.Env(), [line](const Napi::CallbackInfo &info)npm error | ^~~~npm error ../cpp/opengpio.cpp: In lambda function:npm error ../cpp/opengpio.cpp:34:52: error: ‘line’ is not capturednpm error 34 | { line.release(); });npm error | ^~~~npm error ../cpp/opengpio.cpp:33:67: note: the lambda has no capture-defaultnpm error 33 | Napi::Function cleanup = Napi::Function::New(info.Env(), [line](const Napi::CallbackInfo &info)npm error | ^npm error ../cpp/opengpio.cpp:28:62: note: ‘<typeprefixerror>line’ declared herenpm error 28 | Napi::Function getter = Napi::Function::New(info.Env(), [line](const Napi::CallbackInfo &info)npm error | ^~~~npm error ../cpp/opengpio.cpp: In function ‘Napi::Array GpioOutput(const Napi::CallbackInfo&)’:npm error ../cpp/opengpio.cpp:49:17: error: expected primary-expression before ‘line’npm error 49 | gpiod::line line = chip.get_line(lineNumber);npm error | ^~~~npm error ../cpp/opengpio.cpp:54:9: error: ‘line’ was not declared in this scope; did you mean ‘gpiod::line’?npm error 54 | line.request({resourceName, gpiod::line_request::DIRECTION_OUTPUT, 0}, 1);npm error | ^~~~npm error | gpiod::linenpm error /usr/include/gpiodcxx/line.hpp:24:11: note: ‘gpiod::line’ declared herenpm error 24 | namespace line {npm error | ^~~~npm error ../cpp/opengpio.cpp:54:58: error: ‘DIRECTION_OUTPUT’ is not a member of ‘gpiod::line_request’npm error 54 | line.request({resourceName, gpiod::line_request::DIRECTION_OUTPUT, 0}, 1);npm error | ^~~~~~~~~~~~~~~~npm error ../cpp/opengpio.cpp:63:62: error: ‘line’ was not declared in this scope; did you mean ‘gpiod::line’?npm error 63 | Napi::Function setter = Napi::Function::New(info.Env(), [line](const Napi::CallbackInfo &info)npm error | ^~~~npm error | gpiod::linenpm error /usr/include/gpiodcxx/line.hpp:24:11: note: ‘gpiod::line’ declared herenpm error 24 | namespace line {npm error | ^~~~npm error ../cpp/opengpio.cpp: In lambda function:npm error ../cpp/opengpio.cpp:66:9: error: ‘line’ is not capturednpm error 66 | line.set_value(value); });npm error | ^~~~npm error ../cpp/opengpio.cpp:63:66: note: the lambda has no capture-defaultnpm error 63 | Napi::Function setter = Napi::Function::New(info.Env(), [line](const Napi::CallbackInfo &info)npm error | ^npm error ../cpp/opengpio.cpp:63:62: note: ‘<typeprefixerror>line’ declared herenpm error 63 | Napi::Function setter = Napi::Function::New(info.Env(), [line](const Napi::CallbackInfo &info)npm error | ^~~~npm error ../cpp/opengpio.cpp: In lambda function:npm error ../cpp/opengpio.cpp:69:52: error: ‘line’ is not capturednpm error 69 | { line.release(); });npm error | ^~~~npm error ../cpp/opengpio.cpp:68:67: note: the lambda has no capture-defaultnpm error 68 | Napi::Function cleanup = Napi::Function::New(info.Env(), [line](const Napi::CallbackInfo &info)npm error | ^npm error ../cpp/opengpio.cpp:63:62: note: ‘<typeprefixerror>line’ declared herenpm error 63 | Napi::Function setter = Napi::Function::New(info.Env(), [line](const Napi::CallbackInfo &info)npm error | ^~~~npm error ../cpp/opengpio.cpp: At global scope:npm error ../cpp/opengpio.cpp:81:12: error: ‘line’ in namespace ‘gpiod’ does not name a typenpm error 81 | gpiod::line line;npm error | ^~~~npm error /usr/include/gpiodcxx/line.hpp:24:11: note: ‘gpiod::line’ declared herenpm error 24 | namespace line {npm error | ^~~~npm error ../cpp/opengpio.cpp: In function ‘Napi::Array GpioWatch(const Napi::CallbackInfo&)’:npm error ../cpp/opengpio.cpp:92:17: error: expected primary-expression before ‘line’npm error 92 | gpiod::line line = chip.get_line(lineNumber);npm error | ^~~~npm error ../cpp/opengpio.cpp:100:9: error: ‘line’ was not declared in this scope; did you mean ‘gpiod::line’?npm error 100 | line.request({resourceName, gpiod::line_request::EVENT_BOTH_EDGES, 0}, 0);npm error | ^~~~npm error | gpiod::linenpm error /usr/include/gpiodcxx/line.hpp:24:11: note: ‘gpiod::line’ declared herenpm error 24 | namespace line {npm error | ^~~~npm error ../cpp/opengpio.cpp:100:58: error: ‘EVENT_BOTH_EDGES’ is not a member of ‘gpiod::line_request’npm error 100 | line.request({resourceName, gpiod::line_request::EVENT_BOTH_EDGES, 0}, 0);npm error | ^~~~~~~~~~~~~~~~npm error ../cpp/opengpio.cpp:109:62: error: ‘line’ was not declared in this scope; did you mean ‘gpiod::line’?npm error 109 | Napi::Function getter = Napi::Function::New(info.Env(), [line](const Napi::CallbackInfo &info)npm error | ^~~~npm error | gpiod::linenpm error /usr/include/gpiodcxx/line.hpp:24:11: note: ‘gpiod::line’ declared herenpm error 24 | namespace line {npm error | ^~~~npm error ../cpp/opengpio.cpp: In lambda function:npm error ../cpp/opengpio.cpp:111:22: error: ‘line’ is not capturednpm error 111 | bool value = line.get_value();npm error | ^~~~npm error ../cpp/opengpio.cpp:109:66: note: the lambda has no capture-defaultnpm error 109 | Napi::Function getter = Napi::Function::New(info.Env(), [line](const Napi::CallbackInfo &info)npm error | ^npm error ../cpp/opengpio.cpp:109:62: note: ‘<typeprefixerror>line’ declared herenpm error 109 | Napi::Function getter = Napi::Function::New(info.Env(), [line](const Napi::CallbackInfo &info)npm error | ^~~~npm error ../cpp/opengpio.cpp: In function ‘Napi::Array GpioWatch(const Napi::CallbackInfo&)’:npm error ../cpp/opengpio.cpp:115:11: error: ‘struct WatchContext’ has no member named ‘line’npm error 115 | data->line = line;npm error | ^~~~npm error ../cpp/opengpio.cpp: In lambda function:npm error ../cpp/opengpio.cpp:127:25: error: expected primary-expression before ‘line’npm error 127 | gpiod::line line = data->line;npm error | ^~~~npm error ../cpp/opengpio.cpp:131:33: error: ‘line’ is not capturednpm error 131 | bool hasEvent = line.event_wait(chrono::milliseconds(1));npm error | ^~~~npm error ../cpp/opengpio.cpp:124:10: note: the lambda has no capture-defaultnpm error 124 | [](uv_work_t *req)npm error | ^npm error ../cpp/opengpio.cpp:109:62: note: ‘<typeprefixerror>line’ declared herenpm error 109 | Napi::Function getter = Napi::Function::New(info.Env(), [line](const Napi::CallbackInfo &info)npm error | ^~~~npm error ../cpp/opengpio.cpp:134:28: error: ‘line_event’ is not a member of ‘gpiod’; did you mean ‘info_event’?npm error 134 | gpiod::line_event event = line.event_read();npm error | ^~~~~~~~~~npm error | info_eventnpm error ../cpp/opengpio.cpp:135:34: error: ‘event’ was not declared in this scope; did you mean ‘servent’?npm error 135 | bool value = event.event_type == gpiod::line_event::RISING_EDGE ? true : false;npm error | ^~~~~npm error | serventnpm error ../cpp/opengpio.cpp:135:61: error: ‘gpiod::line_event’ has not been declarednpm error 135 | bool value = event.event_type == gpiod::line_event::RISING_EDGE ? true : false;npm error | ^~~~~~~~~~npm error ../cpp/opengpio.cpp: In lambda function:npm error ../cpp/opengpio.cpp:147:19: error: ‘struct WatchContext’ has no member named ‘line’npm error 147 | data->line.release();npm error | ^~~~npm error ../cpp/opengpio.cpp: At global scope:npm error ../cpp/opengpio.cpp:168:12: error: ‘line’ in namespace ‘gpiod’ does not name a typenpm error 168 | gpiod::line line;npm error | ^~~~npm error /usr/include/gpiodcxx/line.hpp:24:11: note: ‘gpiod::line’ declared herenpm error 24 | namespace line {npm error | ^~~~npm error ../cpp/opengpio.cpp: In function ‘Napi::Array GpioPwm(const Napi::CallbackInfo&)’:npm error ../cpp/opengpio.cpp:196:17: error: expected primary-expression before ‘line’npm error 196 | gpiod::line line = chip.get_line(lineNumber);npm error | ^~~~npm error ../cpp/opengpio.cpp:201:9: error: ‘line’ was not declared in this scope; did you mean ‘gpiod::line’?npm error 201 | line.request({resourceName, gpiod::line_request::DIRECTION_OUTPUT, 0}, 1);npm error | ^~~~npm error | gpiod::linenpm error /usr/include/gpiodcxx/line.hpp:24:11: note: ‘gpiod::line’ declared herenpm error 24 | namespace line {npm error | ^~~~npm error ../cpp/opengpio.cpp:201:58: error: ‘DIRECTION_OUTPUT’ is not a member of ‘gpiod::line_request’npm error 201 | line.request({resourceName, gpiod::line_request::DIRECTION_OUTPUT, 0}, 1);npm error | ^~~~~~~~~~~~~~~~npm error ../cpp/opengpio.cpp:213:11: error: ‘struct PwmContext’ has no member named ‘line’npm error 213 | data->line = line;npm error | ^~~~npm error ../cpp/opengpio.cpp:213:18: error: ‘line’ was not declared in this scope; did you mean ‘gpiod::line’?npm error 213 | data->line = line;npm error | ^~~~npm error | gpiod::linenpm error /usr/include/gpiodcxx/line.hpp:24:11: note: ‘gpiod::line’ declared herenpm error 24 | namespace line {npm error | ^~~~npm error ../cpp/opengpio.cpp: In lambda function:npm error ../cpp/opengpio.cpp:224:25: error: expected primary-expression before ‘line’npm error 224 | gpiod::line line = data->line;npm error | ^~~~npm error ../cpp/opengpio.cpp:264:17: error: ‘line’ is not capturednpm error 264 | line.set_value(true);npm error | ^~~~npm error ../cpp/opengpio.cpp:221:10: note: the lambda has no capture-defaultnpm error 221 | [](uv_work_t *req)npm error | ^npm error ../cpp/opengpio.cpp:213:18: note: ‘<typeprefixerror>line’ declared herenpm error 213 | data->line = line;npm error | ^~~~npm error ../cpp/opengpio.cpp:278:17: error: ‘line’ is not capturednpm error 278 | line.set_value(false);npm error | ^~~~npm error ../cpp/opengpio.cpp:221:10: note: the lambda has no capture-defaultnpm error 221 | [](uv_work_t *req)npm error | ^npm error ../cpp/opengpio.cpp:213:18: note: ‘<typeprefixerror>line’ declared herenpm error 213 | data->line = line;npm error | ^~~~npm error ../cpp/opengpio.cpp: In lambda function:npm error ../cpp/opengpio.cpp:327:25: error: expected primary-expression before ‘line’npm error 327 | gpiod::line line = data->line;npm error | ^~~~npm error ../cpp/opengpio.cpp:328:13: error: ‘line’ is not capturednpm error 328 | line.release();npm error | ^~~~npm error ../cpp/opengpio.cpp:324:10: note: the lambda has no capture-defaultnpm error 324 | [](uv_work_t *req, int status)npm error | ^npm error ../cpp/opengpio.cpp:213:18: note: ‘<typeprefixerror>line’ declared herenpm error 213 | data->line = line;npm error | ^~~~npm error make: *** [opengpio.target.mk:108: Release/obj.target/opengpio/cpp/opengpio.o] Fehler 1npm error gyp ERR! build error npm error gyp ERR! stack Error: `make` failed with exit code: 2npm error gyp ERR! stack at ChildProcess.<anonymous> (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:219:23)npm error gyp ERR! System Linux 6.12.62+rpt-rpi-v8npm error gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"npm error gyp ERR! cwd /opt/iobroker/node_modules/opengpionpm error gyp ERR! node -v v22.22.0npm error gyp ERR! node-gyp -v v11.2.0npm error gyp ERR! not oknpm error A complete log of this run can be found in: /home/iobroker/.npm/_logs/2026-02-09T13_10_48_843Z-debug-0.log
      
      host.Raspi48GB Cannot install iobroker.rpi2@2.4.0: 1
      
      ERROR: Process exited with code 25
      
      1 Antwort Letzte Antwort
      0
      • S Offline
        S Offline
        searcher57
        schrieb am zuletzt editiert von
        #57
        $ iobroker add rpi2 --host Raspi48GB
        
        NPM version: 10.9.4
        
        Installing iobroker.rpi2@2.4.0... (System call)
        
        npm error code 1npm error path /opt/iobroker/node_modules/opengpionpm error command failednpm error command sh -c node-gyp rebuildnpm error make: Verzeichnis „/opt/iobroker/node_modules/opengpio/build“ wird betretennpm error CXX(target) Release/obj.target/opengpio/cpp/opengpio.onpm error make: Verzeichnis „/opt/iobroker/node_modules/opengpio/build“ wird verlassennpm error ../cpp/opengpio.cpp: In function ‘Napi::Array GpioInput(const Napi::CallbackInfo&)’:npm error ../cpp/opengpio.cpp:14:17: error: expected primary-expression before ‘line’npm error 14 | gpiod::line line = chip.get_line(lineNumber);npm error | ^~~~npm error ../cpp/opengpio.cpp:19:9: error: ‘line’ was not declared in this scope; did you mean ‘gpiod::line’?npm error 19 | line.request({resourceName, gpiod::line_request::DIRECTION_INPUT, 0});npm error | ^~~~npm error | gpiod::linenpm error In file included from /usr/include/gpiodcxx/chip.hpp:21,npm error from /usr/include/gpiod.hpp:27,npm error from ../cpp/opengpio.cpp:3:npm error /usr/include/gpiodcxx/line.hpp:24:11: note: ‘gpiod::line’ declared herenpm error 24 | namespace line {npm error | ^~~~npm error ../cpp/opengpio.cpp:19:58: error: ‘DIRECTION_INPUT’ is not a member of ‘gpiod::line_request’npm error 19 | line.request({resourceName, gpiod::line_request::DIRECTION_INPUT, 0});npm error | ^~~~~~~~~~~~~~~npm error ../cpp/opengpio.cpp:28:62: error: ‘line’ was not declared in this scope; did you mean ‘gpiod::line’?npm error 28 | Napi::Function getter = Napi::Function::New(info.Env(), [line](const Napi::CallbackInfo &info)npm error | ^~~~npm error | gpiod::linenpm error /usr/include/gpiodcxx/line.hpp:24:11: note: ‘gpiod::line’ declared herenpm error 24 | namespace line {npm error | ^~~~npm error ../cpp/opengpio.cpp: In lambda function:npm error ../cpp/opengpio.cpp:30:22: error: ‘line’ is not capturednpm error 30 | bool value = line.get_value();npm error | ^~~~npm error ../cpp/opengpio.cpp:28:66: note: the lambda has no capture-defaultnpm error 28 | Napi::Function getter = Napi::Function::New(info.Env(), [line](const Napi::CallbackInfo &info)npm error | ^npm error ../cpp/opengpio.cpp:28:62: note: ‘<typeprefixerror>line’ declared herenpm error 28 | Napi::Function getter = Napi::Function::New(info.Env(), [line](const Napi::CallbackInfo &info)npm error | ^~~~npm error ../cpp/opengpio.cpp: In lambda function:npm error ../cpp/opengpio.cpp:34:52: error: ‘line’ is not capturednpm error 34 | { line.release(); });npm error | ^~~~npm error ../cpp/opengpio.cpp:33:67: note: the lambda has no capture-defaultnpm error 33 | Napi::Function cleanup = Napi::Function::New(info.Env(), [line](const Napi::CallbackInfo &info)npm error | ^npm error ../cpp/opengpio.cpp:28:62: note: ‘<typeprefixerror>line’ declared herenpm error 28 | Napi::Function getter = Napi::Function::New(info.Env(), [line](const Napi::CallbackInfo &info)npm error | ^~~~npm error ../cpp/opengpio.cpp: In function ‘Napi::Array GpioOutput(const Napi::CallbackInfo&)’:npm error ../cpp/opengpio.cpp:49:17: error: expected primary-expression before ‘line’npm error 49 | gpiod::line line = chip.get_line(lineNumber);npm error | ^~~~npm error ../cpp/opengpio.cpp:54:9: error: ‘line’ was not declared in this scope; did you mean ‘gpiod::line’?npm error 54 | line.request({resourceName, gpiod::line_request::DIRECTION_OUTPUT, 0}, 1);npm error | ^~~~npm error | gpiod::linenpm error /usr/include/gpiodcxx/line.hpp:24:11: note: ‘gpiod::line’ declared herenpm error 24 | namespace line {npm error | ^~~~npm error ../cpp/opengpio.cpp:54:58: error: ‘DIRECTION_OUTPUT’ is not a member of ‘gpiod::line_request’npm error 54 | line.request({resourceName, gpiod::line_request::DIRECTION_OUTPUT, 0}, 1);npm error | ^~~~~~~~~~~~~~~~npm error ../cpp/opengpio.cpp:63:62: error: ‘line’ was not declared in this scope; did you mean ‘gpiod::line’?npm error 63 | Napi::Function setter = Napi::Function::New(info.Env(), [line](const Napi::CallbackInfo &info)npm error | ^~~~npm error | gpiod::linenpm error /usr/include/gpiodcxx/line.hpp:24:11: note: ‘gpiod::line’ declared herenpm error 24 | namespace line {npm error | ^~~~npm error ../cpp/opengpio.cpp: In lambda function:npm error ../cpp/opengpio.cpp:66:9: error: ‘line’ is not capturednpm error 66 | line.set_value(value); });npm error | ^~~~npm error ../cpp/opengpio.cpp:63:66: note: the lambda has no capture-defaultnpm error 63 | Napi::Function setter = Napi::Function::New(info.Env(), [line](const Napi::CallbackInfo &info)npm error | ^npm error ../cpp/opengpio.cpp:63:62: note: ‘<typeprefixerror>line’ declared herenpm error 63 | Napi::Function setter = Napi::Function::New(info.Env(), [line](const Napi::CallbackInfo &info)npm error | ^~~~npm error ../cpp/opengpio.cpp: In lambda function:npm error ../cpp/opengpio.cpp:69:52: error: ‘line’ is not capturednpm error 69 | { line.release(); });npm error | ^~~~npm error ../cpp/opengpio.cpp:68:67: note: the lambda has no capture-defaultnpm error 68 | Napi::Function cleanup = Napi::Function::New(info.Env(), [line](const Napi::CallbackInfo &info)npm error | ^npm error ../cpp/opengpio.cpp:63:62: note: ‘<typeprefixerror>line’ declared herenpm error 63 | Napi::Function setter = Napi::Function::New(info.Env(), [line](const Napi::CallbackInfo &info)npm error | ^~~~npm error ../cpp/opengpio.cpp: At global scope:npm error ../cpp/opengpio.cpp:81:12: error: ‘line’ in namespace ‘gpiod’ does not name a typenpm error 81 | gpiod::line line;npm error | ^~~~npm error /usr/include/gpiodcxx/line.hpp:24:11: note: ‘gpiod::line’ declared herenpm error 24 | namespace line {npm error | ^~~~npm error ../cpp/opengpio.cpp: In function ‘Napi::Array GpioWatch(const Napi::CallbackInfo&)’:npm error ../cpp/opengpio.cpp:92:17: error: expected primary-expression before ‘line’npm error 92 | gpiod::line line = chip.get_line(lineNumber);npm error | ^~~~npm error ../cpp/opengpio.cpp:100:9: error: ‘line’ was not declared in this scope; did you mean ‘gpiod::line’?npm error 100 | line.request({resourceName, gpiod::line_request::EVENT_BOTH_EDGES, 0}, 0);npm error | ^~~~npm error | gpiod::linenpm error /usr/include/gpiodcxx/line.hpp:24:11: note: ‘gpiod::line’ declared herenpm error 24 | namespace line {npm error | ^~~~npm error ../cpp/opengpio.cpp:100:58: error: ‘EVENT_BOTH_EDGES’ is not a member of ‘gpiod::line_request’npm error 100 | line.request({resourceName, gpiod::line_request::EVENT_BOTH_EDGES, 0}, 0);npm error | ^~~~~~~~~~~~~~~~npm error ../cpp/opengpio.cpp:109:62: error: ‘line’ was not declared in this scope; did you mean ‘gpiod::line’?npm error 109 | Napi::Function getter = Napi::Function::New(info.Env(), [line](const Napi::CallbackInfo &info)npm error | ^~~~npm error | gpiod::linenpm error /usr/include/gpiodcxx/line.hpp:24:11: note: ‘gpiod::line’ declared herenpm error 24 | namespace line {npm error | ^~~~npm error ../cpp/opengpio.cpp: In lambda function:npm error ../cpp/opengpio.cpp:111:22: error: ‘line’ is not capturednpm error 111 | bool value = line.get_value();npm error | ^~~~npm error ../cpp/opengpio.cpp:109:66: note: the lambda has no capture-defaultnpm error 109 | Napi::Function getter = Napi::Function::New(info.Env(), [line](const Napi::CallbackInfo &info)npm error | ^npm error ../cpp/opengpio.cpp:109:62: note: ‘<typeprefixerror>line’ declared herenpm error 109 | Napi::Function getter = Napi::Function::New(info.Env(), [line](const Napi::CallbackInfo &info)npm error | ^~~~npm error ../cpp/opengpio.cpp: In function ‘Napi::Array GpioWatch(const Napi::CallbackInfo&)’:npm error ../cpp/opengpio.cpp:115:11: error: ‘struct WatchContext’ has no member named ‘line’npm error 115 | data->line = line;npm error | ^~~~npm error ../cpp/opengpio.cpp: In lambda function:npm error ../cpp/opengpio.cpp:127:25: error: expected primary-expression before ‘line’npm error 127 | gpiod::line line = data->line;npm error | ^~~~npm error ../cpp/opengpio.cpp:131:33: error: ‘line’ is not capturednpm error 131 | bool hasEvent = line.event_wait(chrono::milliseconds(1));npm error | ^~~~npm error ../cpp/opengpio.cpp:124:10: note: the lambda has no capture-defaultnpm error 124 | [](uv_work_t *req)npm error | ^npm error ../cpp/opengpio.cpp:109:62: note: ‘<typeprefixerror>line’ declared herenpm error 109 | Napi::Function getter = Napi::Function::New(info.Env(), [line](const Napi::CallbackInfo &info)npm error | ^~~~npm error ../cpp/opengpio.cpp:134:28: error: ‘line_event’ is not a member of ‘gpiod’; did you mean ‘info_event’?npm error 134 | gpiod::line_event event = line.event_read();npm error | ^~~~~~~~~~npm error | info_eventnpm error ../cpp/opengpio.cpp:135:34: error: ‘event’ was not declared in this scope; did you mean ‘servent’?npm error 135 | bool value = event.event_type == gpiod::line_event::RISING_EDGE ? true : false;npm error | ^~~~~npm error | serventnpm error ../cpp/opengpio.cpp:135:61: error: ‘gpiod::line_event’ has not been declarednpm error 135 | bool value = event.event_type == gpiod::line_event::RISING_EDGE ? true : false;npm error | ^~~~~~~~~~npm error ../cpp/opengpio.cpp: In lambda function:npm error ../cpp/opengpio.cpp:147:19: error: ‘struct WatchContext’ has no member named ‘line’npm error 147 | data->line.release();npm error | ^~~~npm error ../cpp/opengpio.cpp: At global scope:npm error ../cpp/opengpio.cpp:168:12: error: ‘line’ in namespace ‘gpiod’ does not name a typenpm error 168 | gpiod::line line;npm error | ^~~~npm error /usr/include/gpiodcxx/line.hpp:24:11: note: ‘gpiod::line’ declared herenpm error 24 | namespace line {npm error | ^~~~npm error ../cpp/opengpio.cpp: In function ‘Napi::Array GpioPwm(const Napi::CallbackInfo&)’:npm error ../cpp/opengpio.cpp:196:17: error: expected primary-expression before ‘line’npm error 196 | gpiod::line line = chip.get_line(lineNumber);npm error | ^~~~npm error ../cpp/opengpio.cpp:201:9: error: ‘line’ was not declared in this scope; did you mean ‘gpiod::line’?npm error 201 | line.request({resourceName, gpiod::line_request::DIRECTION_OUTPUT, 0}, 1);npm error | ^~~~npm error | gpiod::linenpm error /usr/include/gpiodcxx/line.hpp:24:11: note: ‘gpiod::line’ declared herenpm error 24 | namespace line {npm error | ^~~~npm error ../cpp/opengpio.cpp:201:58: error: ‘DIRECTION_OUTPUT’ is not a member of ‘gpiod::line_request’npm error 201 | line.request({resourceName, gpiod::line_request::DIRECTION_OUTPUT, 0}, 1);npm error | ^~~~~~~~~~~~~~~~npm error ../cpp/opengpio.cpp:213:11: error: ‘struct PwmContext’ has no member named ‘line’npm error 213 | data->line = line;npm error | ^~~~npm error ../cpp/opengpio.cpp:213:18: error: ‘line’ was not declared in this scope; did you mean ‘gpiod::line’?npm error 213 | data->line = line;npm error | ^~~~npm error | gpiod::linenpm error /usr/include/gpiodcxx/line.hpp:24:11: note: ‘gpiod::line’ declared herenpm error 24 | namespace line {npm error | ^~~~npm error ../cpp/opengpio.cpp: In lambda function:npm error ../cpp/opengpio.cpp:224:25: error: expected primary-expression before ‘line’npm error 224 | gpiod::line line = data->line;npm error | ^~~~npm error ../cpp/opengpio.cpp:264:17: error: ‘line’ is not capturednpm error 264 | line.set_value(true);npm error | ^~~~npm error ../cpp/opengpio.cpp:221:10: note: the lambda has no capture-defaultnpm error 221 | [](uv_work_t *req)npm error | ^npm error ../cpp/opengpio.cpp:213:18: note: ‘<typeprefixerror>line’ declared herenpm error 213 | data->line = line;npm error | ^~~~npm error ../cpp/opengpio.cpp:278:17: error: ‘line’ is not capturednpm error 278 | line.set_value(false);npm error | ^~~~npm error ../cpp/opengpio.cpp:221:10: note: the lambda has no capture-defaultnpm error 221 | [](uv_work_t *req)npm error | ^npm error ../cpp/opengpio.cpp:213:18: note: ‘<typeprefixerror>line’ declared herenpm error 213 | data->line = line;npm error | ^~~~npm error ../cpp/opengpio.cpp: In lambda function:npm error ../cpp/opengpio.cpp:327:25: error: expected primary-expression before ‘line’npm error 327 | gpiod::line line = data->line;npm error | ^~~~npm error ../cpp/opengpio.cpp:328:13: error: ‘line’ is not capturednpm error 328 | line.release();npm error | ^~~~npm error ../cpp/opengpio.cpp:324:10: note: the lambda has no capture-defaultnpm error 324 | [](uv_work_t *req, int status)npm error | ^npm error ../cpp/opengpio.cpp:213:18: note: ‘<typeprefixerror>line’ declared herenpm error 213 | data->line = line;npm error | ^~~~npm error make: *** [opengpio.target.mk:108: Release/obj.target/opengpio/cpp/opengpio.o] Fehler 1npm error gyp ERR! build error npm error gyp ERR! stack Error: `make` failed with exit code: 2npm error gyp ERR! stack at ChildProcess.<anonymous> (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:219:23)npm error gyp ERR! System Linux 6.12.62+rpt-rpi-v8npm error gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"npm error gyp ERR! cwd /opt/iobroker/node_modules/opengpionpm error gyp ERR! node -v v22.22.0npm error gyp ERR! node-gyp -v v11.2.0npm error gyp ERR! not oknpm error A complete log of this run can be found in: /home/iobroker/.npm/_logs/2026-02-09T13_28_05_472Z-debug-0.log
        
        host.Raspi48GB Cannot install iobroker.rpi2@2.4.0: 1
        
        ERROR: Process exited with code 25
        
        Thomas BraunT 1 Antwort Letzte Antwort
        0
        • S searcher57
          $ iobroker add rpi2 --host Raspi48GB
          
          NPM version: 10.9.4
          
          Installing iobroker.rpi2@2.4.0... (System call)
          
          npm error code 1npm error path /opt/iobroker/node_modules/opengpionpm error command failednpm error command sh -c node-gyp rebuildnpm error make: Verzeichnis „/opt/iobroker/node_modules/opengpio/build“ wird betretennpm error CXX(target) Release/obj.target/opengpio/cpp/opengpio.onpm error make: Verzeichnis „/opt/iobroker/node_modules/opengpio/build“ wird verlassennpm error ../cpp/opengpio.cpp: In function ‘Napi::Array GpioInput(const Napi::CallbackInfo&)’:npm error ../cpp/opengpio.cpp:14:17: error: expected primary-expression before ‘line’npm error 14 | gpiod::line line = chip.get_line(lineNumber);npm error | ^~~~npm error ../cpp/opengpio.cpp:19:9: error: ‘line’ was not declared in this scope; did you mean ‘gpiod::line’?npm error 19 | line.request({resourceName, gpiod::line_request::DIRECTION_INPUT, 0});npm error | ^~~~npm error | gpiod::linenpm error In file included from /usr/include/gpiodcxx/chip.hpp:21,npm error from /usr/include/gpiod.hpp:27,npm error from ../cpp/opengpio.cpp:3:npm error /usr/include/gpiodcxx/line.hpp:24:11: note: ‘gpiod::line’ declared herenpm error 24 | namespace line {npm error | ^~~~npm error ../cpp/opengpio.cpp:19:58: error: ‘DIRECTION_INPUT’ is not a member of ‘gpiod::line_request’npm error 19 | line.request({resourceName, gpiod::line_request::DIRECTION_INPUT, 0});npm error | ^~~~~~~~~~~~~~~npm error ../cpp/opengpio.cpp:28:62: error: ‘line’ was not declared in this scope; did you mean ‘gpiod::line’?npm error 28 | Napi::Function getter = Napi::Function::New(info.Env(), [line](const Napi::CallbackInfo &info)npm error | ^~~~npm error | gpiod::linenpm error /usr/include/gpiodcxx/line.hpp:24:11: note: ‘gpiod::line’ declared herenpm error 24 | namespace line {npm error | ^~~~npm error ../cpp/opengpio.cpp: In lambda function:npm error ../cpp/opengpio.cpp:30:22: error: ‘line’ is not capturednpm error 30 | bool value = line.get_value();npm error | ^~~~npm error ../cpp/opengpio.cpp:28:66: note: the lambda has no capture-defaultnpm error 28 | Napi::Function getter = Napi::Function::New(info.Env(), [line](const Napi::CallbackInfo &info)npm error | ^npm error ../cpp/opengpio.cpp:28:62: note: ‘<typeprefixerror>line’ declared herenpm error 28 | Napi::Function getter = Napi::Function::New(info.Env(), [line](const Napi::CallbackInfo &info)npm error | ^~~~npm error ../cpp/opengpio.cpp: In lambda function:npm error ../cpp/opengpio.cpp:34:52: error: ‘line’ is not capturednpm error 34 | { line.release(); });npm error | ^~~~npm error ../cpp/opengpio.cpp:33:67: note: the lambda has no capture-defaultnpm error 33 | Napi::Function cleanup = Napi::Function::New(info.Env(), [line](const Napi::CallbackInfo &info)npm error | ^npm error ../cpp/opengpio.cpp:28:62: note: ‘<typeprefixerror>line’ declared herenpm error 28 | Napi::Function getter = Napi::Function::New(info.Env(), [line](const Napi::CallbackInfo &info)npm error | ^~~~npm error ../cpp/opengpio.cpp: In function ‘Napi::Array GpioOutput(const Napi::CallbackInfo&)’:npm error ../cpp/opengpio.cpp:49:17: error: expected primary-expression before ‘line’npm error 49 | gpiod::line line = chip.get_line(lineNumber);npm error | ^~~~npm error ../cpp/opengpio.cpp:54:9: error: ‘line’ was not declared in this scope; did you mean ‘gpiod::line’?npm error 54 | line.request({resourceName, gpiod::line_request::DIRECTION_OUTPUT, 0}, 1);npm error | ^~~~npm error | gpiod::linenpm error /usr/include/gpiodcxx/line.hpp:24:11: note: ‘gpiod::line’ declared herenpm error 24 | namespace line {npm error | ^~~~npm error ../cpp/opengpio.cpp:54:58: error: ‘DIRECTION_OUTPUT’ is not a member of ‘gpiod::line_request’npm error 54 | line.request({resourceName, gpiod::line_request::DIRECTION_OUTPUT, 0}, 1);npm error | ^~~~~~~~~~~~~~~~npm error ../cpp/opengpio.cpp:63:62: error: ‘line’ was not declared in this scope; did you mean ‘gpiod::line’?npm error 63 | Napi::Function setter = Napi::Function::New(info.Env(), [line](const Napi::CallbackInfo &info)npm error | ^~~~npm error | gpiod::linenpm error /usr/include/gpiodcxx/line.hpp:24:11: note: ‘gpiod::line’ declared herenpm error 24 | namespace line {npm error | ^~~~npm error ../cpp/opengpio.cpp: In lambda function:npm error ../cpp/opengpio.cpp:66:9: error: ‘line’ is not capturednpm error 66 | line.set_value(value); });npm error | ^~~~npm error ../cpp/opengpio.cpp:63:66: note: the lambda has no capture-defaultnpm error 63 | Napi::Function setter = Napi::Function::New(info.Env(), [line](const Napi::CallbackInfo &info)npm error | ^npm error ../cpp/opengpio.cpp:63:62: note: ‘<typeprefixerror>line’ declared herenpm error 63 | Napi::Function setter = Napi::Function::New(info.Env(), [line](const Napi::CallbackInfo &info)npm error | ^~~~npm error ../cpp/opengpio.cpp: In lambda function:npm error ../cpp/opengpio.cpp:69:52: error: ‘line’ is not capturednpm error 69 | { line.release(); });npm error | ^~~~npm error ../cpp/opengpio.cpp:68:67: note: the lambda has no capture-defaultnpm error 68 | Napi::Function cleanup = Napi::Function::New(info.Env(), [line](const Napi::CallbackInfo &info)npm error | ^npm error ../cpp/opengpio.cpp:63:62: note: ‘<typeprefixerror>line’ declared herenpm error 63 | Napi::Function setter = Napi::Function::New(info.Env(), [line](const Napi::CallbackInfo &info)npm error | ^~~~npm error ../cpp/opengpio.cpp: At global scope:npm error ../cpp/opengpio.cpp:81:12: error: ‘line’ in namespace ‘gpiod’ does not name a typenpm error 81 | gpiod::line line;npm error | ^~~~npm error /usr/include/gpiodcxx/line.hpp:24:11: note: ‘gpiod::line’ declared herenpm error 24 | namespace line {npm error | ^~~~npm error ../cpp/opengpio.cpp: In function ‘Napi::Array GpioWatch(const Napi::CallbackInfo&)’:npm error ../cpp/opengpio.cpp:92:17: error: expected primary-expression before ‘line’npm error 92 | gpiod::line line = chip.get_line(lineNumber);npm error | ^~~~npm error ../cpp/opengpio.cpp:100:9: error: ‘line’ was not declared in this scope; did you mean ‘gpiod::line’?npm error 100 | line.request({resourceName, gpiod::line_request::EVENT_BOTH_EDGES, 0}, 0);npm error | ^~~~npm error | gpiod::linenpm error /usr/include/gpiodcxx/line.hpp:24:11: note: ‘gpiod::line’ declared herenpm error 24 | namespace line {npm error | ^~~~npm error ../cpp/opengpio.cpp:100:58: error: ‘EVENT_BOTH_EDGES’ is not a member of ‘gpiod::line_request’npm error 100 | line.request({resourceName, gpiod::line_request::EVENT_BOTH_EDGES, 0}, 0);npm error | ^~~~~~~~~~~~~~~~npm error ../cpp/opengpio.cpp:109:62: error: ‘line’ was not declared in this scope; did you mean ‘gpiod::line’?npm error 109 | Napi::Function getter = Napi::Function::New(info.Env(), [line](const Napi::CallbackInfo &info)npm error | ^~~~npm error | gpiod::linenpm error /usr/include/gpiodcxx/line.hpp:24:11: note: ‘gpiod::line’ declared herenpm error 24 | namespace line {npm error | ^~~~npm error ../cpp/opengpio.cpp: In lambda function:npm error ../cpp/opengpio.cpp:111:22: error: ‘line’ is not capturednpm error 111 | bool value = line.get_value();npm error | ^~~~npm error ../cpp/opengpio.cpp:109:66: note: the lambda has no capture-defaultnpm error 109 | Napi::Function getter = Napi::Function::New(info.Env(), [line](const Napi::CallbackInfo &info)npm error | ^npm error ../cpp/opengpio.cpp:109:62: note: ‘<typeprefixerror>line’ declared herenpm error 109 | Napi::Function getter = Napi::Function::New(info.Env(), [line](const Napi::CallbackInfo &info)npm error | ^~~~npm error ../cpp/opengpio.cpp: In function ‘Napi::Array GpioWatch(const Napi::CallbackInfo&)’:npm error ../cpp/opengpio.cpp:115:11: error: ‘struct WatchContext’ has no member named ‘line’npm error 115 | data->line = line;npm error | ^~~~npm error ../cpp/opengpio.cpp: In lambda function:npm error ../cpp/opengpio.cpp:127:25: error: expected primary-expression before ‘line’npm error 127 | gpiod::line line = data->line;npm error | ^~~~npm error ../cpp/opengpio.cpp:131:33: error: ‘line’ is not capturednpm error 131 | bool hasEvent = line.event_wait(chrono::milliseconds(1));npm error | ^~~~npm error ../cpp/opengpio.cpp:124:10: note: the lambda has no capture-defaultnpm error 124 | [](uv_work_t *req)npm error | ^npm error ../cpp/opengpio.cpp:109:62: note: ‘<typeprefixerror>line’ declared herenpm error 109 | Napi::Function getter = Napi::Function::New(info.Env(), [line](const Napi::CallbackInfo &info)npm error | ^~~~npm error ../cpp/opengpio.cpp:134:28: error: ‘line_event’ is not a member of ‘gpiod’; did you mean ‘info_event’?npm error 134 | gpiod::line_event event = line.event_read();npm error | ^~~~~~~~~~npm error | info_eventnpm error ../cpp/opengpio.cpp:135:34: error: ‘event’ was not declared in this scope; did you mean ‘servent’?npm error 135 | bool value = event.event_type == gpiod::line_event::RISING_EDGE ? true : false;npm error | ^~~~~npm error | serventnpm error ../cpp/opengpio.cpp:135:61: error: ‘gpiod::line_event’ has not been declarednpm error 135 | bool value = event.event_type == gpiod::line_event::RISING_EDGE ? true : false;npm error | ^~~~~~~~~~npm error ../cpp/opengpio.cpp: In lambda function:npm error ../cpp/opengpio.cpp:147:19: error: ‘struct WatchContext’ has no member named ‘line’npm error 147 | data->line.release();npm error | ^~~~npm error ../cpp/opengpio.cpp: At global scope:npm error ../cpp/opengpio.cpp:168:12: error: ‘line’ in namespace ‘gpiod’ does not name a typenpm error 168 | gpiod::line line;npm error | ^~~~npm error /usr/include/gpiodcxx/line.hpp:24:11: note: ‘gpiod::line’ declared herenpm error 24 | namespace line {npm error | ^~~~npm error ../cpp/opengpio.cpp: In function ‘Napi::Array GpioPwm(const Napi::CallbackInfo&)’:npm error ../cpp/opengpio.cpp:196:17: error: expected primary-expression before ‘line’npm error 196 | gpiod::line line = chip.get_line(lineNumber);npm error | ^~~~npm error ../cpp/opengpio.cpp:201:9: error: ‘line’ was not declared in this scope; did you mean ‘gpiod::line’?npm error 201 | line.request({resourceName, gpiod::line_request::DIRECTION_OUTPUT, 0}, 1);npm error | ^~~~npm error | gpiod::linenpm error /usr/include/gpiodcxx/line.hpp:24:11: note: ‘gpiod::line’ declared herenpm error 24 | namespace line {npm error | ^~~~npm error ../cpp/opengpio.cpp:201:58: error: ‘DIRECTION_OUTPUT’ is not a member of ‘gpiod::line_request’npm error 201 | line.request({resourceName, gpiod::line_request::DIRECTION_OUTPUT, 0}, 1);npm error | ^~~~~~~~~~~~~~~~npm error ../cpp/opengpio.cpp:213:11: error: ‘struct PwmContext’ has no member named ‘line’npm error 213 | data->line = line;npm error | ^~~~npm error ../cpp/opengpio.cpp:213:18: error: ‘line’ was not declared in this scope; did you mean ‘gpiod::line’?npm error 213 | data->line = line;npm error | ^~~~npm error | gpiod::linenpm error /usr/include/gpiodcxx/line.hpp:24:11: note: ‘gpiod::line’ declared herenpm error 24 | namespace line {npm error | ^~~~npm error ../cpp/opengpio.cpp: In lambda function:npm error ../cpp/opengpio.cpp:224:25: error: expected primary-expression before ‘line’npm error 224 | gpiod::line line = data->line;npm error | ^~~~npm error ../cpp/opengpio.cpp:264:17: error: ‘line’ is not capturednpm error 264 | line.set_value(true);npm error | ^~~~npm error ../cpp/opengpio.cpp:221:10: note: the lambda has no capture-defaultnpm error 221 | [](uv_work_t *req)npm error | ^npm error ../cpp/opengpio.cpp:213:18: note: ‘<typeprefixerror>line’ declared herenpm error 213 | data->line = line;npm error | ^~~~npm error ../cpp/opengpio.cpp:278:17: error: ‘line’ is not capturednpm error 278 | line.set_value(false);npm error | ^~~~npm error ../cpp/opengpio.cpp:221:10: note: the lambda has no capture-defaultnpm error 221 | [](uv_work_t *req)npm error | ^npm error ../cpp/opengpio.cpp:213:18: note: ‘<typeprefixerror>line’ declared herenpm error 213 | data->line = line;npm error | ^~~~npm error ../cpp/opengpio.cpp: In lambda function:npm error ../cpp/opengpio.cpp:327:25: error: expected primary-expression before ‘line’npm error 327 | gpiod::line line = data->line;npm error | ^~~~npm error ../cpp/opengpio.cpp:328:13: error: ‘line’ is not capturednpm error 328 | line.release();npm error | ^~~~npm error ../cpp/opengpio.cpp:324:10: note: the lambda has no capture-defaultnpm error 324 | [](uv_work_t *req, int status)npm error | ^npm error ../cpp/opengpio.cpp:213:18: note: ‘<typeprefixerror>line’ declared herenpm error 213 | data->line = line;npm error | ^~~~npm error make: *** [opengpio.target.mk:108: Release/obj.target/opengpio/cpp/opengpio.o] Fehler 1npm error gyp ERR! build error npm error gyp ERR! stack Error: `make` failed with exit code: 2npm error gyp ERR! stack at ChildProcess.<anonymous> (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:219:23)npm error gyp ERR! System Linux 6.12.62+rpt-rpi-v8npm error gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"npm error gyp ERR! cwd /opt/iobroker/node_modules/opengpionpm error gyp ERR! node -v v22.22.0npm error gyp ERR! node-gyp -v v11.2.0npm error gyp ERR! not oknpm error A complete log of this run can be found in: /home/iobroker/.npm/_logs/2026-02-09T13_28_05_472Z-debug-0.log
          
          host.Raspi48GB Cannot install iobroker.rpi2@2.4.0: 1
          
          ERROR: Process exited with code 25
          
          Thomas BraunT Online
          Thomas BraunT Online
          Thomas Braun
          Most Active
          schrieb am zuletzt editiert von
          #58

          @searcher57 sagte in RPI-Monitor und GPIO rpi2 v2.3.1:

          Mach das mal in einem Terminal und kopier die Ausgaben dann vor dort. Da werden dann auch Zeilenumbrüche richtig dargestellt und man kann das lesen.

          iobroker add rpi2 --host Raspi48GB --debug
          

          Linux-Werkzeugkasten:
          https://forum.iobroker.net/topic/42952/der-kleine-iobroker-linux-werkzeugkasten
          NodeJS Fixer Skript:
          https://forum.iobroker.net/topic/68035/iob-node-fix-skript
          iob_diag: curl -sLf -o diag.sh https://iobroker.net/diag.sh && bash diag.sh

          1 Antwort Letzte Antwort
          0
          • S Offline
            S Offline
            searcher57
            schrieb am zuletzt editiert von
            #59
             $ iobroker add rpi2 --host Raspi48GB --debug
            NPM version: 10.9.4
            Installing iobroker.rpi2@2.4.0... (System call)
            
            > iobroker.rpi2@2.4.0 preinstall
            > sudo apt-get install -y libgpiod-dev || exit 0
            
            Paketlisten werden gelesen…
            Abhängigkeitsbaum wird aufgebaut…
            Statusinformationen werden eingelesen…
            libgpiod-dev ist schon die neueste Version (2.2.1-2+deb13u1).
            0 aktualisiert, 0 neu installiert, 0 zu entfernen und 0 nicht aktualisiert.
            
            > node-dht-sensor@0.4.5 install
            > node-gyp configure
            
            gyp info it worked if it ends with ok
            gyp info using node-gyp@11.2.0
            gyp info using node@22.22.0 | linux | arm64
            gyp info find Python using Python version 3.13.5 found at "/usr/bin/python3"
            
            gyp info spawn /usr/bin/python3
            gyp info spawn args [
            gyp info spawn args '/usr/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',
            gyp info spawn args 'binding.gyp',
            gyp info spawn args '-f',
            gyp info spawn args 'make',
            gyp info spawn args '-I',
            gyp info spawn args '/opt/iobroker/node_modules/node-dht-sensor/build/config.gypi',
            gyp info spawn args '-I',
            gyp info spawn args '/usr/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
            gyp info spawn args '-I',
            gyp info spawn args '/home/iobroker/.cache/node-gyp/22.22.0/include/node/common.gypi',
            gyp info spawn args '-Dlibrary=shared_library',
            gyp info spawn args '-Dvisibility=default',
            gyp info spawn args '-Dnode_root_dir=/home/iobroker/.cache/node-gyp/22.22.0',
            gyp info spawn args '-Dnode_gyp_dir=/usr/lib/node_modules/npm/node_modules/node-gyp',
            gyp info spawn args '-Dnode_lib_file=/home/iobroker/.cache/node-gyp/22.22.0/<(target_arch)/node.lib',
            gyp info spawn args '-Dmodule_root_dir=/opt/iobroker/node_modules/node-dht-sensor',
            gyp info spawn args '-Dnode_engine=v8',
            gyp info spawn args '--depth=.',
            gyp info spawn args '--no-parallel',
            gyp info spawn args '--generator-output',
            gyp info spawn args 'build',
            gyp info spawn args '-Goutput_dir=.'
            gyp info spawn args ]
            gyp info ok
            
            > opengpio@1.0.18 install
            > node-gyp rebuild
            
            gyp info it worked if it ends with ok
            gyp info using node-gyp@11.2.0
            gyp info using node@22.22.0 | linux | arm64
            gyp info find Python using Python version 3.13.5 found at "/usr/bin/python3"
            
            gyp info spawn /usr/bin/python3
            gyp info spawn args [
            gyp info spawn args '/usr/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',
            gyp info spawn args 'binding.gyp',
            gyp info spawn args '-f',
            gyp info spawn args 'make',
            gyp info spawn args '-I',
            gyp info spawn args '/opt/iobroker/node_modules/opengpio/build/config.gypi',
            gyp info spawn args '-I',
            gyp info spawn args '/usr/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
            gyp info spawn args '-I',
            gyp info spawn args '/home/iobroker/.cache/node-gyp/22.22.0/include/node/common.gypi',
            gyp info spawn args '-Dlibrary=shared_library',
            gyp info spawn args '-Dvisibility=default',
            gyp info spawn args '-Dnode_root_dir=/home/iobroker/.cache/node-gyp/22.22.0',
            gyp info spawn args '-Dnode_gyp_dir=/usr/lib/node_modules/npm/node_modules/node-gyp',
            gyp info spawn args '-Dnode_lib_file=/home/iobroker/.cache/node-gyp/22.22.0/<(target_arch)/node.lib',
            gyp info spawn args '-Dmodule_root_dir=/opt/iobroker/node_modules/opengpio',
            gyp info spawn args '-Dnode_engine=v8',
            gyp info spawn args '--depth=.',
            gyp info spawn args '--no-parallel',
            gyp info spawn args '--generator-output',
            gyp info spawn args 'build',
            gyp info spawn args '-Goutput_dir=.'
            gyp info spawn args ]
            gyp info spawn make
            gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
            make: Verzeichnis „/opt/iobroker/node_modules/opengpio/build“ wird betreten
              CXX(target) Release/obj.target/opengpio/cpp/opengpio.o
            ../cpp/opengpio.cpp: In function ‘Napi::Array GpioInput(const Napi::CallbackInfo&)’:
            ../cpp/opengpio.cpp:14:17: error: expected primary-expression before ‘line’
               14 |     gpiod::line line = chip.get_line(lineNumber);
                  |                 ^~~~
            ../cpp/opengpio.cpp:19:9: error: ‘line’ was not declared in this scope; did you mean ‘gpiod::line’?
               19 |         line.request({resourceName, gpiod::line_request::DIRECTION_INPUT, 0});
                  |         ^~~~
                  |         gpiod::line
            In file included from /usr/include/gpiodcxx/chip.hpp:21,
                             from /usr/include/gpiod.hpp:27,
                             from ../cpp/opengpio.cpp:3:
            /usr/include/gpiodcxx/line.hpp:24:11: note: ‘gpiod::line’ declared here
               24 | namespace line {
                  |           ^~~~
            ../cpp/opengpio.cpp:19:58: error: ‘DIRECTION_INPUT’ is not a member of ‘gpiod::line_request’
               19 |         line.request({resourceName, gpiod::line_request::DIRECTION_INPUT, 0});
                  |                                                          ^~~~~~~~~~~~~~~
            ../cpp/opengpio.cpp:28:62: error: ‘line’ was not declared in this scope; did you mean ‘gpiod::line’?
               28 |     Napi::Function getter = Napi::Function::New(info.Env(), [line](const Napi::CallbackInfo &info)
                  |                                                              ^~~~
                  |                                                              gpiod::line
            /usr/include/gpiodcxx/line.hpp:24:11: note: ‘gpiod::line’ declared here
               24 | namespace line {
                  |           ^~~~
            ../cpp/opengpio.cpp: In lambda function:
            ../cpp/opengpio.cpp:30:22: error: ‘line’ is not captured
               30 |         bool value = line.get_value();
                  |                      ^~~~
            ../cpp/opengpio.cpp:28:66: note: the lambda has no capture-default
               28 |     Napi::Function getter = Napi::Function::New(info.Env(), [line](const Napi::CallbackInfo &info)
                  |                                                                  ^
            ../cpp/opengpio.cpp:28:62: note: ‘<typeprefixerror>line’ declared here
               28 |     Napi::Function getter = Napi::Function::New(info.Env(), [line](const Napi::CallbackInfo &info)
                  |                                                              ^~~~
            ../cpp/opengpio.cpp: In lambda function:
            ../cpp/opengpio.cpp:34:52: error: ‘line’ is not captured
               34 |                                                  { line.release(); });
                  |                                                    ^~~~
            ../cpp/opengpio.cpp:33:67: note: the lambda has no capture-default
               33 |     Napi::Function cleanup = Napi::Function::New(info.Env(), [line](const Napi::CallbackInfo &info)
                  |                                                                   ^
            ../cpp/opengpio.cpp:28:62: note: ‘<typeprefixerror>line’ declared here
               28 |     Napi::Function getter = Napi::Function::New(info.Env(), [line](const Napi::CallbackInfo &info)
                  |                                                              ^~~~
            ../cpp/opengpio.cpp: In function ‘Napi::Array GpioOutput(const Napi::CallbackInfo&)’:
            ../cpp/opengpio.cpp:49:17: error: expected primary-expression before ‘line’
               49 |     gpiod::line line = chip.get_line(lineNumber);
                  |                 ^~~~
            ../cpp/opengpio.cpp:54:9: error: ‘line’ was not declared in this scope; did you mean ‘gpiod::line’?
               54 |         line.request({resourceName, gpiod::line_request::DIRECTION_OUTPUT, 0}, 1);
                  |         ^~~~
                  |         gpiod::line
            /usr/include/gpiodcxx/line.hpp:24:11: note: ‘gpiod::line’ declared here
               24 | namespace line {
                  |           ^~~~
            ../cpp/opengpio.cpp:54:58: error: ‘DIRECTION_OUTPUT’ is not a member of ‘gpiod::line_request’
               54 |         line.request({resourceName, gpiod::line_request::DIRECTION_OUTPUT, 0}, 1);
                  |                                                          ^~~~~~~~~~~~~~~~
            ../cpp/opengpio.cpp:63:62: error: ‘line’ was not declared in this scope; did you mean ‘gpiod::line’?
               63 |     Napi::Function setter = Napi::Function::New(info.Env(), [line](const Napi::CallbackInfo &info)
                  |                                                              ^~~~
                  |                                                              gpiod::line
            /usr/include/gpiodcxx/line.hpp:24:11: note: ‘gpiod::line’ declared here
               24 | namespace line {
                  |           ^~~~
            ../cpp/opengpio.cpp: In lambda function:
            ../cpp/opengpio.cpp:66:9: error: ‘line’ is not captured
               66 |         line.set_value(value); });
                  |         ^~~~
            ../cpp/opengpio.cpp:63:66: note: the lambda has no capture-default
               63 |     Napi::Function setter = Napi::Function::New(info.Env(), [line](const Napi::CallbackInfo &info)
                  |                                                                  ^
            ../cpp/opengpio.cpp:63:62: note: ‘<typeprefixerror>line’ declared here
               63 |     Napi::Function setter = Napi::Function::New(info.Env(), [line](const Napi::CallbackInfo &info)
                  |                                                              ^~~~
            ../cpp/opengpio.cpp: In lambda function:
            ../cpp/opengpio.cpp:69:52: error: ‘line’ is not captured
               69 |                                                  { line.release(); });
                  |                                                    ^~~~
            ../cpp/opengpio.cpp:68:67: note: the lambda has no capture-default
               68 |     Napi::Function cleanup = Napi::Function::New(info.Env(), [line](const Napi::CallbackInfo &info)
                  |                                                                   ^
            ../cpp/opengpio.cpp:63:62: note: ‘<typeprefixerror>line’ declared here
               63 |     Napi::Function setter = Napi::Function::New(info.Env(), [line](const Napi::CallbackInfo &info)
                  |                                                              ^~~~
            ../cpp/opengpio.cpp: At global scope:
            ../cpp/opengpio.cpp:81:12: error: ‘line’ in namespace ‘gpiod’ does not name a type
               81 |     gpiod::line line;
                  |            ^~~~
            /usr/include/gpiodcxx/line.hpp:24:11: note: ‘gpiod::line’ declared here
               24 | namespace line {
                  |           ^~~~
            ../cpp/opengpio.cpp: In function ‘Napi::Array GpioWatch(const Napi::CallbackInfo&)’:
            ../cpp/opengpio.cpp:92:17: error: expected primary-expression before ‘line’
               92 |     gpiod::line line = chip.get_line(lineNumber);
                  |                 ^~~~
            ../cpp/opengpio.cpp:100:9: error: ‘line’ was not declared in this scope; did you mean ‘gpiod::line’?
              100 |         line.request({resourceName, gpiod::line_request::EVENT_BOTH_EDGES, 0}, 0);
                  |         ^~~~
                  |         gpiod::line
            /usr/include/gpiodcxx/line.hpp:24:11: note: ‘gpiod::line’ declared here
               24 | namespace line {
                  |           ^~~~
            ../cpp/opengpio.cpp:100:58: error: ‘EVENT_BOTH_EDGES’ is not a member of ‘gpiod::line_request’
              100 |         line.request({resourceName, gpiod::line_request::EVENT_BOTH_EDGES, 0}, 0);
                  |                                                          ^~~~~~~~~~~~~~~~
            ../cpp/opengpio.cpp:109:62: error: ‘line’ was not declared in this scope; did you mean ‘gpiod::line’?
              109 |     Napi::Function getter = Napi::Function::New(info.Env(), [line](const Napi::CallbackInfo &info)
                  |                                                              ^~~~
                  |                                                              gpiod::line
            /usr/include/gpiodcxx/line.hpp:24:11: note: ‘gpiod::line’ declared here
               24 | namespace line {
                  |           ^~~~
            ../cpp/opengpio.cpp: In lambda function:
            ../cpp/opengpio.cpp:111:22: error: ‘line’ is not captured
              111 |         bool value = line.get_value();
                  |                      ^~~~
            ../cpp/opengpio.cpp:109:66: note: the lambda has no capture-default
              109 |     Napi::Function getter = Napi::Function::New(info.Env(), [line](const Napi::CallbackInfo &info)
                  |                                                                  ^
            ../cpp/opengpio.cpp:109:62: note: ‘<typeprefixerror>line’ declared here
              109 |     Napi::Function getter = Napi::Function::New(info.Env(), [line](const Napi::CallbackInfo &info)
                  |                                                              ^~~~
            ../cpp/opengpio.cpp: In function ‘Napi::Array GpioWatch(const Napi::CallbackInfo&)’:
            ../cpp/opengpio.cpp:115:11: error: ‘struct WatchContext’ has no member named ‘line’
              115 |     data->line = line;
                  |           ^~~~
            ../cpp/opengpio.cpp: In lambda function:
            ../cpp/opengpio.cpp:127:25: error: expected primary-expression before ‘line’
              127 |             gpiod::line line = data->line;
                  |                         ^~~~
            ../cpp/opengpio.cpp:131:33: error: ‘line’ is not captured
              131 |                 bool hasEvent = line.event_wait(chrono::milliseconds(1));
                  |                                 ^~~~
            ../cpp/opengpio.cpp:124:10: note: the lambda has no capture-default
              124 |         [](uv_work_t *req)
                  |          ^
            ../cpp/opengpio.cpp:109:62: note: ‘<typeprefixerror>line’ declared here
              109 |     Napi::Function getter = Napi::Function::New(info.Env(), [line](const Napi::CallbackInfo &info)
                  |                                                              ^~~~
            ../cpp/opengpio.cpp:134:28: error: ‘line_event’ is not a member of ‘gpiod’; did you mean ‘info_event’?
              134 |                     gpiod::line_event event = line.event_read();
                  |                            ^~~~~~~~~~
                  |                            info_event
            ../cpp/opengpio.cpp:135:34: error: ‘event’ was not declared in this scope; did you mean ‘servent’?
              135 |                     bool value = event.event_type == gpiod::line_event::RISING_EDGE ? true : false;
                  |                                  ^~~~~
                  |                                  servent
            ../cpp/opengpio.cpp:135:61: error: ‘gpiod::line_event’ has not been declared
              135 |                     bool value = event.event_type == gpiod::line_event::RISING_EDGE ? true : false;
                  |                                                             ^~~~~~~~~~
            ../cpp/opengpio.cpp: In lambda function:
            ../cpp/opengpio.cpp:147:19: error: ‘struct WatchContext’ has no member named ‘line’
              147 |             data->line.release();
                  |                   ^~~~
            ../cpp/opengpio.cpp: At global scope:
            ../cpp/opengpio.cpp:168:12: error: ‘line’ in namespace ‘gpiod’ does not name a type
              168 |     gpiod::line line;
                  |            ^~~~
            /usr/include/gpiodcxx/line.hpp:24:11: note: ‘gpiod::line’ declared here
               24 | namespace line {
                  |           ^~~~
            ../cpp/opengpio.cpp: In function ‘Napi::Array GpioPwm(const Napi::CallbackInfo&)’:
            ../cpp/opengpio.cpp:196:17: error: expected primary-expression before ‘line’
              196 |     gpiod::line line = chip.get_line(lineNumber);
                  |                 ^~~~
            ../cpp/opengpio.cpp:201:9: error: ‘line’ was not declared in this scope; did you mean ‘gpiod::line’?
              201 |         line.request({resourceName, gpiod::line_request::DIRECTION_OUTPUT, 0}, 1);
                  |         ^~~~
                  |         gpiod::line
            /usr/include/gpiodcxx/line.hpp:24:11: note: ‘gpiod::line’ declared here
               24 | namespace line {
                  |           ^~~~
            ../cpp/opengpio.cpp:201:58: error: ‘DIRECTION_OUTPUT’ is not a member of ‘gpiod::line_request’
              201 |         line.request({resourceName, gpiod::line_request::DIRECTION_OUTPUT, 0}, 1);
                  |                                                          ^~~~~~~~~~~~~~~~
            ../cpp/opengpio.cpp:213:11: error: ‘struct PwmContext’ has no member named ‘line’
              213 |     data->line = line;
                  |           ^~~~
            ../cpp/opengpio.cpp:213:18: error: ‘line’ was not declared in this scope; did you mean ‘gpiod::line’?
              213 |     data->line = line;
                  |                  ^~~~
                  |                  gpiod::line
            /usr/include/gpiodcxx/line.hpp:24:11: note: ‘gpiod::line’ declared here
               24 | namespace line {
                  |           ^~~~
            ../cpp/opengpio.cpp: In lambda function:
            ../cpp/opengpio.cpp:224:25: error: expected primary-expression before ‘line’
              224 |             gpiod::line line = data->line;
                  |                         ^~~~
            ../cpp/opengpio.cpp:264:17: error: ‘line’ is not captured
              264 |                 line.set_value(true);
                  |                 ^~~~
            ../cpp/opengpio.cpp:221:10: note: the lambda has no capture-default
              221 |         [](uv_work_t *req)
                  |          ^
            ../cpp/opengpio.cpp:213:18: note: ‘<typeprefixerror>line’ declared here
              213 |     data->line = line;
                  |                  ^~~~
            ../cpp/opengpio.cpp:278:17: error: ‘line’ is not captured
              278 |                 line.set_value(false);
                  |                 ^~~~
            ../cpp/opengpio.cpp:221:10: note: the lambda has no capture-default
              221 |         [](uv_work_t *req)
                  |          ^
            ../cpp/opengpio.cpp:213:18: note: ‘<typeprefixerror>line’ declared here
              213 |     data->line = line;
                  |                  ^~~~
            ../cpp/opengpio.cpp: In lambda function:
            ../cpp/opengpio.cpp:327:25: error: expected primary-expression before ‘line’
              327 |             gpiod::line line = data->line;
                  |                         ^~~~
            ../cpp/opengpio.cpp:328:13: error: ‘line’ is not captured
              328 |             line.release();
                  |             ^~~~
            ../cpp/opengpio.cpp:324:10: note: the lambda has no capture-default
              324 |         [](uv_work_t *req, int status)
                  |          ^
            ../cpp/opengpio.cpp:213:18: note: ‘<typeprefixerror>line’ declared here
              213 |     data->line = line;
                  |                  ^~~~
            make: *** [opengpio.target.mk:108: Release/obj.target/opengpio/cpp/opengpio.o] Fehler 1
            make: Verzeichnis „/opt/iobroker/node_modules/opengpio/build“ wird verlassen
            gyp ERR! build error
            gyp ERR! stack Error: `make` failed with exit code: 2
            gyp ERR! stack at ChildProcess.<anonymous> (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:219:23)
            gyp ERR! System Linux 6.12.62+rpt-rpi-v8
            gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
            gyp ERR! cwd /opt/iobroker/node_modules/opengpio
            gyp ERR! node -v v22.22.0
            gyp ERR! node-gyp -v v11.2.0
            gyp ERR! not ok
            npm error code 1
            npm error path /opt/iobroker/node_modules/opengpio
            npm error command failed
            npm error command sh -c node-gyp rebuild
            npm error A complete log of this run can be found in: /home/iobroker/.npm/_logs/2026-02-09T13_47_48_434Z-debug-0.log
            gyp info it worked if it ends with ok
            gyp info using node-gyp@11.2.0
            gyp info using node@22.22.0 | linux | arm64
            gyp info find Python using Python version 3.13.5 found at "/usr/bin/python3"
            gyp info spawn /usr/bin/python3
            gyp info spawn args [
            gyp info spawn args '/usr/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',
            gyp info spawn args 'binding.gyp',
            gyp info spawn args '-f',
            gyp info spawn args 'make',
            gyp info spawn args '-I',
            gyp info spawn args '/opt/iobroker/node_modules/node-dht-sensor/build/config.gypi',
            gyp info spawn args '-I',
            gyp info spawn args '/usr/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
            gyp info spawn args '-I',
            gyp info spawn args '/home/iobroker/.cache/node-gyp/22.22.0/include/node/common.gypi',
            gyp info spawn args '-Dlibrary=shared_library',
            gyp info spawn args '-Dvisibility=default',
            gyp info spawn args '-Dnode_root_dir=/home/iobroker/.cache/node-gyp/22.22.0',
            gyp info spawn args '-Dnode_gyp_dir=/usr/lib/node_modules/npm/node_modules/node-gyp',
            gyp info spawn args '-Dnode_lib_file=/home/iobroker/.cache/node-gyp/22.22.0/<(target_arch)/node.lib',
            gyp info spawn args '-Dmodule_root_dir=/opt/iobroker/node_modules/node-dht-sensor',
            gyp info spawn args '-Dnode_engine=v8',
            gyp info spawn args '--depth=.',
            gyp info spawn args '--no-parallel',
            gyp info spawn args '--generator-output',
            gyp info spawn args 'build',
            gyp info spawn args '-Goutput_dir=.'
            gyp info spawn args ]
            gyp info ok
            gyp info it worked if it ends with ok
            gyp info using node-gyp@11.2.0
            gyp info using node@22.22.0 | linux | arm64
            gyp info find Python using Python version 3.13.5 found at "/usr/bin/python3"
            gyp info spawn /usr/bin/python3
            gyp info spawn args [
            gyp info spawn args '/usr/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',
            gyp info spawn args 'binding.gyp',
            gyp info spawn args '-f',
            gyp info spawn args 'make',
            gyp info spawn args '-I',
            gyp info spawn args '/opt/iobroker/node_modules/opengpio/build/config.gypi',
            gyp info spawn args '-I',
            gyp info spawn args '/usr/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
            gyp info spawn args '-I',
            gyp info spawn args '/home/iobroker/.cache/node-gyp/22.22.0/include/node/common.gypi',
            gyp info spawn args '-Dlibrary=shared_library',
            gyp info spawn args '-Dvisibility=default',
            gyp info spawn args '-Dnode_root_dir=/home/iobroker/.cache/node-gyp/22.22.0',
            gyp info spawn args '-Dnode_gyp_dir=/usr/lib/node_modules/npm/node_modules/node-gyp',
            gyp info spawn args '-Dnode_lib_file=/home/iobroker/.cache/node-gyp/22.22.0/<(target_arch)/node.lib',
            gyp info spawn args '-Dmodule_root_dir=/opt/iobroker/node_modules/opengpio',
            gyp info spawn args '-Dnode_engine=v8',
            gyp info spawn args '--depth=.',
            gyp info spawn args '--no-parallel',
            gyp info spawn args '--generator-output',
            gyp info spawn args 'build',
            gyp info spawn args '-Goutput_dir=.'
            gyp info spawn args ]
            gyp info spawn make
            gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
            ../cpp/opengpio.cpp: In function ‘Napi::Array GpioInput(const Napi::CallbackInfo&)’:
            ../cpp/opengpio.cpp:14:17: error: expected primary-expression before ‘line’
               14 |     gpiod::line line = chip.get_line(lineNumber);
                  |                 ^~~~
            ../cpp/opengpio.cpp:19:9: error: ‘line’ was not declared in this scope; did you mean ‘gpiod::line’?
               19 |         line.request({resourceName, gpiod::line_request::DIRECTION_INPUT, 0});
                  |         ^~~~
                  |         gpiod::line
            In file included from /usr/include/gpiodcxx/chip.hpp:21,
                             from /usr/include/gpiod.hpp:27,
                             from ../cpp/opengpio.cpp:3:
            /usr/include/gpiodcxx/line.hpp:24:11: note: ‘gpiod::line’ declared here
               24 | namespace line {
                  |           ^~~~
            ../cpp/opengpio.cpp:19:58: error: ‘DIRECTION_INPUT’ is not a member of ‘gpiod::line_request’
               19 |         line.request({resourceName, gpiod::line_request::DIRECTION_INPUT, 0});
                  |                                                          ^~~~~~~~~~~~~~~
            ../cpp/opengpio.cpp:28:62: error: ‘line’ was not declared in this scope; did you mean ‘gpiod::line’?
               28 |     Napi::Function getter = Napi::Function::New(info.Env(), [line](const Napi::CallbackInfo &info)
                  |                                                              ^~~~
                  |                                                              gpiod::line
            /usr/include/gpiodcxx/line.hpp:24:11: note: ‘gpiod::line’ declared here
               24 | namespace line {
                  |           ^~~~
            ../cpp/opengpio.cpp: In lambda function:
            ../cpp/opengpio.cpp:30:22: error: ‘line’ is not captured
               30 |         bool value = line.get_value();
                  |                      ^~~~
            ../cpp/opengpio.cpp:28:66: note: the lambda has no capture-default
               28 |     Napi::Function getter = Napi::Function::New(info.Env(), [line](const Napi::CallbackInfo &info)
                  |                                                                  ^
            ../cpp/opengpio.cpp:28:62: note: ‘<typeprefixerror>line’ declared here
               28 |     Napi::Function getter = Napi::Function::New(info.Env(), [line](const Napi::CallbackInfo &info)
                  |                                                              ^~~~
            ../cpp/opengpio.cpp: In lambda function:
            ../cpp/opengpio.cpp:34:52: error: ‘line’ is not captured
               34 |                                                  { line.release(); });
                  |                                                    ^~~~
            ../cpp/opengpio.cpp:33:67: note: the lambda has no capture-default
               33 |     Napi::Function cleanup = Napi::Function::New(info.Env(), [line](const Napi::CallbackInfo &info)
                  |                                                                   ^
            ../cpp/opengpio.cpp:28:62: note: ‘<typeprefixerror>line’ declared here
               28 |     Napi::Function getter = Napi::Function::New(info.Env(), [line](const Napi::CallbackInfo &info)
                  |                                                              ^~~~
            ../cpp/opengpio.cpp: In function ‘Napi::Array GpioOutput(const Napi::CallbackInfo&)’:
            ../cpp/opengpio.cpp:49:17: error: expected primary-expression before ‘line’
               49 |     gpiod::line line = chip.get_line(lineNumber);
                  |                 ^~~~
            ../cpp/opengpio.cpp:54:9: error: ‘line’ was not declared in this scope; did you mean ‘gpiod::line’?
               54 |         line.request({resourceName, gpiod::line_request::DIRECTION_OUTPUT, 0}, 1);
                  |         ^~~~
                  |         gpiod::line
            /usr/include/gpiodcxx/line.hpp:24:11: note: ‘gpiod::line’ declared here
               24 | namespace line {
                  |           ^~~~
            ../cpp/opengpio.cpp:54:58: error: ‘DIRECTION_OUTPUT’ is not a member of ‘gpiod::line_request’
               54 |         line.request({resourceName, gpiod::line_request::DIRECTION_OUTPUT, 0}, 1);
                  |                                                          ^~~~~~~~~~~~~~~~
            ../cpp/opengpio.cpp:63:62: error: ‘line’ was not declared in this scope; did you mean ‘gpiod::line’?
               63 |     Napi::Function setter = Napi::Function::New(info.Env(), [line](const Napi::CallbackInfo &info)
                  |                                                              ^~~~
                  |                                                              gpiod::line
            /usr/include/gpiodcxx/line.hpp:24:11: note: ‘gpiod::line’ declared here
               24 | namespace line {
                  |           ^~~~
            ../cpp/opengpio.cpp: In lambda function:
            ../cpp/opengpio.cpp:66:9: error: ‘line’ is not captured
               66 |         line.set_value(value); });
                  |         ^~~~
            ../cpp/opengpio.cpp:63:66: note: the lambda has no capture-default
               63 |     Napi::Function setter = Napi::Function::New(info.Env(), [line](const Napi::CallbackInfo &info)
                  |                                                                  ^
            ../cpp/opengpio.cpp:63:62: note: ‘<typeprefixerror>line’ declared here
               63 |     Napi::Function setter = Napi::Function::New(info.Env(), [line](const Napi::CallbackInfo &info)
                  |                                                              ^~~~
            ../cpp/opengpio.cpp: In lambda function:
            ../cpp/opengpio.cpp:69:52: error: ‘line’ is not captured
               69 |                                                  { line.release(); });
                  |                                                    ^~~~
            ../cpp/opengpio.cpp:68:67: note: the lambda has no capture-default
               68 |     Napi::Function cleanup = Napi::Function::New(info.Env(), [line](const Napi::CallbackInfo &info)
                  |                                                                   ^
            ../cpp/opengpio.cpp:63:62: note: ‘<typeprefixerror>line’ declared here
               63 |     Napi::Function setter = Napi::Function::New(info.Env(), [line](const Napi::CallbackInfo &info)
                  |                                                              ^~~~
            ../cpp/opengpio.cpp: At global scope:
            ../cpp/opengpio.cpp:81:12: error: ‘line’ in namespace ‘gpiod’ does not name a type
               81 |     gpiod::line line;
                  |            ^~~~
            /usr/include/gpiodcxx/line.hpp:24:11: note: ‘gpiod::line’ declared here
               24 | namespace line {
                  |           ^~~~
            ../cpp/opengpio.cpp: In function ‘Napi::Array GpioWatch(const Napi::CallbackInfo&)’:
            ../cpp/opengpio.cpp:92:17: error: expected primary-expression before ‘line’
               92 |     gpiod::line line = chip.get_line(lineNumber);
                  |                 ^~~~
            ../cpp/opengpio.cpp:100:9: error: ‘line’ was not declared in this scope; did you mean ‘gpiod::line’?
              100 |         line.request({resourceName, gpiod::line_request::EVENT_BOTH_EDGES, 0}, 0);
                  |         ^~~~
                  |         gpiod::line
            /usr/include/gpiodcxx/line.hpp:24:11: note: ‘gpiod::line’ declared here
               24 | namespace line {
                  |           ^~~~
            ../cpp/opengpio.cpp:100:58: error: ‘EVENT_BOTH_EDGES’ is not a member of ‘gpiod::line_request’
              100 |         line.request({resourceName, gpiod::line_request::EVENT_BOTH_EDGES, 0}, 0);
                  |                                                          ^~~~~~~~~~~~~~~~
            ../cpp/opengpio.cpp:109:62: error: ‘line’ was not declared in this scope; did you mean ‘gpiod::line’?
              109 |     Napi::Function getter = Napi::Function::New(info.Env(), [line](const Napi::CallbackInfo &info)
                  |                                                              ^~~~
                  |                                                              gpiod::line
            /usr/include/gpiodcxx/line.hpp:24:11: note: ‘gpiod::line’ declared here
               24 | namespace line {
                  |           ^~~~
            ../cpp/opengpio.cpp: In lambda function:
            ../cpp/opengpio.cpp:111:22: error: ‘line’ is not captured
              111 |         bool value = line.get_value();
                  |                      ^~~~
            ../cpp/opengpio.cpp:109:66: note: the lambda has no capture-default
              109 |     Napi::Function getter = Napi::Function::New(info.Env(), [line](const Napi::CallbackInfo &info)
                  |                                                                  ^
            ../cpp/opengpio.cpp:109:62: note: ‘<typeprefixerror>line’ declared here
              109 |     Napi::Function getter = Napi::Function::New(info.Env(), [line](const Napi::CallbackInfo &info)
                  |                                                              ^~~~
            ../cpp/opengpio.cpp: In function ‘Napi::Array GpioWatch(const Napi::CallbackInfo&)’:
            ../cpp/opengpio.cpp:115:11: error: ‘struct WatchContext’ has no member named ‘line’
              115 |     data->line = line;
                  |           ^~~~
            ../cpp/opengpio.cpp: In lambda function:
            ../cpp/opengpio.cpp:127:25: error: expected primary-expression before ‘line’
              127 |             gpiod::line line = data->line;
                  |                         ^~~~
            ../cpp/opengpio.cpp:131:33: error: ‘line’ is not captured
              131 |                 bool hasEvent = line.event_wait(chrono::milliseconds(1));
                  |                                 ^~~~
            ../cpp/opengpio.cpp:124:10: note: the lambda has no capture-default
              124 |         [](uv_work_t *req)
                  |          ^
            ../cpp/opengpio.cpp:109:62: note: ‘<typeprefixerror>line’ declared here
              109 |     Napi::Function getter = Napi::Function::New(info.Env(), [line](const Napi::CallbackInfo &info)
                  |                                                              ^~~~
            ../cpp/opengpio.cpp:134:28: error: ‘line_event’ is not a member of ‘gpiod’; did you mean ‘info_event’?
              134 |                     gpiod::line_event event = line.event_read();
                  |                            ^~~~~~~~~~
                  |                            info_event
            ../cpp/opengpio.cpp:135:34: error: ‘event’ was not declared in this scope; did you mean ‘servent’?
              135 |                     bool value = event.event_type == gpiod::line_event::RISING_EDGE ? true : false;
                  |                                  ^~~~~
                  |                                  servent
            ../cpp/opengpio.cpp:135:61: error: ‘gpiod::line_event’ has not been declared
              135 |                     bool value = event.event_type == gpiod::line_event::RISING_EDGE ? true : false;
                  |                                                             ^~~~~~~~~~
            ../cpp/opengpio.cpp: In lambda function:
            ../cpp/opengpio.cpp:147:19: error: ‘struct WatchContext’ has no member named ‘line’
              147 |             data->line.release();
                  |                   ^~~~
            ../cpp/opengpio.cpp: At global scope:
            ../cpp/opengpio.cpp:168:12: error: ‘line’ in namespace ‘gpiod’ does not name a type
              168 |     gpiod::line line;
                  |            ^~~~
            /usr/include/gpiodcxx/line.hpp:24:11: note: ‘gpiod::line’ declared here
               24 | namespace line {
                  |           ^~~~
            ../cpp/opengpio.cpp: In function ‘Napi::Array GpioPwm(const Napi::CallbackInfo&)’:
            ../cpp/opengpio.cpp:196:17: error: expected primary-expression before ‘line’
              196 |     gpiod::line line = chip.get_line(lineNumber);
                  |                 ^~~~
            ../cpp/opengpio.cpp:201:9: error: ‘line’ was not declared in this scope; did you mean ‘gpiod::line’?
              201 |         line.request({resourceName, gpiod::line_request::DIRECTION_OUTPUT, 0}, 1);
                  |         ^~~~
                  |         gpiod::line
            /usr/include/gpiodcxx/line.hpp:24:11: note: ‘gpiod::line’ declared here
               24 | namespace line {
                  |           ^~~~
            ../cpp/opengpio.cpp:201:58: error: ‘DIRECTION_OUTPUT’ is not a member of ‘gpiod::line_request’
              201 |         line.request({resourceName, gpiod::line_request::DIRECTION_OUTPUT, 0}, 1);
                  |                                                          ^~~~~~~~~~~~~~~~
            ../cpp/opengpio.cpp:213:11: error: ‘struct PwmContext’ has no member named ‘line’
              213 |     data->line = line;
                  |           ^~~~
            ../cpp/opengpio.cpp:213:18: error: ‘line’ was not declared in this scope; did you mean ‘gpiod::line’?
              213 |     data->line = line;
                  |                  ^~~~
                  |                  gpiod::line
            /usr/include/gpiodcxx/line.hpp:24:11: note: ‘gpiod::line’ declared here
               24 | namespace line {
                  |           ^~~~
            ../cpp/opengpio.cpp: In lambda function:
            ../cpp/opengpio.cpp:224:25: error: expected primary-expression before ‘line’
              224 |             gpiod::line line = data->line;
                  |                         ^~~~
            ../cpp/opengpio.cpp:264:17: error: ‘line’ is not captured
              264 |                 line.set_value(true);
                  |                 ^~~~
            ../cpp/opengpio.cpp:221:10: note: the lambda has no capture-default
              221 |         [](uv_work_t *req)
                  |          ^
            ../cpp/opengpio.cpp:213:18: note: ‘<typeprefixerror>line’ declared here
              213 |     data->line = line;
                  |                  ^~~~
            ../cpp/opengpio.cpp:278:17: error: ‘line’ is not captured
              278 |                 line.set_value(false);
                  |                 ^~~~
            ../cpp/opengpio.cpp:221:10: note: the lambda has no capture-default
              221 |         [](uv_work_t *req)
                  |          ^
            ../cpp/opengpio.cpp:213:18: note: ‘<typeprefixerror>line’ declared here
              213 |     data->line = line;
                  |                  ^~~~
            ../cpp/opengpio.cpp: In lambda function:
            ../cpp/opengpio.cpp:327:25: error: expected primary-expression before ‘line’
              327 |             gpiod::line line = data->line;
                  |                         ^~~~
            ../cpp/opengpio.cpp:328:13: error: ‘line’ is not captured
              328 |             line.release();
                  |             ^~~~
            ../cpp/opengpio.cpp:324:10: note: the lambda has no capture-default
              324 |         [](uv_work_t *req, int status)
                  |          ^
            ../cpp/opengpio.cpp:213:18: note: ‘<typeprefixerror>line’ declared here
              213 |     data->line = line;
                  |                  ^~~~
            make: *** [opengpio.target.mk:108: Release/obj.target/opengpio/cpp/opengpio.o] Fehler 1
            gyp ERR! build error
            gyp ERR! stack Error: `make` failed with exit code: 2
            gyp ERR! stack at ChildProcess.<anonymous> (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:219:23)
            gyp ERR! System Linux 6.12.62+rpt-rpi-v8
            gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
            gyp ERR! cwd /opt/iobroker/node_modules/opengpio
            gyp ERR! node -v v22.22.0
            gyp ERR! node-gyp -v v11.2.0
            gyp ERR! not ok
            npm error code 1
            npm error path /opt/iobroker/node_modules/opengpio
            npm error command failed
            npm error command sh -c node-gyp rebuild
            npm error A complete log of this run can be found in: /home/iobroker/.npm/_logs/2026-02-09T13_47_48_434Z-debug-0.log
            host.Raspi48GB Cannot install iobroker.rpi2@2.4.0: 1
            
            
            Thomas BraunT 1 Antwort Letzte Antwort
            0
            • S searcher57
               $ iobroker add rpi2 --host Raspi48GB --debug
              NPM version: 10.9.4
              Installing iobroker.rpi2@2.4.0... (System call)
              
              > iobroker.rpi2@2.4.0 preinstall
              > sudo apt-get install -y libgpiod-dev || exit 0
              
              Paketlisten werden gelesen…
              Abhängigkeitsbaum wird aufgebaut…
              Statusinformationen werden eingelesen…
              libgpiod-dev ist schon die neueste Version (2.2.1-2+deb13u1).
              0 aktualisiert, 0 neu installiert, 0 zu entfernen und 0 nicht aktualisiert.
              
              > node-dht-sensor@0.4.5 install
              > node-gyp configure
              
              gyp info it worked if it ends with ok
              gyp info using node-gyp@11.2.0
              gyp info using node@22.22.0 | linux | arm64
              gyp info find Python using Python version 3.13.5 found at "/usr/bin/python3"
              
              gyp info spawn /usr/bin/python3
              gyp info spawn args [
              gyp info spawn args '/usr/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',
              gyp info spawn args 'binding.gyp',
              gyp info spawn args '-f',
              gyp info spawn args 'make',
              gyp info spawn args '-I',
              gyp info spawn args '/opt/iobroker/node_modules/node-dht-sensor/build/config.gypi',
              gyp info spawn args '-I',
              gyp info spawn args '/usr/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
              gyp info spawn args '-I',
              gyp info spawn args '/home/iobroker/.cache/node-gyp/22.22.0/include/node/common.gypi',
              gyp info spawn args '-Dlibrary=shared_library',
              gyp info spawn args '-Dvisibility=default',
              gyp info spawn args '-Dnode_root_dir=/home/iobroker/.cache/node-gyp/22.22.0',
              gyp info spawn args '-Dnode_gyp_dir=/usr/lib/node_modules/npm/node_modules/node-gyp',
              gyp info spawn args '-Dnode_lib_file=/home/iobroker/.cache/node-gyp/22.22.0/<(target_arch)/node.lib',
              gyp info spawn args '-Dmodule_root_dir=/opt/iobroker/node_modules/node-dht-sensor',
              gyp info spawn args '-Dnode_engine=v8',
              gyp info spawn args '--depth=.',
              gyp info spawn args '--no-parallel',
              gyp info spawn args '--generator-output',
              gyp info spawn args 'build',
              gyp info spawn args '-Goutput_dir=.'
              gyp info spawn args ]
              gyp info ok
              
              > opengpio@1.0.18 install
              > node-gyp rebuild
              
              gyp info it worked if it ends with ok
              gyp info using node-gyp@11.2.0
              gyp info using node@22.22.0 | linux | arm64
              gyp info find Python using Python version 3.13.5 found at "/usr/bin/python3"
              
              gyp info spawn /usr/bin/python3
              gyp info spawn args [
              gyp info spawn args '/usr/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',
              gyp info spawn args 'binding.gyp',
              gyp info spawn args '-f',
              gyp info spawn args 'make',
              gyp info spawn args '-I',
              gyp info spawn args '/opt/iobroker/node_modules/opengpio/build/config.gypi',
              gyp info spawn args '-I',
              gyp info spawn args '/usr/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
              gyp info spawn args '-I',
              gyp info spawn args '/home/iobroker/.cache/node-gyp/22.22.0/include/node/common.gypi',
              gyp info spawn args '-Dlibrary=shared_library',
              gyp info spawn args '-Dvisibility=default',
              gyp info spawn args '-Dnode_root_dir=/home/iobroker/.cache/node-gyp/22.22.0',
              gyp info spawn args '-Dnode_gyp_dir=/usr/lib/node_modules/npm/node_modules/node-gyp',
              gyp info spawn args '-Dnode_lib_file=/home/iobroker/.cache/node-gyp/22.22.0/<(target_arch)/node.lib',
              gyp info spawn args '-Dmodule_root_dir=/opt/iobroker/node_modules/opengpio',
              gyp info spawn args '-Dnode_engine=v8',
              gyp info spawn args '--depth=.',
              gyp info spawn args '--no-parallel',
              gyp info spawn args '--generator-output',
              gyp info spawn args 'build',
              gyp info spawn args '-Goutput_dir=.'
              gyp info spawn args ]
              gyp info spawn make
              gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
              make: Verzeichnis „/opt/iobroker/node_modules/opengpio/build“ wird betreten
                CXX(target) Release/obj.target/opengpio/cpp/opengpio.o
              ../cpp/opengpio.cpp: In function ‘Napi::Array GpioInput(const Napi::CallbackInfo&)’:
              ../cpp/opengpio.cpp:14:17: error: expected primary-expression before ‘line’
                 14 |     gpiod::line line = chip.get_line(lineNumber);
                    |                 ^~~~
              ../cpp/opengpio.cpp:19:9: error: ‘line’ was not declared in this scope; did you mean ‘gpiod::line’?
                 19 |         line.request({resourceName, gpiod::line_request::DIRECTION_INPUT, 0});
                    |         ^~~~
                    |         gpiod::line
              In file included from /usr/include/gpiodcxx/chip.hpp:21,
                               from /usr/include/gpiod.hpp:27,
                               from ../cpp/opengpio.cpp:3:
              /usr/include/gpiodcxx/line.hpp:24:11: note: ‘gpiod::line’ declared here
                 24 | namespace line {
                    |           ^~~~
              ../cpp/opengpio.cpp:19:58: error: ‘DIRECTION_INPUT’ is not a member of ‘gpiod::line_request’
                 19 |         line.request({resourceName, gpiod::line_request::DIRECTION_INPUT, 0});
                    |                                                          ^~~~~~~~~~~~~~~
              ../cpp/opengpio.cpp:28:62: error: ‘line’ was not declared in this scope; did you mean ‘gpiod::line’?
                 28 |     Napi::Function getter = Napi::Function::New(info.Env(), [line](const Napi::CallbackInfo &info)
                    |                                                              ^~~~
                    |                                                              gpiod::line
              /usr/include/gpiodcxx/line.hpp:24:11: note: ‘gpiod::line’ declared here
                 24 | namespace line {
                    |           ^~~~
              ../cpp/opengpio.cpp: In lambda function:
              ../cpp/opengpio.cpp:30:22: error: ‘line’ is not captured
                 30 |         bool value = line.get_value();
                    |                      ^~~~
              ../cpp/opengpio.cpp:28:66: note: the lambda has no capture-default
                 28 |     Napi::Function getter = Napi::Function::New(info.Env(), [line](const Napi::CallbackInfo &info)
                    |                                                                  ^
              ../cpp/opengpio.cpp:28:62: note: ‘<typeprefixerror>line’ declared here
                 28 |     Napi::Function getter = Napi::Function::New(info.Env(), [line](const Napi::CallbackInfo &info)
                    |                                                              ^~~~
              ../cpp/opengpio.cpp: In lambda function:
              ../cpp/opengpio.cpp:34:52: error: ‘line’ is not captured
                 34 |                                                  { line.release(); });
                    |                                                    ^~~~
              ../cpp/opengpio.cpp:33:67: note: the lambda has no capture-default
                 33 |     Napi::Function cleanup = Napi::Function::New(info.Env(), [line](const Napi::CallbackInfo &info)
                    |                                                                   ^
              ../cpp/opengpio.cpp:28:62: note: ‘<typeprefixerror>line’ declared here
                 28 |     Napi::Function getter = Napi::Function::New(info.Env(), [line](const Napi::CallbackInfo &info)
                    |                                                              ^~~~
              ../cpp/opengpio.cpp: In function ‘Napi::Array GpioOutput(const Napi::CallbackInfo&)’:
              ../cpp/opengpio.cpp:49:17: error: expected primary-expression before ‘line’
                 49 |     gpiod::line line = chip.get_line(lineNumber);
                    |                 ^~~~
              ../cpp/opengpio.cpp:54:9: error: ‘line’ was not declared in this scope; did you mean ‘gpiod::line’?
                 54 |         line.request({resourceName, gpiod::line_request::DIRECTION_OUTPUT, 0}, 1);
                    |         ^~~~
                    |         gpiod::line
              /usr/include/gpiodcxx/line.hpp:24:11: note: ‘gpiod::line’ declared here
                 24 | namespace line {
                    |           ^~~~
              ../cpp/opengpio.cpp:54:58: error: ‘DIRECTION_OUTPUT’ is not a member of ‘gpiod::line_request’
                 54 |         line.request({resourceName, gpiod::line_request::DIRECTION_OUTPUT, 0}, 1);
                    |                                                          ^~~~~~~~~~~~~~~~
              ../cpp/opengpio.cpp:63:62: error: ‘line’ was not declared in this scope; did you mean ‘gpiod::line’?
                 63 |     Napi::Function setter = Napi::Function::New(info.Env(), [line](const Napi::CallbackInfo &info)
                    |                                                              ^~~~
                    |                                                              gpiod::line
              /usr/include/gpiodcxx/line.hpp:24:11: note: ‘gpiod::line’ declared here
                 24 | namespace line {
                    |           ^~~~
              ../cpp/opengpio.cpp: In lambda function:
              ../cpp/opengpio.cpp:66:9: error: ‘line’ is not captured
                 66 |         line.set_value(value); });
                    |         ^~~~
              ../cpp/opengpio.cpp:63:66: note: the lambda has no capture-default
                 63 |     Napi::Function setter = Napi::Function::New(info.Env(), [line](const Napi::CallbackInfo &info)
                    |                                                                  ^
              ../cpp/opengpio.cpp:63:62: note: ‘<typeprefixerror>line’ declared here
                 63 |     Napi::Function setter = Napi::Function::New(info.Env(), [line](const Napi::CallbackInfo &info)
                    |                                                              ^~~~
              ../cpp/opengpio.cpp: In lambda function:
              ../cpp/opengpio.cpp:69:52: error: ‘line’ is not captured
                 69 |                                                  { line.release(); });
                    |                                                    ^~~~
              ../cpp/opengpio.cpp:68:67: note: the lambda has no capture-default
                 68 |     Napi::Function cleanup = Napi::Function::New(info.Env(), [line](const Napi::CallbackInfo &info)
                    |                                                                   ^
              ../cpp/opengpio.cpp:63:62: note: ‘<typeprefixerror>line’ declared here
                 63 |     Napi::Function setter = Napi::Function::New(info.Env(), [line](const Napi::CallbackInfo &info)
                    |                                                              ^~~~
              ../cpp/opengpio.cpp: At global scope:
              ../cpp/opengpio.cpp:81:12: error: ‘line’ in namespace ‘gpiod’ does not name a type
                 81 |     gpiod::line line;
                    |            ^~~~
              /usr/include/gpiodcxx/line.hpp:24:11: note: ‘gpiod::line’ declared here
                 24 | namespace line {
                    |           ^~~~
              ../cpp/opengpio.cpp: In function ‘Napi::Array GpioWatch(const Napi::CallbackInfo&)’:
              ../cpp/opengpio.cpp:92:17: error: expected primary-expression before ‘line’
                 92 |     gpiod::line line = chip.get_line(lineNumber);
                    |                 ^~~~
              ../cpp/opengpio.cpp:100:9: error: ‘line’ was not declared in this scope; did you mean ‘gpiod::line’?
                100 |         line.request({resourceName, gpiod::line_request::EVENT_BOTH_EDGES, 0}, 0);
                    |         ^~~~
                    |         gpiod::line
              /usr/include/gpiodcxx/line.hpp:24:11: note: ‘gpiod::line’ declared here
                 24 | namespace line {
                    |           ^~~~
              ../cpp/opengpio.cpp:100:58: error: ‘EVENT_BOTH_EDGES’ is not a member of ‘gpiod::line_request’
                100 |         line.request({resourceName, gpiod::line_request::EVENT_BOTH_EDGES, 0}, 0);
                    |                                                          ^~~~~~~~~~~~~~~~
              ../cpp/opengpio.cpp:109:62: error: ‘line’ was not declared in this scope; did you mean ‘gpiod::line’?
                109 |     Napi::Function getter = Napi::Function::New(info.Env(), [line](const Napi::CallbackInfo &info)
                    |                                                              ^~~~
                    |                                                              gpiod::line
              /usr/include/gpiodcxx/line.hpp:24:11: note: ‘gpiod::line’ declared here
                 24 | namespace line {
                    |           ^~~~
              ../cpp/opengpio.cpp: In lambda function:
              ../cpp/opengpio.cpp:111:22: error: ‘line’ is not captured
                111 |         bool value = line.get_value();
                    |                      ^~~~
              ../cpp/opengpio.cpp:109:66: note: the lambda has no capture-default
                109 |     Napi::Function getter = Napi::Function::New(info.Env(), [line](const Napi::CallbackInfo &info)
                    |                                                                  ^
              ../cpp/opengpio.cpp:109:62: note: ‘<typeprefixerror>line’ declared here
                109 |     Napi::Function getter = Napi::Function::New(info.Env(), [line](const Napi::CallbackInfo &info)
                    |                                                              ^~~~
              ../cpp/opengpio.cpp: In function ‘Napi::Array GpioWatch(const Napi::CallbackInfo&)’:
              ../cpp/opengpio.cpp:115:11: error: ‘struct WatchContext’ has no member named ‘line’
                115 |     data->line = line;
                    |           ^~~~
              ../cpp/opengpio.cpp: In lambda function:
              ../cpp/opengpio.cpp:127:25: error: expected primary-expression before ‘line’
                127 |             gpiod::line line = data->line;
                    |                         ^~~~
              ../cpp/opengpio.cpp:131:33: error: ‘line’ is not captured
                131 |                 bool hasEvent = line.event_wait(chrono::milliseconds(1));
                    |                                 ^~~~
              ../cpp/opengpio.cpp:124:10: note: the lambda has no capture-default
                124 |         [](uv_work_t *req)
                    |          ^
              ../cpp/opengpio.cpp:109:62: note: ‘<typeprefixerror>line’ declared here
                109 |     Napi::Function getter = Napi::Function::New(info.Env(), [line](const Napi::CallbackInfo &info)
                    |                                                              ^~~~
              ../cpp/opengpio.cpp:134:28: error: ‘line_event’ is not a member of ‘gpiod’; did you mean ‘info_event’?
                134 |                     gpiod::line_event event = line.event_read();
                    |                            ^~~~~~~~~~
                    |                            info_event
              ../cpp/opengpio.cpp:135:34: error: ‘event’ was not declared in this scope; did you mean ‘servent’?
                135 |                     bool value = event.event_type == gpiod::line_event::RISING_EDGE ? true : false;
                    |                                  ^~~~~
                    |                                  servent
              ../cpp/opengpio.cpp:135:61: error: ‘gpiod::line_event’ has not been declared
                135 |                     bool value = event.event_type == gpiod::line_event::RISING_EDGE ? true : false;
                    |                                                             ^~~~~~~~~~
              ../cpp/opengpio.cpp: In lambda function:
              ../cpp/opengpio.cpp:147:19: error: ‘struct WatchContext’ has no member named ‘line’
                147 |             data->line.release();
                    |                   ^~~~
              ../cpp/opengpio.cpp: At global scope:
              ../cpp/opengpio.cpp:168:12: error: ‘line’ in namespace ‘gpiod’ does not name a type
                168 |     gpiod::line line;
                    |            ^~~~
              /usr/include/gpiodcxx/line.hpp:24:11: note: ‘gpiod::line’ declared here
                 24 | namespace line {
                    |           ^~~~
              ../cpp/opengpio.cpp: In function ‘Napi::Array GpioPwm(const Napi::CallbackInfo&)’:
              ../cpp/opengpio.cpp:196:17: error: expected primary-expression before ‘line’
                196 |     gpiod::line line = chip.get_line(lineNumber);
                    |                 ^~~~
              ../cpp/opengpio.cpp:201:9: error: ‘line’ was not declared in this scope; did you mean ‘gpiod::line’?
                201 |         line.request({resourceName, gpiod::line_request::DIRECTION_OUTPUT, 0}, 1);
                    |         ^~~~
                    |         gpiod::line
              /usr/include/gpiodcxx/line.hpp:24:11: note: ‘gpiod::line’ declared here
                 24 | namespace line {
                    |           ^~~~
              ../cpp/opengpio.cpp:201:58: error: ‘DIRECTION_OUTPUT’ is not a member of ‘gpiod::line_request’
                201 |         line.request({resourceName, gpiod::line_request::DIRECTION_OUTPUT, 0}, 1);
                    |                                                          ^~~~~~~~~~~~~~~~
              ../cpp/opengpio.cpp:213:11: error: ‘struct PwmContext’ has no member named ‘line’
                213 |     data->line = line;
                    |           ^~~~
              ../cpp/opengpio.cpp:213:18: error: ‘line’ was not declared in this scope; did you mean ‘gpiod::line’?
                213 |     data->line = line;
                    |                  ^~~~
                    |                  gpiod::line
              /usr/include/gpiodcxx/line.hpp:24:11: note: ‘gpiod::line’ declared here
                 24 | namespace line {
                    |           ^~~~
              ../cpp/opengpio.cpp: In lambda function:
              ../cpp/opengpio.cpp:224:25: error: expected primary-expression before ‘line’
                224 |             gpiod::line line = data->line;
                    |                         ^~~~
              ../cpp/opengpio.cpp:264:17: error: ‘line’ is not captured
                264 |                 line.set_value(true);
                    |                 ^~~~
              ../cpp/opengpio.cpp:221:10: note: the lambda has no capture-default
                221 |         [](uv_work_t *req)
                    |          ^
              ../cpp/opengpio.cpp:213:18: note: ‘<typeprefixerror>line’ declared here
                213 |     data->line = line;
                    |                  ^~~~
              ../cpp/opengpio.cpp:278:17: error: ‘line’ is not captured
                278 |                 line.set_value(false);
                    |                 ^~~~
              ../cpp/opengpio.cpp:221:10: note: the lambda has no capture-default
                221 |         [](uv_work_t *req)
                    |          ^
              ../cpp/opengpio.cpp:213:18: note: ‘<typeprefixerror>line’ declared here
                213 |     data->line = line;
                    |                  ^~~~
              ../cpp/opengpio.cpp: In lambda function:
              ../cpp/opengpio.cpp:327:25: error: expected primary-expression before ‘line’
                327 |             gpiod::line line = data->line;
                    |                         ^~~~
              ../cpp/opengpio.cpp:328:13: error: ‘line’ is not captured
                328 |             line.release();
                    |             ^~~~
              ../cpp/opengpio.cpp:324:10: note: the lambda has no capture-default
                324 |         [](uv_work_t *req, int status)
                    |          ^
              ../cpp/opengpio.cpp:213:18: note: ‘<typeprefixerror>line’ declared here
                213 |     data->line = line;
                    |                  ^~~~
              make: *** [opengpio.target.mk:108: Release/obj.target/opengpio/cpp/opengpio.o] Fehler 1
              make: Verzeichnis „/opt/iobroker/node_modules/opengpio/build“ wird verlassen
              gyp ERR! build error
              gyp ERR! stack Error: `make` failed with exit code: 2
              gyp ERR! stack at ChildProcess.<anonymous> (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:219:23)
              gyp ERR! System Linux 6.12.62+rpt-rpi-v8
              gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
              gyp ERR! cwd /opt/iobroker/node_modules/opengpio
              gyp ERR! node -v v22.22.0
              gyp ERR! node-gyp -v v11.2.0
              gyp ERR! not ok
              npm error code 1
              npm error path /opt/iobroker/node_modules/opengpio
              npm error command failed
              npm error command sh -c node-gyp rebuild
              npm error A complete log of this run can be found in: /home/iobroker/.npm/_logs/2026-02-09T13_47_48_434Z-debug-0.log
              gyp info it worked if it ends with ok
              gyp info using node-gyp@11.2.0
              gyp info using node@22.22.0 | linux | arm64
              gyp info find Python using Python version 3.13.5 found at "/usr/bin/python3"
              gyp info spawn /usr/bin/python3
              gyp info spawn args [
              gyp info spawn args '/usr/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',
              gyp info spawn args 'binding.gyp',
              gyp info spawn args '-f',
              gyp info spawn args 'make',
              gyp info spawn args '-I',
              gyp info spawn args '/opt/iobroker/node_modules/node-dht-sensor/build/config.gypi',
              gyp info spawn args '-I',
              gyp info spawn args '/usr/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
              gyp info spawn args '-I',
              gyp info spawn args '/home/iobroker/.cache/node-gyp/22.22.0/include/node/common.gypi',
              gyp info spawn args '-Dlibrary=shared_library',
              gyp info spawn args '-Dvisibility=default',
              gyp info spawn args '-Dnode_root_dir=/home/iobroker/.cache/node-gyp/22.22.0',
              gyp info spawn args '-Dnode_gyp_dir=/usr/lib/node_modules/npm/node_modules/node-gyp',
              gyp info spawn args '-Dnode_lib_file=/home/iobroker/.cache/node-gyp/22.22.0/<(target_arch)/node.lib',
              gyp info spawn args '-Dmodule_root_dir=/opt/iobroker/node_modules/node-dht-sensor',
              gyp info spawn args '-Dnode_engine=v8',
              gyp info spawn args '--depth=.',
              gyp info spawn args '--no-parallel',
              gyp info spawn args '--generator-output',
              gyp info spawn args 'build',
              gyp info spawn args '-Goutput_dir=.'
              gyp info spawn args ]
              gyp info ok
              gyp info it worked if it ends with ok
              gyp info using node-gyp@11.2.0
              gyp info using node@22.22.0 | linux | arm64
              gyp info find Python using Python version 3.13.5 found at "/usr/bin/python3"
              gyp info spawn /usr/bin/python3
              gyp info spawn args [
              gyp info spawn args '/usr/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',
              gyp info spawn args 'binding.gyp',
              gyp info spawn args '-f',
              gyp info spawn args 'make',
              gyp info spawn args '-I',
              gyp info spawn args '/opt/iobroker/node_modules/opengpio/build/config.gypi',
              gyp info spawn args '-I',
              gyp info spawn args '/usr/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
              gyp info spawn args '-I',
              gyp info spawn args '/home/iobroker/.cache/node-gyp/22.22.0/include/node/common.gypi',
              gyp info spawn args '-Dlibrary=shared_library',
              gyp info spawn args '-Dvisibility=default',
              gyp info spawn args '-Dnode_root_dir=/home/iobroker/.cache/node-gyp/22.22.0',
              gyp info spawn args '-Dnode_gyp_dir=/usr/lib/node_modules/npm/node_modules/node-gyp',
              gyp info spawn args '-Dnode_lib_file=/home/iobroker/.cache/node-gyp/22.22.0/<(target_arch)/node.lib',
              gyp info spawn args '-Dmodule_root_dir=/opt/iobroker/node_modules/opengpio',
              gyp info spawn args '-Dnode_engine=v8',
              gyp info spawn args '--depth=.',
              gyp info spawn args '--no-parallel',
              gyp info spawn args '--generator-output',
              gyp info spawn args 'build',
              gyp info spawn args '-Goutput_dir=.'
              gyp info spawn args ]
              gyp info spawn make
              gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
              ../cpp/opengpio.cpp: In function ‘Napi::Array GpioInput(const Napi::CallbackInfo&)’:
              ../cpp/opengpio.cpp:14:17: error: expected primary-expression before ‘line’
                 14 |     gpiod::line line = chip.get_line(lineNumber);
                    |                 ^~~~
              ../cpp/opengpio.cpp:19:9: error: ‘line’ was not declared in this scope; did you mean ‘gpiod::line’?
                 19 |         line.request({resourceName, gpiod::line_request::DIRECTION_INPUT, 0});
                    |         ^~~~
                    |         gpiod::line
              In file included from /usr/include/gpiodcxx/chip.hpp:21,
                               from /usr/include/gpiod.hpp:27,
                               from ../cpp/opengpio.cpp:3:
              /usr/include/gpiodcxx/line.hpp:24:11: note: ‘gpiod::line’ declared here
                 24 | namespace line {
                    |           ^~~~
              ../cpp/opengpio.cpp:19:58: error: ‘DIRECTION_INPUT’ is not a member of ‘gpiod::line_request’
                 19 |         line.request({resourceName, gpiod::line_request::DIRECTION_INPUT, 0});
                    |                                                          ^~~~~~~~~~~~~~~
              ../cpp/opengpio.cpp:28:62: error: ‘line’ was not declared in this scope; did you mean ‘gpiod::line’?
                 28 |     Napi::Function getter = Napi::Function::New(info.Env(), [line](const Napi::CallbackInfo &info)
                    |                                                              ^~~~
                    |                                                              gpiod::line
              /usr/include/gpiodcxx/line.hpp:24:11: note: ‘gpiod::line’ declared here
                 24 | namespace line {
                    |           ^~~~
              ../cpp/opengpio.cpp: In lambda function:
              ../cpp/opengpio.cpp:30:22: error: ‘line’ is not captured
                 30 |         bool value = line.get_value();
                    |                      ^~~~
              ../cpp/opengpio.cpp:28:66: note: the lambda has no capture-default
                 28 |     Napi::Function getter = Napi::Function::New(info.Env(), [line](const Napi::CallbackInfo &info)
                    |                                                                  ^
              ../cpp/opengpio.cpp:28:62: note: ‘<typeprefixerror>line’ declared here
                 28 |     Napi::Function getter = Napi::Function::New(info.Env(), [line](const Napi::CallbackInfo &info)
                    |                                                              ^~~~
              ../cpp/opengpio.cpp: In lambda function:
              ../cpp/opengpio.cpp:34:52: error: ‘line’ is not captured
                 34 |                                                  { line.release(); });
                    |                                                    ^~~~
              ../cpp/opengpio.cpp:33:67: note: the lambda has no capture-default
                 33 |     Napi::Function cleanup = Napi::Function::New(info.Env(), [line](const Napi::CallbackInfo &info)
                    |                                                                   ^
              ../cpp/opengpio.cpp:28:62: note: ‘<typeprefixerror>line’ declared here
                 28 |     Napi::Function getter = Napi::Function::New(info.Env(), [line](const Napi::CallbackInfo &info)
                    |                                                              ^~~~
              ../cpp/opengpio.cpp: In function ‘Napi::Array GpioOutput(const Napi::CallbackInfo&)’:
              ../cpp/opengpio.cpp:49:17: error: expected primary-expression before ‘line’
                 49 |     gpiod::line line = chip.get_line(lineNumber);
                    |                 ^~~~
              ../cpp/opengpio.cpp:54:9: error: ‘line’ was not declared in this scope; did you mean ‘gpiod::line’?
                 54 |         line.request({resourceName, gpiod::line_request::DIRECTION_OUTPUT, 0}, 1);
                    |         ^~~~
                    |         gpiod::line
              /usr/include/gpiodcxx/line.hpp:24:11: note: ‘gpiod::line’ declared here
                 24 | namespace line {
                    |           ^~~~
              ../cpp/opengpio.cpp:54:58: error: ‘DIRECTION_OUTPUT’ is not a member of ‘gpiod::line_request’
                 54 |         line.request({resourceName, gpiod::line_request::DIRECTION_OUTPUT, 0}, 1);
                    |                                                          ^~~~~~~~~~~~~~~~
              ../cpp/opengpio.cpp:63:62: error: ‘line’ was not declared in this scope; did you mean ‘gpiod::line’?
                 63 |     Napi::Function setter = Napi::Function::New(info.Env(), [line](const Napi::CallbackInfo &info)
                    |                                                              ^~~~
                    |                                                              gpiod::line
              /usr/include/gpiodcxx/line.hpp:24:11: note: ‘gpiod::line’ declared here
                 24 | namespace line {
                    |           ^~~~
              ../cpp/opengpio.cpp: In lambda function:
              ../cpp/opengpio.cpp:66:9: error: ‘line’ is not captured
                 66 |         line.set_value(value); });
                    |         ^~~~
              ../cpp/opengpio.cpp:63:66: note: the lambda has no capture-default
                 63 |     Napi::Function setter = Napi::Function::New(info.Env(), [line](const Napi::CallbackInfo &info)
                    |                                                                  ^
              ../cpp/opengpio.cpp:63:62: note: ‘<typeprefixerror>line’ declared here
                 63 |     Napi::Function setter = Napi::Function::New(info.Env(), [line](const Napi::CallbackInfo &info)
                    |                                                              ^~~~
              ../cpp/opengpio.cpp: In lambda function:
              ../cpp/opengpio.cpp:69:52: error: ‘line’ is not captured
                 69 |                                                  { line.release(); });
                    |                                                    ^~~~
              ../cpp/opengpio.cpp:68:67: note: the lambda has no capture-default
                 68 |     Napi::Function cleanup = Napi::Function::New(info.Env(), [line](const Napi::CallbackInfo &info)
                    |                                                                   ^
              ../cpp/opengpio.cpp:63:62: note: ‘<typeprefixerror>line’ declared here
                 63 |     Napi::Function setter = Napi::Function::New(info.Env(), [line](const Napi::CallbackInfo &info)
                    |                                                              ^~~~
              ../cpp/opengpio.cpp: At global scope:
              ../cpp/opengpio.cpp:81:12: error: ‘line’ in namespace ‘gpiod’ does not name a type
                 81 |     gpiod::line line;
                    |            ^~~~
              /usr/include/gpiodcxx/line.hpp:24:11: note: ‘gpiod::line’ declared here
                 24 | namespace line {
                    |           ^~~~
              ../cpp/opengpio.cpp: In function ‘Napi::Array GpioWatch(const Napi::CallbackInfo&)’:
              ../cpp/opengpio.cpp:92:17: error: expected primary-expression before ‘line’
                 92 |     gpiod::line line = chip.get_line(lineNumber);
                    |                 ^~~~
              ../cpp/opengpio.cpp:100:9: error: ‘line’ was not declared in this scope; did you mean ‘gpiod::line’?
                100 |         line.request({resourceName, gpiod::line_request::EVENT_BOTH_EDGES, 0}, 0);
                    |         ^~~~
                    |         gpiod::line
              /usr/include/gpiodcxx/line.hpp:24:11: note: ‘gpiod::line’ declared here
                 24 | namespace line {
                    |           ^~~~
              ../cpp/opengpio.cpp:100:58: error: ‘EVENT_BOTH_EDGES’ is not a member of ‘gpiod::line_request’
                100 |         line.request({resourceName, gpiod::line_request::EVENT_BOTH_EDGES, 0}, 0);
                    |                                                          ^~~~~~~~~~~~~~~~
              ../cpp/opengpio.cpp:109:62: error: ‘line’ was not declared in this scope; did you mean ‘gpiod::line’?
                109 |     Napi::Function getter = Napi::Function::New(info.Env(), [line](const Napi::CallbackInfo &info)
                    |                                                              ^~~~
                    |                                                              gpiod::line
              /usr/include/gpiodcxx/line.hpp:24:11: note: ‘gpiod::line’ declared here
                 24 | namespace line {
                    |           ^~~~
              ../cpp/opengpio.cpp: In lambda function:
              ../cpp/opengpio.cpp:111:22: error: ‘line’ is not captured
                111 |         bool value = line.get_value();
                    |                      ^~~~
              ../cpp/opengpio.cpp:109:66: note: the lambda has no capture-default
                109 |     Napi::Function getter = Napi::Function::New(info.Env(), [line](const Napi::CallbackInfo &info)
                    |                                                                  ^
              ../cpp/opengpio.cpp:109:62: note: ‘<typeprefixerror>line’ declared here
                109 |     Napi::Function getter = Napi::Function::New(info.Env(), [line](const Napi::CallbackInfo &info)
                    |                                                              ^~~~
              ../cpp/opengpio.cpp: In function ‘Napi::Array GpioWatch(const Napi::CallbackInfo&)’:
              ../cpp/opengpio.cpp:115:11: error: ‘struct WatchContext’ has no member named ‘line’
                115 |     data->line = line;
                    |           ^~~~
              ../cpp/opengpio.cpp: In lambda function:
              ../cpp/opengpio.cpp:127:25: error: expected primary-expression before ‘line’
                127 |             gpiod::line line = data->line;
                    |                         ^~~~
              ../cpp/opengpio.cpp:131:33: error: ‘line’ is not captured
                131 |                 bool hasEvent = line.event_wait(chrono::milliseconds(1));
                    |                                 ^~~~
              ../cpp/opengpio.cpp:124:10: note: the lambda has no capture-default
                124 |         [](uv_work_t *req)
                    |          ^
              ../cpp/opengpio.cpp:109:62: note: ‘<typeprefixerror>line’ declared here
                109 |     Napi::Function getter = Napi::Function::New(info.Env(), [line](const Napi::CallbackInfo &info)
                    |                                                              ^~~~
              ../cpp/opengpio.cpp:134:28: error: ‘line_event’ is not a member of ‘gpiod’; did you mean ‘info_event’?
                134 |                     gpiod::line_event event = line.event_read();
                    |                            ^~~~~~~~~~
                    |                            info_event
              ../cpp/opengpio.cpp:135:34: error: ‘event’ was not declared in this scope; did you mean ‘servent’?
                135 |                     bool value = event.event_type == gpiod::line_event::RISING_EDGE ? true : false;
                    |                                  ^~~~~
                    |                                  servent
              ../cpp/opengpio.cpp:135:61: error: ‘gpiod::line_event’ has not been declared
                135 |                     bool value = event.event_type == gpiod::line_event::RISING_EDGE ? true : false;
                    |                                                             ^~~~~~~~~~
              ../cpp/opengpio.cpp: In lambda function:
              ../cpp/opengpio.cpp:147:19: error: ‘struct WatchContext’ has no member named ‘line’
                147 |             data->line.release();
                    |                   ^~~~
              ../cpp/opengpio.cpp: At global scope:
              ../cpp/opengpio.cpp:168:12: error: ‘line’ in namespace ‘gpiod’ does not name a type
                168 |     gpiod::line line;
                    |            ^~~~
              /usr/include/gpiodcxx/line.hpp:24:11: note: ‘gpiod::line’ declared here
                 24 | namespace line {
                    |           ^~~~
              ../cpp/opengpio.cpp: In function ‘Napi::Array GpioPwm(const Napi::CallbackInfo&)’:
              ../cpp/opengpio.cpp:196:17: error: expected primary-expression before ‘line’
                196 |     gpiod::line line = chip.get_line(lineNumber);
                    |                 ^~~~
              ../cpp/opengpio.cpp:201:9: error: ‘line’ was not declared in this scope; did you mean ‘gpiod::line’?
                201 |         line.request({resourceName, gpiod::line_request::DIRECTION_OUTPUT, 0}, 1);
                    |         ^~~~
                    |         gpiod::line
              /usr/include/gpiodcxx/line.hpp:24:11: note: ‘gpiod::line’ declared here
                 24 | namespace line {
                    |           ^~~~
              ../cpp/opengpio.cpp:201:58: error: ‘DIRECTION_OUTPUT’ is not a member of ‘gpiod::line_request’
                201 |         line.request({resourceName, gpiod::line_request::DIRECTION_OUTPUT, 0}, 1);
                    |                                                          ^~~~~~~~~~~~~~~~
              ../cpp/opengpio.cpp:213:11: error: ‘struct PwmContext’ has no member named ‘line’
                213 |     data->line = line;
                    |           ^~~~
              ../cpp/opengpio.cpp:213:18: error: ‘line’ was not declared in this scope; did you mean ‘gpiod::line’?
                213 |     data->line = line;
                    |                  ^~~~
                    |                  gpiod::line
              /usr/include/gpiodcxx/line.hpp:24:11: note: ‘gpiod::line’ declared here
                 24 | namespace line {
                    |           ^~~~
              ../cpp/opengpio.cpp: In lambda function:
              ../cpp/opengpio.cpp:224:25: error: expected primary-expression before ‘line’
                224 |             gpiod::line line = data->line;
                    |                         ^~~~
              ../cpp/opengpio.cpp:264:17: error: ‘line’ is not captured
                264 |                 line.set_value(true);
                    |                 ^~~~
              ../cpp/opengpio.cpp:221:10: note: the lambda has no capture-default
                221 |         [](uv_work_t *req)
                    |          ^
              ../cpp/opengpio.cpp:213:18: note: ‘<typeprefixerror>line’ declared here
                213 |     data->line = line;
                    |                  ^~~~
              ../cpp/opengpio.cpp:278:17: error: ‘line’ is not captured
                278 |                 line.set_value(false);
                    |                 ^~~~
              ../cpp/opengpio.cpp:221:10: note: the lambda has no capture-default
                221 |         [](uv_work_t *req)
                    |          ^
              ../cpp/opengpio.cpp:213:18: note: ‘<typeprefixerror>line’ declared here
                213 |     data->line = line;
                    |                  ^~~~
              ../cpp/opengpio.cpp: In lambda function:
              ../cpp/opengpio.cpp:327:25: error: expected primary-expression before ‘line’
                327 |             gpiod::line line = data->line;
                    |                         ^~~~
              ../cpp/opengpio.cpp:328:13: error: ‘line’ is not captured
                328 |             line.release();
                    |             ^~~~
              ../cpp/opengpio.cpp:324:10: note: the lambda has no capture-default
                324 |         [](uv_work_t *req, int status)
                    |          ^
              ../cpp/opengpio.cpp:213:18: note: ‘<typeprefixerror>line’ declared here
                213 |     data->line = line;
                    |                  ^~~~
              make: *** [opengpio.target.mk:108: Release/obj.target/opengpio/cpp/opengpio.o] Fehler 1
              gyp ERR! build error
              gyp ERR! stack Error: `make` failed with exit code: 2
              gyp ERR! stack at ChildProcess.<anonymous> (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:219:23)
              gyp ERR! System Linux 6.12.62+rpt-rpi-v8
              gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
              gyp ERR! cwd /opt/iobroker/node_modules/opengpio
              gyp ERR! node -v v22.22.0
              gyp ERR! node-gyp -v v11.2.0
              gyp ERR! not ok
              npm error code 1
              npm error path /opt/iobroker/node_modules/opengpio
              npm error command failed
              npm error command sh -c node-gyp rebuild
              npm error A complete log of this run can be found in: /home/iobroker/.npm/_logs/2026-02-09T13_47_48_434Z-debug-0.log
              host.Raspi48GB Cannot install iobroker.rpi2@2.4.0: 1
              
              
              Thomas BraunT Online
              Thomas BraunT Online
              Thomas Braun
              Most Active
              schrieb am zuletzt editiert von
              #60

              @searcher57

              Irgendein 'build error'. Sieht irgendwie danach aus:
              https://github.com/ExpeditionExploration/opengpio/issues/37

              Installier mal die Beta-Version 3.0.2, damit sollte das funktionieren:

              latest:	3.0.2 for 70 days
              stable:	2.4.0 for 11 months
              

              Linux-Werkzeugkasten:
              https://forum.iobroker.net/topic/42952/der-kleine-iobroker-linux-werkzeugkasten
              NodeJS Fixer Skript:
              https://forum.iobroker.net/topic/68035/iob-node-fix-skript
              iob_diag: curl -sLf -o diag.sh https://iobroker.net/diag.sh && bash diag.sh

              1 Antwort Letzte Antwort
              2
              • S Offline
                S Offline
                searcher57
                schrieb am zuletzt editiert von
                #61

                Entschuldige kannst Du mir die Befehle geben?

                1 Antwort Letzte Antwort
                0
                • mcm1957M Online
                  mcm1957M Online
                  mcm1957
                  schrieb am zuletzt editiert von
                  #62

                  Welche Befehle?
                  Du kannst die 3er Version ganz normal im Admin UI aus dem LATEST Repository installieren.

                  Entwicklung u Betreuung: envertech-pv, hoymiles-ms, ns-client, pid, snmp Adapter;
                  Support Repositoryverwaltung.

                  Wer 'nen Kaffee spendieren will: https://paypal.me

                  LESEN - gute Forenbeitrage

                  1 Antwort Letzte Antwort
                  1
                  • S Offline
                    S Offline
                    searcher57
                    schrieb am zuletzt editiert von
                    #63

                    Also ich steh auf dem Schlauch!

                    1 Antwort Letzte Antwort
                    0
                    • S Offline
                      S Offline
                      searcher57
                      schrieb am zuletzt editiert von
                      #64

                      Nicht mehr. Ich habs geschafft. Die Instanz ist erfolgreich gestartet. Danke!!

                      1 Antwort Letzte Antwort
                      0

                      Hey! Du scheinst an dieser Unterhaltung interessiert zu sein, hast aber noch kein Konto.

                      Hast du es satt, bei jedem Besuch durch die gleichen Beiträge zu scrollen? Wenn du dich für ein Konto anmeldest, kommst du immer genau dorthin zurück, wo du zuvor warst, und kannst dich über neue Antworten benachrichtigen lassen (entweder per E-Mail oder Push-Benachrichtigung). Du kannst auch Lesezeichen speichern und Beiträge positiv bewerten, um anderen Community-Mitgliedern deine Wertschätzung zu zeigen.

                      Mit deinem Input könnte dieser Beitrag noch besser werden 💗

                      Registrieren Anmelden
                      Antworten
                      • In einem neuen Thema antworten
                      Anmelden zum Antworten
                      • Älteste zuerst
                      • Neuste zuerst
                      • Meiste Stimmen


                      Support us

                      ioBroker
                      Community Adapters
                      Donate
                      FAQ Cloud / IOT
                      HowTo: Node.js-Update
                      HowTo: Backup/Restore
                      Downloads
                      BLOG

                      573

                      Online

                      32.7k

                      Benutzer

                      82.6k

                      Themen

                      1.3m

                      Beiträge
                      Community
                      Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen | Einwilligungseinstellungen
                      ioBroker Community 2014-2025
                      logo
                      • Anmelden

                      • Du hast noch kein Konto? Registrieren

                      • Anmelden oder registrieren, um zu suchen
                      • Erster Beitrag
                        Letzter Beitrag
                      0
                      • Home
                      • Aktuell
                      • Tags
                      • Ungelesen 0
                      • Kategorien
                      • Unreplied
                      • Beliebt
                      • GitHub
                      • Docu
                      • Hilfe