NEWS
[GELÖST] ble Adapter macht Probleme auf Raspi 5
-
Hallo liebe IoT Gemeinde,
ich habe mein produktives IoT System auf meinen Raspi 5 8GB umgezogen. Die Wiederherstellung hat weitestgehend geklappt. Leider habe ich gemerkt, dass mein Kater nicht mehr ins Haus kommt.
der BLE Adapter ist zwar grün, jedoch werden keine Bluetooth Daten empfangen.Im Log konnte ich diesen Eintrag finden. Ich schätze hier liegt das Problem.
Leider sagt mir diese Meldung überhaupt nichts.
Kann mir jemand einen Tipp geben ?Vielen Dank
Cannot find module '@abandonware/bluetooth-hci-socket'Require stack:- /opt/iobroker/node_modules/@abandonware/noble/lib/hci-socket/hci.js- /opt/iobroker/node_modules/@abandonware/noble/lib/hci-socket/bindings.js- /opt/iobroker/node_modules/@abandonware/noble/lib/resolve-bindings.js- /opt/iobroker/node_modules/@abandonware/noble/with-custom-binding.js- /opt/iobroker/node_modules/@abandonware/noble/index.js- /opt/iobroker/node_modules/iobroker.ble/build/scanProcess.js
-
Installier den ble Adapter nochmal, mit --debug Option.
-
$ iobroker add ble --host iobroker NPM version: 10.2.3 Installing iobroker.ble@0.14.0... (System call) 145 packages are looking for funding run `npm fund` for details host.iobroker install adapter ble upload [5] ble.admin /opt/iobroker/node_modules/iobroker.ble/admin/.eslintrc.js .eslintrc.js application/javascript upload [3] ble.admin /opt/iobroker/node_modules/iobroker.ble/admin/build/index.js build/index.js application/javascript upload [2] ble.admin /opt/iobroker/node_modules/iobroker.ble/admin/build/index.js.map build/index.js.map application/json upload [1] ble.admin /opt/iobroker/node_modules/iobroker.ble/admin/index_m.html index_m.html text/html upload [0] ble.admin /opt/iobroker/node_modules/iobroker.ble/admin/style.css style.css text/css host.iobroker object system.adapter.ble created/updated host.iobroker object system.adapter.ble.0.memHeapUsed created host.iobroker object system.adapter.ble.0.memHeapTotal created host.iobroker object system.adapter.ble.0.memRss created host.iobroker object system.adapter.ble.0.uptime created host.iobroker object system.adapter.ble.0.inputCount created host.iobroker object system.adapter.ble.0.outputCount created host.iobroker object system.adapter.ble.0.eventLoopLag created host.iobroker object system.adapter.ble.0.sigKill created host.iobroker object system.adapter.ble.0.logLevel created host.iobroker object ble.0.info created host.iobroker object ble.0.info.connection created host.iobroker object ble.0.info.driverState created host.iobroker object ble.0.options created host.iobroker object ble.0.options.allowNewDevices created host.iobroker Set default value of ble.0.options.allowNewDevices: false host.iobroker object system.adapter.ble.0 created Process exited with code 0
-
@thomas-braun said in ble Adapter macht Probleme auf Raspi 5:
Installier den ble Adapter nochmal, mit --debug Option.
Hab den BLE Adapter deinstalliert und neuinstalliert.
Jetzt bleibt er auf Gelb stehen. Fehlermeldung noch die gleiche -
@wauzzi sagte in ble Adapter macht Probleme auf Raspi 5:
Fehlermeldung noch die gleiche
gehe diesen Thread mal durch :
https://forum.iobroker.net/post/150869 -
@glasfaser said in ble Adapter macht Probleme auf Raspi 5:
@wauzzi sagte in ble Adapter macht Probleme auf Raspi 5:
Fehlermeldung noch die gleiche
gehe diesen Thread mal durch :
https://forum.iobroker.net/post/150869Danke für Deinen Tipp !
Beim Versuch "npm install bluetooth-hci-socket" durchzuführen erhalte ich diese Meldungen. Ich schätze irgendwo ist der Wurm drin
admin@iobroker:~ $ sudo npm install bluetooth-hci-socket npm ERR! code 1 npm ERR! path /home/admin/node_modules/bluetooth-hci-socket npm ERR! command failed npm ERR! command sh -c node-gyp rebuild npm ERR! make: Entering directory '/home/admin/node_modules/bluetooth-hci-socket/build' npm ERR! CXX(target) Release/obj.target/binding/src/BluetoothHciSocket.o npm ERR! make: Leaving directory '/home/admin/node_modules/bluetooth-hci-socket/build' npm ERR! gyp info it worked if it ends with ok npm ERR! gyp info using node-gyp@10.0.1 npm ERR! gyp info using node@18.19.0 | linux | arm64 npm ERR! gyp info find Python using Python version 3.11.2 found at "/usr/bin/python3" npm ERR! gyp info spawn /usr/bin/python3 npm ERR! gyp info spawn args [ npm ERR! gyp info spawn args '/usr/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py', npm ERR! gyp info spawn args 'binding.gyp', npm ERR! gyp info spawn args '-f', npm ERR! gyp info spawn args 'make', npm ERR! gyp info spawn args '-I', npm ERR! gyp info spawn args '/home/admin/node_modules/bluetooth-hci-socket/build/config.gypi', npm ERR! gyp info spawn args '-I', npm ERR! gyp info spawn args '/usr/lib/node_modules/npm/node_modules/node-gyp/addon.gypi', npm ERR! gyp info spawn args '-I', npm ERR! gyp info spawn args '/root/.cache/node-gyp/18.19.0/include/node/common.gypi', npm ERR! gyp info spawn args '-Dlibrary=shared_library', npm ERR! gyp info spawn args '-Dvisibility=default', npm ERR! gyp info spawn args '-Dnode_root_dir=/root/.cache/node-gyp/18.19.0', npm ERR! gyp info spawn args '-Dnode_gyp_dir=/usr/lib/node_modules/npm/node_modules/node-gyp', npm ERR! gyp info spawn args '-Dnode_lib_file=/root/.cache/node-gyp/18.19.0/<(target_arch)/node.lib', npm ERR! gyp info spawn args '-Dmodule_root_dir=/home/admin/node_modules/bluetooth-hci-socket', npm ERR! gyp info spawn args '-Dnode_engine=v8', npm ERR! gyp info spawn args '--depth=.', npm ERR! gyp info spawn args '--no-parallel', npm ERR! gyp info spawn args '--generator-output', npm ERR! gyp info spawn args 'build', npm ERR! gyp info spawn args '-Goutput_dir=.' npm ERR! gyp info spawn args ] npm ERR! gyp info spawn make npm ERR! gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ] npm ERR! ../src/BluetoothHciSocket.cpp: In static member function ‘static void BluetoothHciSocket::Init(Nan::ADDON_REGISTER_FUNCTION_ARGS_TYPE)’: npm ERR! ../src/BluetoothHciSocket.cpp:128:81: error: no matching function for call to ‘v8::FunctionTemplate::GetFunction()’ npm ERR! 128 | target->Set(Nan::New("BluetoothHciSocket").ToLocalChecked(), tmpl->GetFunction()); npm ERR! | ~~~~~~~~~~~~~~~~~^~ npm ERR! In file included from /root/.cache/node-gyp/18.19.0/include/node/v8-function.h:15, npm ERR! from /root/.cache/node-gyp/18.19.0/include/node/v8.h:33, npm ERR! from /root/.cache/node-gyp/18.19.0/include/node/node.h:73, npm ERR! from /root/.cache/node-gyp/18.19.0/include/node/node_buffer.h:25, npm ERR! from ../src/BluetoothHciSocket.cpp:7: npm ERR! /root/.cache/node-gyp/18.19.0/include/node/v8-template.h:513:46: note: candidate: ‘v8::MaybeLocal<v8::Function> v8::FunctionTemplate::GetFunction(v8::Local<v8::Context>)’ npm ERR! 513 | V8_WARN_UNUSED_RESULT MaybeLocal<Function> GetFunction( npm ERR! | ^~~~~~~~~~~ npm ERR! /root/.cache/node-gyp/18.19.0/include/node/v8-template.h:513:46: note: candidate expects 1 argument, 0 provided npm ERR! ../src/BluetoothHciSocket.cpp: In member function ‘void BluetoothHciSocket::poll()’: npm ERR! ../src/BluetoothHciSocket.cpp:251:22: warning: ‘v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, v8::Local<v8::String>, int, v8::Local<v8::Value>*)’ is deprecated [-Wdeprecated-declarations] npm ERR! 251 | Nan::MakeCallback(Nan::New<Object>(this->This), Nan::New("emit").ToLocalChecked(), 2, argv); npm ERR! | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ npm ERR! In file included from ../src/BluetoothHciSocket.cpp:8: npm ERR! ../../nan/nan.h:1053:46: note: declared here npm ERR! 1053 | NAN_DEPRECATED inline v8::Local<v8::Value> MakeCallback( npm ERR! | ^~~~~~~~~~~~ npm ERR! ../src/BluetoothHciSocket.cpp: In member function ‘void BluetoothHciSocket::emitErrnoError()’: npm ERR! ../src/BluetoothHciSocket.cpp:269:74: error: no matching function for call to ‘v8::Object::Get(v8::Local<v8::String>)’ npm ERR! 269 | Local<Function> errorConstructor = Local<Function>::Cast(globalObj->Get(Nan::New("Error").ToLocalChecked())); npm ERR! | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ npm ERR! In file included from /root/.cache/node-gyp/18.19.0/include/node/v8-array-buffer.h:13, npm ERR! from /root/.cache/node-gyp/18.19.0/include/node/v8.h:24: npm ERR! /root/.cache/node-gyp/18.19.0/include/node/v8-object.h:290:43: note: candidate: ‘v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, v8::Local<v8::Value>)’ npm ERR! 290 | V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context, npm ERR! | ^~~ npm ERR! /root/.cache/node-gyp/18.19.0/include/node/v8-object.h:290:43: note: candidate expects 2 arguments, 1 provided npm ERR! /root/.cache/node-gyp/18.19.0/include/node/v8-object.h:293:43: note: candidate: ‘v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, uint32_t)’ npm ERR! 293 | V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context, npm ERR! | ^~~ npm ERR! /root/.cache/node-gyp/18.19.0/include/node/v8-object.h:293:43: note: candidate expects 2 arguments, 1 provided npm ERR! ../src/BluetoothHciSocket.cpp:275:53: error: no matching function for call to ‘v8::Function::NewInstance(int, v8::Local<v8::Value> [1])’ npm ERR! 275 | Local<Value> error = errorConstructor->NewInstance(1, constructorArgs); npm ERR! | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ npm ERR! /root/.cache/node-gyp/18.19.0/include/node/v8-function.h:38:44: note: candidate: ‘v8::MaybeLocal<v8::Object> v8::Function::NewInstance(v8::Local<v8::Context>, int, v8::Local<v8::Value>*) const’ npm ERR! 38 | V8_WARN_UNUSED_RESULT MaybeLocal<Object> NewInstance( npm ERR! | ^~~~~~~~~~~ npm ERR! /root/.cache/node-gyp/18.19.0/include/node/v8-function.h:38:44: note: candidate expects 3 arguments, 2 provided npm ERR! /root/.cache/node-gyp/18.19.0/include/node/v8-function.h:41:44: note: candidate: ‘v8::MaybeLocal<v8::Object> v8::Function::NewInstance(v8::Local<v8::Context>) const’ npm ERR! 41 | V8_WARN_UNUSED_RESULT MaybeLocal<Object> NewInstance( npm ERR! | ^~~~~~~~~~~ npm ERR! /root/.cache/node-gyp/18.19.0/include/node/v8-function.h:41:44: note: candidate expects 1 argument, 2 provided npm ERR! ../src/BluetoothHciSocket.cpp:282:20: warning: ‘v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, v8::Local<v8::String>, int, v8::Local<v8::Value>*)’ is deprecated [-Wdeprecated-declarations] npm ERR! 282 | Nan::MakeCallback(Nan::New<Object>(this->This), Nan::New("emit").ToLocalChecked(), 2, argv); npm ERR! | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ npm ERR! ../../nan/nan.h:1053:46: note: declared here npm ERR! 1053 | NAN_DEPRECATED inline v8::Local<v8::Value> MakeCallback( npm ERR! | ^~~~~~~~~~~~ npm ERR! ../src/BluetoothHciSocket.cpp: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE BluetoothHciSocket::BindRaw(Nan::NAN_METHOD_ARGS_TYPE)’: npm ERR! ../src/BluetoothHciSocket.cpp:395:33: error: no matching function for call to ‘v8::Value::IntegerValue()’ npm ERR! 395 | devId = arg0->IntegerValue(); npm ERR! | ~~~~~~~~~~~~~~~~~~^~ npm ERR! In file included from /root/.cache/node-gyp/18.19.0/include/node/v8-primitive.h:11, npm ERR! from /root/.cache/node-gyp/18.19.0/include/node/v8-object.h:11: npm ERR! /root/.cache/node-gyp/18.19.0/include/node/v8-value.h:413:40: note: candidate: ‘v8::Maybe<long int> v8::Value::IntegerValue(v8::Local<v8::Context>) const’ npm ERR! 413 | V8_WARN_UNUSED_RESULT Maybe<int64_t> IntegerValue( npm ERR! | ^~~~~~~~~~~~ npm ERR! /root/.cache/node-gyp/18.19.0/include/node/v8-value.h:413:40: note: candidate expects 1 argument, 0 provided npm ERR! ../src/BluetoothHciSocket.cpp: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE BluetoothHciSocket::BindUser(Nan::NAN_METHOD_ARGS_TYPE)’: npm ERR! ../src/BluetoothHciSocket.cpp:417:33: error: no matching function for call to ‘v8::Value::IntegerValue()’ npm ERR! 417 | devId = arg0->IntegerValue(); npm ERR! | ~~~~~~~~~~~~~~~~~~^~ npm ERR! /root/.cache/node-gyp/18.19.0/include/node/v8-value.h:413:40: note: candidate: ‘v8::Maybe<long int> v8::Value::IntegerValue(v8::Local<v8::Context>) const’ npm ERR! 413 | V8_WARN_UNUSED_RESULT Maybe<int64_t> IntegerValue( npm ERR! | ^~~~~~~~~~~~ npm ERR! /root/.cache/node-gyp/18.19.0/include/node/v8-value.h:413:40: note: candidate expects 1 argument, 0 provided npm ERR! ../src/BluetoothHciSocket.cpp: At global scope: npm ERR! /root/.cache/node-gyp/18.19.0/include/node/node.h:1014:7: warning: cast between incompatible function types from ‘void (*)(Nan::ADDON_REGISTER_FUNCTION_ARGS_TYPE)’ {aka ‘void (*)(v8::Local<v8::Object>)’} to ‘node::addon_register_func’ {aka ‘void (*)(v8::Local<v8::Object>, v8::Local<v8::Value>, void*)’} [-Wcast-function-type] npm ERR! 1014 | (node::addon_register_func) (regfunc), \ npm ERR! | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ npm ERR! /root/.cache/node-gyp/18.19.0/include/node/node.h:1048:3: note: in expansion of macro ‘NODE_MODULE_X’ npm ERR! 1048 | NODE_MODULE_X(modname, regfunc, NULL, 0) // NOLINT (readability/null_usage) npm ERR! | ^~~~~~~~~~~~~ npm ERR! ../src/BluetoothHciSocket.cpp:499:1: note: in expansion of macro ‘NODE_MODULE’ npm ERR! 499 | NODE_MODULE(binding, BluetoothHciSocket::Init); npm ERR! | ^~~~~~~~~~~ npm ERR! make: *** [binding.target.mk:111: Release/obj.target/binding/src/BluetoothHciSocket.o] Error 1 npm ERR! gyp ERR! build error npm ERR! gyp ERR! stack Error: `make` failed with exit code: 2 npm ERR! gyp ERR! stack at ChildProcess.<anonymous> (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:209:23) npm ERR! gyp ERR! System Linux 6.1.0-rpi8-rpi-2712 npm ERR! gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" npm ERR! gyp ERR! cwd /home/admin/node_modules/bluetooth-hci-socket npm ERR! gyp ERR! node -v v18.19.0 npm ERR! gyp ERR! node-gyp -v v10.0.1 npm ERR! gyp ERR! not ok npm ERR! A complete log of this run can be found in: /root/.npm/_logs/2024-02-10T22_07_22_661Z-debug-0.log admin@iobroker:~ $
-
@wauzzi sagte in ble Adapter macht Probleme auf Raspi 5:
Ich schätze irgendwo ist der Wurm drin
du stehst falsch
cd /opt/iobroker
-
@glasfaser said in ble Adapter macht Probleme auf Raspi 5:
@wauzzi sagte in ble Adapter macht Probleme auf Raspi 5:
Ich schätze irgendwo ist der Wurm drin
du stehst falsch
cd /opt/iobroker
selbes spiel
admin@iobroker:~ $ cd /opt/iobroker admin@iobroker:/opt/iobroker $ sudo npm install bluetooth-hci-socket npm ERR! code 1 npm ERR! path /opt/iobroker/node_modules/bluetooth-hci-socket npm ERR! command failed npm ERR! command sh -c node-gyp rebuild npm ERR! make: Entering directory '/opt/iobroker/node_modules/bluetooth-hci-socket/build' npm ERR! CXX(target) Release/obj.target/binding/src/BluetoothHciSocket.o npm ERR! make: Leaving directory '/opt/iobroker/node_modules/bluetooth-hci-socket/build' npm ERR! gyp info it worked if it ends with ok npm ERR! gyp info using node-gyp@10.0.1 npm ERR! gyp info using node@18.19.0 | linux | arm64 npm ERR! gyp info find Python using Python version 3.11.2 found at "/usr/bin/python3" npm ERR! gyp info spawn /usr/bin/python3 npm ERR! gyp info spawn args [ npm ERR! gyp info spawn args '/usr/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py', npm ERR! gyp info spawn args 'binding.gyp', npm ERR! gyp info spawn args '-f', npm ERR! gyp info spawn args 'make', npm ERR! gyp info spawn args '-I', npm ERR! gyp info spawn args '/opt/iobroker/node_modules/bluetooth-hci-socket/build/config.gypi', npm ERR! gyp info spawn args '-I', npm ERR! gyp info spawn args '/usr/lib/node_modules/npm/node_modules/node-gyp/addon.gypi', npm ERR! gyp info spawn args '-I', npm ERR! gyp info spawn args '/root/.cache/node-gyp/18.19.0/include/node/common.gypi', npm ERR! gyp info spawn args '-Dlibrary=shared_library', npm ERR! gyp info spawn args '-Dvisibility=default', npm ERR! gyp info spawn args '-Dnode_root_dir=/root/.cache/node-gyp/18.19.0', npm ERR! gyp info spawn args '-Dnode_gyp_dir=/usr/lib/node_modules/npm/node_modules/node-gyp', npm ERR! gyp info spawn args '-Dnode_lib_file=/root/.cache/node-gyp/18.19.0/<(target_arch)/node.lib', npm ERR! gyp info spawn args '-Dmodule_root_dir=/opt/iobroker/node_modules/bluetooth-hci-socket', npm ERR! gyp info spawn args '-Dnode_engine=v8', npm ERR! gyp info spawn args '--depth=.', npm ERR! gyp info spawn args '--no-parallel', npm ERR! gyp info spawn args '--generator-output', npm ERR! gyp info spawn args 'build', npm ERR! gyp info spawn args '-Goutput_dir=.' npm ERR! gyp info spawn args ] npm ERR! gyp info spawn make npm ERR! gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ] npm ERR! ../src/BluetoothHciSocket.cpp: In static member function ‘static void BluetoothHciSocket::Init(Nan::ADDON_REGISTER_FUNCTION_ARGS_TYPE)’: npm ERR! ../src/BluetoothHciSocket.cpp:128:81: error: no matching function for call to ‘v8::FunctionTemplate::GetFunction()’ npm ERR! 128 | target->Set(Nan::New("BluetoothHciSocket").ToLocalChecked(), tmpl->GetFunction()); npm ERR! | ~~~~~~~~~~~~~~~~~^~ npm ERR! In file included from /root/.cache/node-gyp/18.19.0/include/node/v8-function.h:15, npm ERR! from /root/.cache/node-gyp/18.19.0/include/node/v8.h:33, npm ERR! from /root/.cache/node-gyp/18.19.0/include/node/node.h:73, npm ERR! from /root/.cache/node-gyp/18.19.0/include/node/node_buffer.h:25, npm ERR! from ../src/BluetoothHciSocket.cpp:7: npm ERR! /root/.cache/node-gyp/18.19.0/include/node/v8-template.h:513:46: note: candidate: ‘v8::MaybeLocal<v8::Function> v8::FunctionTemplate::GetFunction(v8::Local<v8::Context>)’ npm ERR! 513 | V8_WARN_UNUSED_RESULT MaybeLocal<Function> GetFunction( npm ERR! | ^~~~~~~~~~~ npm ERR! /root/.cache/node-gyp/18.19.0/include/node/v8-template.h:513:46: note: candidate expects 1 argument, 0 provided npm ERR! ../src/BluetoothHciSocket.cpp: In member function ‘void BluetoothHciSocket::poll()’: npm ERR! ../src/BluetoothHciSocket.cpp:251:22: warning: ‘v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, v8::Local<v8::String>, int, v8::Local<v8::Value>*)’ is deprecated [-Wdeprecated-declarations] npm ERR! 251 | Nan::MakeCallback(Nan::New<Object>(this->This), Nan::New("emit").ToLocalChecked(), 2, argv); npm ERR! | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ npm ERR! In file included from ../src/BluetoothHciSocket.cpp:8: npm ERR! ../../nan/nan.h:1053:46: note: declared here npm ERR! 1053 | NAN_DEPRECATED inline v8::Local<v8::Value> MakeCallback( npm ERR! | ^~~~~~~~~~~~ npm ERR! ../src/BluetoothHciSocket.cpp: In member function ‘void BluetoothHciSocket::emitErrnoError()’: npm ERR! ../src/BluetoothHciSocket.cpp:269:74: error: no matching function for call to ‘v8::Object::Get(v8::Local<v8::String>)’ npm ERR! 269 | Local<Function> errorConstructor = Local<Function>::Cast(globalObj->Get(Nan::New("Error").ToLocalChecked())); npm ERR! | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ npm ERR! In file included from /root/.cache/node-gyp/18.19.0/include/node/v8-array-buffer.h:13, npm ERR! from /root/.cache/node-gyp/18.19.0/include/node/v8.h:24: npm ERR! /root/.cache/node-gyp/18.19.0/include/node/v8-object.h:290:43: note: candidate: ‘v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, v8::Local<v8::Value>)’ npm ERR! 290 | V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context, npm ERR! | ^~~ npm ERR! /root/.cache/node-gyp/18.19.0/include/node/v8-object.h:290:43: note: candidate expects 2 arguments, 1 provided npm ERR! /root/.cache/node-gyp/18.19.0/include/node/v8-object.h:293:43: note: candidate: ‘v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, uint32_t)’ npm ERR! 293 | V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context, npm ERR! | ^~~ npm ERR! /root/.cache/node-gyp/18.19.0/include/node/v8-object.h:293:43: note: candidate expects 2 arguments, 1 provided npm ERR! ../src/BluetoothHciSocket.cpp:275:53: error: no matching function for call to ‘v8::Function::NewInstance(int, v8::Local<v8::Value> [1])’ npm ERR! 275 | Local<Value> error = errorConstructor->NewInstance(1, constructorArgs); npm ERR! | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ npm ERR! /root/.cache/node-gyp/18.19.0/include/node/v8-function.h:38:44: note: candidate: ‘v8::MaybeLocal<v8::Object> v8::Function::NewInstance(v8::Local<v8::Context>, int, v8::Local<v8::Value>*) const’ npm ERR! 38 | V8_WARN_UNUSED_RESULT MaybeLocal<Object> NewInstance( npm ERR! | ^~~~~~~~~~~ npm ERR! /root/.cache/node-gyp/18.19.0/include/node/v8-function.h:38:44: note: candidate expects 3 arguments, 2 provided npm ERR! /root/.cache/node-gyp/18.19.0/include/node/v8-function.h:41:44: note: candidate: ‘v8::MaybeLocal<v8::Object> v8::Function::NewInstance(v8::Local<v8::Context>) const’ npm ERR! 41 | V8_WARN_UNUSED_RESULT MaybeLocal<Object> NewInstance( npm ERR! | ^~~~~~~~~~~ npm ERR! /root/.cache/node-gyp/18.19.0/include/node/v8-function.h:41:44: note: candidate expects 1 argument, 2 provided npm ERR! ../src/BluetoothHciSocket.cpp:282:20: warning: ‘v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, v8::Local<v8::String>, int, v8::Local<v8::Value>*)’ is deprecated [-Wdeprecated-declarations] npm ERR! 282 | Nan::MakeCallback(Nan::New<Object>(this->This), Nan::New("emit").ToLocalChecked(), 2, argv); npm ERR! | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ npm ERR! ../../nan/nan.h:1053:46: note: declared here npm ERR! 1053 | NAN_DEPRECATED inline v8::Local<v8::Value> MakeCallback( npm ERR! | ^~~~~~~~~~~~ npm ERR! ../src/BluetoothHciSocket.cpp: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE BluetoothHciSocket::BindRaw(Nan::NAN_METHOD_ARGS_TYPE)’: npm ERR! ../src/BluetoothHciSocket.cpp:395:33: error: no matching function for call to ‘v8::Value::IntegerValue()’ npm ERR! 395 | devId = arg0->IntegerValue(); npm ERR! | ~~~~~~~~~~~~~~~~~~^~ npm ERR! In file included from /root/.cache/node-gyp/18.19.0/include/node/v8-primitive.h:11, npm ERR! from /root/.cache/node-gyp/18.19.0/include/node/v8-object.h:11: npm ERR! /root/.cache/node-gyp/18.19.0/include/node/v8-value.h:413:40: note: candidate: ‘v8::Maybe<long int> v8::Value::IntegerValue(v8::Local<v8::Context>) const’ npm ERR! 413 | V8_WARN_UNUSED_RESULT Maybe<int64_t> IntegerValue( npm ERR! | ^~~~~~~~~~~~ npm ERR! /root/.cache/node-gyp/18.19.0/include/node/v8-value.h:413:40: note: candidate expects 1 argument, 0 provided npm ERR! ../src/BluetoothHciSocket.cpp: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE BluetoothHciSocket::BindUser(Nan::NAN_METHOD_ARGS_TYPE)’: npm ERR! ../src/BluetoothHciSocket.cpp:417:33: error: no matching function for call to ‘v8::Value::IntegerValue()’ npm ERR! 417 | devId = arg0->IntegerValue(); npm ERR! | ~~~~~~~~~~~~~~~~~~^~ npm ERR! /root/.cache/node-gyp/18.19.0/include/node/v8-value.h:413:40: note: candidate: ‘v8::Maybe<long int> v8::Value::IntegerValue(v8::Local<v8::Context>) const’ npm ERR! 413 | V8_WARN_UNUSED_RESULT Maybe<int64_t> IntegerValue( npm ERR! | ^~~~~~~~~~~~ npm ERR! /root/.cache/node-gyp/18.19.0/include/node/v8-value.h:413:40: note: candidate expects 1 argument, 0 provided npm ERR! ../src/BluetoothHciSocket.cpp: At global scope: npm ERR! /root/.cache/node-gyp/18.19.0/include/node/node.h:1014:7: warning: cast between incompatible function types from ‘void (*)(Nan::ADDON_REGISTER_FUNCTION_ARGS_TYPE)’ {aka ‘void (*)(v8::Local<v8::Object>)’} to ‘node::addon_register_func’ {aka ‘void (*)(v8::Local<v8::Object>, v8::Local<v8::Value>, void*)’} [-Wcast-function-type] npm ERR! 1014 | (node::addon_register_func) (regfunc), \ npm ERR! | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ npm ERR! /root/.cache/node-gyp/18.19.0/include/node/node.h:1048:3: note: in expansion of macro ‘NODE_MODULE_X’ npm ERR! 1048 | NODE_MODULE_X(modname, regfunc, NULL, 0) // NOLINT (readability/null_usage) npm ERR! | ^~~~~~~~~~~~~ npm ERR! ../src/BluetoothHciSocket.cpp:499:1: note: in expansion of macro ‘NODE_MODULE’ npm ERR! 499 | NODE_MODULE(binding, BluetoothHciSocket::Init); npm ERR! | ^~~~~~~~~~~ npm ERR! make: *** [binding.target.mk:111: Release/obj.target/binding/src/BluetoothHciSocket.o] Error 1 npm ERR! gyp ERR! build error npm ERR! gyp ERR! stack Error: `make` failed with exit code: 2 npm ERR! gyp ERR! stack at ChildProcess.<anonymous> (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:209:23) npm ERR! gyp ERR! System Linux 6.1.0-rpi8-rpi-2712 npm ERR! gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" npm ERR! gyp ERR! cwd /opt/iobroker/node_modules/bluetooth-hci-socket npm ERR! gyp ERR! node -v v18.19.0 npm ERR! gyp ERR! node-gyp -v v10.0.1 npm ERR! gyp ERR! not ok npm ERR! A complete log of this run can be found in: /root/.npm/_logs/2024-02-10T22_11_48_917Z-debug-0.log admin@iobroker:/opt/iobroker $
-
@glasfaser irgendwie kann er das Verzeichnis nicht erstellen, oder liege ich falsch mit meiner Vermutung ?
-
@wauzzi sagte in ble Adapter macht Probleme auf Raspi 5:
selbes spiel
sorry habe den Thread nicht ganz dazu gelesen .
nur das machen ..
https://forum.iobroker.net/post/151081
nicht die Befehle darunter !
-
@glasfaser Das hatte ich vorhin auch schon versucht. Hab es eben nochmals versucht.
Scheint aber alles sauber zu sein:admin@iobroker:/opt/iobroker $ sudo npm install --production npm WARN config production Use `--omit=dev` instead. up to date in 3s 145 packages are looking for funding run `npm fund` for details admin@iobroker:/opt/iobroker $
admin@iobroker:/opt/iobroker $ npm fund iobroker.inst@3.0.0 ├── https://github.com/sponsors/epoberezkin │ └── ajv@6.12.6 ├── https://github.com/sponsors/jaredhanson │ └── passport@0.6.0, oauth2orize@1.11.1 ├── https://github.com/sponsors/isaacs │ └── glob@7.2.3, minimatch@7.4.6, rimraf@3.0.2 ├── https://github.com/sponsors/feross │ └── safe-buffer@5.2.1, base64-js@1.5.1, buffer@6.0.3, simple-concat@1.0.1 ├── https://github.com/sponsors/RubenVerborgh │ └── follow-redirects@1.15.5 ├── https://github.com/sponsors/ljharb │ └── qs@6.10.4, minimist@1.2.8, define-properties@1.2.1, es-abstract@1.22.3, array-buffer-byte-length@1.0.1, arraybuffer.prototype.slice@1.0.3, available-typed-arrays@1.0.6, es-to-primitive@1.2.1, is-date-object@1.0.5, is-symbol@1.0.4, function.prototype.name@1.1.6, functions-have-names@1.2.3, get-symbol-description@1.0.2, globalthis@1.0.3, is-array-buffer@3.0.4, is-callable@1.2.7, is-negative-zero@2.0.2, is-regex@1.1.4, is-shared-array-buffer@1.0.2, is-string@1.0.7, is-typed-array@1.1.13, is-weakref@1.0.2, object.assign@4.1.5, regexp.prototype.flags@1.5.1, safe-array-concat@1.1.0, safe-regex-test@1.0.3, string.prototype.trim@1.2.8, string.prototype.trimend@1.0.7, string.prototype.trimstart@1.0.7, typed-array-byte-length@1.0.0, typed-array-byte-offset@1.0.0, typed-array-length@1.0.4, unbox-primitive@1.0.2, has-bigints@1.0.2, which-boxed-primitive@1.0.2, is-bigint@1.0.4, is-boolean-object@1.1.2, is-number-object@1.0.7, which-typed-array@1.1.14, has-tostringtag@1.0.2, traverse@0.6.8 ├── https://github.com/sponsors/broofa │ └── uuid@9.0.1 ├── https://github.com/sponsors/sindresorhus │ └── is-plain-obj@3.0.0, is-stream@2.0.1, responselike@2.0.1, clone-response@1.0.3, get-stream@5.2.0, normalize-url@6.1.0, onetime@5.1.2, make-dir@3.1.0, mimic-response@2.1.0, component-emitter@1.3.1, debounce@2.0.0 ├── https://github.com/sponsors/jonschlinkert │ └── picomatch@2.3.1 ├─┬ https://github.com/sindresorhus/got?sponsor=1 │ │ └── got@11.8.6 │ └── https://github.com/sindresorhus/is?sponsor=1 │ └── @sindresorhus/is@4.6.0 ├── https://github.com/sponsors/NaturalIntelligence │ └── fast-xml-parser@4.3.4 ├─┬ https://opencollective.com/node-fetch │ │ └── node-fetch@3.3.2 │ └── https://github.com/sponsors/jimmywarting │ └── fetch-blob@3.2.0, node-domexception@1.0.0 ├─┬ https://github.com/chalk/wrap-ansi?sponsor=1 │ │ └── wrap-ansi@7.0.0 │ └── https://github.com/chalk/ansi-styles?sponsor=1 │ └── ansi-styles@4.3.0 ├── https://opencollective.com/serialport/donate │ └── serialport@12.0.0, @serialport/bindings-cpp@12.0.1, @serialport/parser-readline@11.0.0, @serialport/parser-delimiter@11.0.0, @serialport/parser-byte-length@12.0.0, @serialport/parser-cctalk@12.0.0, @serialport/parser-delimiter@12.0.0, @serialport/parser-inter-byte-timeout@12.0.0, @serialport/parser-readline@12.0.0, @serialport/parser-ready@12.0.0, @serialport/parser-regex@12.0.0, @serialport/parser-slip-encoder@12.0.0, @serialport/parser-spacepacket@12.0.0, @serialport/stream@12.0.0 ├─┬ https://github.com/chalk/chalk-template?sponsor=1 │ │ └── chalk-template@0.4.0 │ └── https://github.com/chalk/chalk?sponsor=1 │ └── chalk@4.1.2 ├── https://opencollective.com/date-fns │ └── date-fns@2.30.0 ├── https://opencollective.com/ioredis │ └── ioredis@4.28.5 ├── https://github.com/sindresorhus/execa?sponsor=1 │ └── execa@5.1.1 ├── https://paulmillr.com/funding/ │ └── chokidar@3.6.0 ├── https://github.com/sponsors/sibiraj-s │ └── ci-info@3.9.0 ├── https://opencollective.com/js-sdsl │ └── js-sdsl@4.3.0 ├─┬ https://github.com/cheeriojs/cheerio?sponsor=1 │ │ └── cheerio@1.0.0-rc.10 │ ├─┬ https://github.com/sponsors/fb55 │ │ │ └── cheerio-select@1.6.0, css-select@4.3.0, css-what@6.1.0, domelementtype@2.3.0 │ │ └── https://github.com/fb55/domutils?sponsor=1 │ │ └── domutils@2.8.0, domutils@3.1.0 │ ├─┬ https://github.com/cheeriojs/dom-serializer?sponsor=1 │ │ │ └── dom-serializer@1.4.1, dom-serializer@2.0.0 │ │ └── https://github.com/fb55/entities?sponsor=1 │ │ └── entities@2.2.0, entities@4.5.0 │ ├── https://github.com/fb55/domhandler?sponsor=1 │ │ └── domhandler@4.3.1, domhandler@5.0.3 │ └── https://github.com/fb55/htmlparser2?sponsor=1 │ └── htmlparser2@6.1.0, htmlparser2@8.0.2 ├── https://locize.com │ └── i18next@21.10.0 ├── https://ko-fi.com/killymxi │ └── @selderee/plugin-htmlparser2@0.11.0, selderee@0.11.0, parseley@0.12.1, leac@0.6.0, peberminta@0.9.0 ├── https://github.com/sponsors/3846masa │ └── http-cookie-agent@5.0.4 └── https://github.com/inikulin/parse5?sponsor=1 └── parse5@7.1.2
-
ins Verzeichniss
cd /opt/iobroker/node_modules/bluetooth-hci-socket
dann dort
npm install --production
Bitte alles in Ruhe lesen , es steht auch dort !!
-
@glasfaser
Danke für Deine Geduld mit mirDas Verzeichnis "opt/iobroker/node_modules/bluetooth-hci-socket" existiert bei mir nicht.
Ich hab eben nochmals mit dem Winscp geschaut. nicht vorhanden -
@wauzzi sagte in ble Adapter macht Probleme auf Raspi 5:
sudo npm
Arrrgh. Nie npm in Verbindung mit sudo verwenden.
-
@wauzzi sagte in ble Adapter macht Probleme auf Raspi 5:
Beim Versuch "npm install bluetooth-hci-socket" durchzuführen
cd /opt/iobroker sudo -H -u iobroker npm install bluetooth-hci-socket
-
bluetooth-hci-socket wird auf aktuellen Systemen auch gar nicht mehr verwendet. Auf meinem jedenfalls nicht...
echad@chet:/opt/iobroker $ npm ls iobroker.ble bluetooth-hci-socket iobroker.inst@3.0.0 /opt/iobroker └── iobroker.ble@0.14.0
-
@glasfaser said in ble Adapter macht Probleme auf Raspi 5:
sudo -H -u iobroker npm install bluetooth-hci-socket
admin@iobroker:~ $ cd /opt/iobroker admin@iobroker:/opt/iobroker $ sudo -H -u iobroker npm install bluetooth-hci-socket npm ERR! code 1 npm ERR! path /opt/iobroker/node_modules/bluetooth-hci-socket npm ERR! command failed npm ERR! command sh -c node-gyp rebuild npm ERR! make: Entering directory '/opt/iobroker/node_modules/bluetooth-hci-socket/build' npm ERR! CXX(target) Release/obj.target/binding/src/BluetoothHciSocket.o npm ERR! make: Leaving directory '/opt/iobroker/node_modules/bluetooth-hci-socket/build' npm ERR! gyp info it worked if it ends with ok npm ERR! gyp info using node-gyp@10.0.1 npm ERR! gyp info using node@18.19.0 | linux | arm64 npm ERR! gyp info find Python using Python version 3.11.2 found at "/usr/bin/python3" npm ERR! gyp info spawn /usr/bin/python3 npm ERR! gyp info spawn args [ npm ERR! gyp info spawn args '/usr/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py', npm ERR! gyp info spawn args 'binding.gyp', npm ERR! gyp info spawn args '-f', npm ERR! gyp info spawn args 'make', npm ERR! gyp info spawn args '-I', npm ERR! gyp info spawn args '/opt/iobroker/node_modules/bluetooth-hci-socket/build/config.gypi', npm ERR! gyp info spawn args '-I', npm ERR! gyp info spawn args '/usr/lib/node_modules/npm/node_modules/node-gyp/addon.gypi', npm ERR! gyp info spawn args '-I', npm ERR! gyp info spawn args '/home/iobroker/.cache/node-gyp/18.19.0/include/node/common.gypi', npm ERR! gyp info spawn args '-Dlibrary=shared_library', npm ERR! gyp info spawn args '-Dvisibility=default', npm ERR! gyp info spawn args '-Dnode_root_dir=/home/iobroker/.cache/node-gyp/18.19.0', npm ERR! gyp info spawn args '-Dnode_gyp_dir=/usr/lib/node_modules/npm/node_modules/node-gyp', npm ERR! gyp info spawn args '-Dnode_lib_file=/home/iobroker/.cache/node-gyp/18.19.0/<(target_arch)/node.lib', npm ERR! gyp info spawn args '-Dmodule_root_dir=/opt/iobroker/node_modules/bluetooth-hci-socket', npm ERR! gyp info spawn args '-Dnode_engine=v8', npm ERR! gyp info spawn args '--depth=.', npm ERR! gyp info spawn args '--no-parallel', npm ERR! gyp info spawn args '--generator-output', npm ERR! gyp info spawn args 'build', npm ERR! gyp info spawn args '-Goutput_dir=.' npm ERR! gyp info spawn args ] npm ERR! gyp info spawn make npm ERR! gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ] npm ERR! ../src/BluetoothHciSocket.cpp: In static member function ‘static void BluetoothHciSocket::Init(Nan::ADDON_REGISTER_FUNCTION_ARGS_TYPE)’: npm ERR! ../src/BluetoothHciSocket.cpp:128:81: error: no matching function for call to ‘v8::FunctionTemplate::GetFunction()’ npm ERR! 128 | target->Set(Nan::New("BluetoothHciSocket").ToLocalChecked(), tmpl->GetFunction()); npm ERR! | ~~~~~~~~~~~~~~~~~^~ npm ERR! In file included from /home/iobroker/.cache/node-gyp/18.19.0/include/node/v8-function.h:15, npm ERR! from /home/iobroker/.cache/node-gyp/18.19.0/include/node/v8.h:33, npm ERR! from /home/iobroker/.cache/node-gyp/18.19.0/include/node/node.h:73, npm ERR! from /home/iobroker/.cache/node-gyp/18.19.0/include/node/node_buffer.h:25, npm ERR! from ../src/BluetoothHciSocket.cpp:7: npm ERR! /home/iobroker/.cache/node-gyp/18.19.0/include/node/v8-template.h:513:46: note: candidate: ‘v8::MaybeLocal<v8::Function> v8::FunctionTemplate::GetFunction(v8::Local<v8::Context>)’ npm ERR! 513 | V8_WARN_UNUSED_RESULT MaybeLocal<Function> GetFunction( npm ERR! | ^~~~~~~~~~~ npm ERR! /home/iobroker/.cache/node-gyp/18.19.0/include/node/v8-template.h:513:46: note: candidate expects 1 argument, 0 provided npm ERR! ../src/BluetoothHciSocket.cpp: In member function ‘void BluetoothHciSocket::poll()’: npm ERR! ../src/BluetoothHciSocket.cpp:251:22: warning: ‘v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, v8::Local<v8::String>, int, v8::Local<v8::Value>*)’ is deprecated [-Wdeprecated-declarations] npm ERR! 251 | Nan::MakeCallback(Nan::New<Object>(this->This), Nan::New("emit").ToLocalChecked(), 2, argv); npm ERR! | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ npm ERR! In file included from ../src/BluetoothHciSocket.cpp:8: npm ERR! ../../nan/nan.h:1053:46: note: declared here npm ERR! 1053 | NAN_DEPRECATED inline v8::Local<v8::Value> MakeCallback( npm ERR! | ^~~~~~~~~~~~ npm ERR! ../src/BluetoothHciSocket.cpp: In member function ‘void BluetoothHciSocket::emitErrnoError()’: npm ERR! ../src/BluetoothHciSocket.cpp:269:74: error: no matching function for call to ‘v8::Object::Get(v8::Local<v8::String>)’ npm ERR! 269 | Local<Function> errorConstructor = Local<Function>::Cast(globalObj->Get(Nan::New("Error").ToLocalChecked())); npm ERR! | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ npm ERR! In file included from /home/iobroker/.cache/node-gyp/18.19.0/include/node/v8-array-buffer.h:13, npm ERR! from /home/iobroker/.cache/node-gyp/18.19.0/include/node/v8.h:24: npm ERR! /home/iobroker/.cache/node-gyp/18.19.0/include/node/v8-object.h:290:43: note: candidate: ‘v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, v8::Local<v8::Value>)’ npm ERR! 290 | V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context, npm ERR! | ^~~ npm ERR! /home/iobroker/.cache/node-gyp/18.19.0/include/node/v8-object.h:290:43: note: candidate expects 2 arguments, 1 provided npm ERR! /home/iobroker/.cache/node-gyp/18.19.0/include/node/v8-object.h:293:43: note: candidate: ‘v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, uint32_t)’ npm ERR! 293 | V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context, npm ERR! | ^~~ npm ERR! /home/iobroker/.cache/node-gyp/18.19.0/include/node/v8-object.h:293:43: note: candidate expects 2 arguments, 1 provided npm ERR! ../src/BluetoothHciSocket.cpp:275:53: error: no matching function for call to ‘v8::Function::NewInstance(int, v8::Local<v8::Value> [1])’ npm ERR! 275 | Local<Value> error = errorConstructor->NewInstance(1, constructorArgs); npm ERR! | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ npm ERR! /home/iobroker/.cache/node-gyp/18.19.0/include/node/v8-function.h:38:44: note: candidate: ‘v8::MaybeLocal<v8::Object> v8::Function::NewInstance(v8::Local<v8::Context>, int, v8::Local<v8::Value>*) const’ npm ERR! 38 | V8_WARN_UNUSED_RESULT MaybeLocal<Object> NewInstance( npm ERR! | ^~~~~~~~~~~ npm ERR! /home/iobroker/.cache/node-gyp/18.19.0/include/node/v8-function.h:38:44: note: candidate expects 3 arguments, 2 provided npm ERR! /home/iobroker/.cache/node-gyp/18.19.0/include/node/v8-function.h:41:44: note: candidate: ‘v8::MaybeLocal<v8::Object> v8::Function::NewInstance(v8::Local<v8::Context>) const’ npm ERR! 41 | V8_WARN_UNUSED_RESULT MaybeLocal<Object> NewInstance( npm ERR! | ^~~~~~~~~~~ npm ERR! /home/iobroker/.cache/node-gyp/18.19.0/include/node/v8-function.h:41:44: note: candidate expects 1 argument, 2 provided npm ERR! ../src/BluetoothHciSocket.cpp:282:20: warning: ‘v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, v8::Local<v8::String>, int, v8::Local<v8::Value>*)’ is deprecated [-Wdeprecated-declarations] npm ERR! 282 | Nan::MakeCallback(Nan::New<Object>(this->This), Nan::New("emit").ToLocalChecked(), 2, argv); npm ERR! | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ npm ERR! ../../nan/nan.h:1053:46: note: declared here npm ERR! 1053 | NAN_DEPRECATED inline v8::Local<v8::Value> MakeCallback( npm ERR! | ^~~~~~~~~~~~ npm ERR! ../src/BluetoothHciSocket.cpp: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE BluetoothHciSocket::BindRaw(Nan::NAN_METHOD_ARGS_TYPE)’: npm ERR! ../src/BluetoothHciSocket.cpp:395:33: error: no matching function for call to ‘v8::Value::IntegerValue()’ npm ERR! 395 | devId = arg0->IntegerValue(); npm ERR! | ~~~~~~~~~~~~~~~~~~^~ npm ERR! In file included from /home/iobroker/.cache/node-gyp/18.19.0/include/node/v8-primitive.h:11, npm ERR! from /home/iobroker/.cache/node-gyp/18.19.0/include/node/v8-object.h:11: npm ERR! /home/iobroker/.cache/node-gyp/18.19.0/include/node/v8-value.h:413:40: note: candidate: ‘v8::Maybe<long int> v8::Value::IntegerValue(v8::Local<v8::Context>) const’ npm ERR! 413 | V8_WARN_UNUSED_RESULT Maybe<int64_t> IntegerValue( npm ERR! | ^~~~~~~~~~~~ npm ERR! /home/iobroker/.cache/node-gyp/18.19.0/include/node/v8-value.h:413:40: note: candidate expects 1 argument, 0 provided npm ERR! ../src/BluetoothHciSocket.cpp: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE BluetoothHciSocket::BindUser(Nan::NAN_METHOD_ARGS_TYPE)’: npm ERR! ../src/BluetoothHciSocket.cpp:417:33: error: no matching function for call to ‘v8::Value::IntegerValue()’ npm ERR! 417 | devId = arg0->IntegerValue(); npm ERR! | ~~~~~~~~~~~~~~~~~~^~ npm ERR! /home/iobroker/.cache/node-gyp/18.19.0/include/node/v8-value.h:413:40: note: candidate: ‘v8::Maybe<long int> v8::Value::IntegerValue(v8::Local<v8::Context>) const’ npm ERR! 413 | V8_WARN_UNUSED_RESULT Maybe<int64_t> IntegerValue( npm ERR! | ^~~~~~~~~~~~ npm ERR! /home/iobroker/.cache/node-gyp/18.19.0/include/node/v8-value.h:413:40: note: candidate expects 1 argument, 0 provided npm ERR! ../src/BluetoothHciSocket.cpp: At global scope: npm ERR! /home/iobroker/.cache/node-gyp/18.19.0/include/node/node.h:1014:7: warning: cast between incompatible function types from ‘void (*)(Nan::ADDON_REGISTER_FUNCTION_ARGS_TYPE)’ {aka ‘void (*)(v8::Local<v8::Object>)’} to ‘node::addon_register_func’ {aka ‘void (*)(v8::Local<v8::Object>, v8::Local<v8::Value>, void*)’} [-Wcast-function-type] npm ERR! 1014 | (node::addon_register_func) (regfunc), \ npm ERR! | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ npm ERR! /home/iobroker/.cache/node-gyp/18.19.0/include/node/node.h:1048:3: note: in expansion of macro ‘NODE_MODULE_X’ npm ERR! 1048 | NODE_MODULE_X(modname, regfunc, NULL, 0) // NOLINT (readability/null_usage) npm ERR! | ^~~~~~~~~~~~~ npm ERR! ../src/BluetoothHciSocket.cpp:499:1: note: in expansion of macro ‘NODE_MODULE’ npm ERR! 499 | NODE_MODULE(binding, BluetoothHciSocket::Init); npm ERR! | ^~~~~~~~~~~ npm ERR! make: *** [binding.target.mk:111: Release/obj.target/binding/src/BluetoothHciSocket.o] Error 1 npm ERR! gyp ERR! build error npm ERR! gyp ERR! stack Error: `make` failed with exit code: 2 npm ERR! gyp ERR! stack at ChildProcess.<anonymous> (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:209:23) npm ERR! gyp ERR! System Linux 6.1.0-rpi8-rpi-2712 npm ERR! gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" npm ERR! gyp ERR! cwd /opt/iobroker/node_modules/bluetooth-hci-socket npm ERR! gyp ERR! node -v v18.19.0 npm ERR! gyp ERR! node-gyp -v v10.0.1 npm ERR! gyp ERR! not ok npm ERR! A complete log of this run can be found in: /home/iobroker/.npm/_logs/2024-02-10T22_35_01_714Z-debug-0.log admin@iobroker:/opt/iobroker $
-
@thomas-braun said in ble Adapter macht Probleme auf Raspi 5:
npm ls iobroker.ble bluetooth-hci-socket
sieht bei mir ähnlich aus:
admin@iobroker:/opt/iobroker $ npm ls iobroker.ble bluetooth-hci-socket iobroker.inst@3.0.0 /opt/iobroker └── iobroker.ble@0.14.0
wird dies denn zwingend für den ble Adapter benötigt ?
-
@wauzzi sagte in ble Adapter macht Probleme auf Raspi 5:
npm ERR! gyp info find Python using Python version 3.11.2 found at "/usr/bin/python3"
keine Ahnung was das mit python3 zu tun hat
-
Grundvoraussetzungen sind da?
sudo apt-get install bluetooth bluez libbluetooth-dev libudev-dev libcap2-bin sudo setcap cap_net_raw+eip $(eval readlink -f `which node`)