Closed ben21684 closed 1 year ago
Is this really all log? There should be more BEFORE your posted first line
Oh, sorry. This is the complete output, when I do npm install iobroker.hid
:
> node-hid@0.5.7 install /home/pi/node_modules/node-hid
> prebuild-install || node-gyp rebuild
prebuild-install WARN install No prebuilt binaries found (target=14.19.0 runtime=node arch=arm platform=linux)
make: Verzeichnis „/home/pi/node_modules/node-hid/build“ wird betreten
CC(target) Release/obj.target/hidapi/hidapi/libusb/hid.o
../hidapi/libusb/hid.c: In function ‘hid_read_timeout’:
../hidapi/libusb/hid.c:1078:6: warning: variable ‘bytes_read’ might be clobbered by ‘longjmp’ or ‘vfork’ [-Wclobbered]
1078 | int bytes_read = -1;
| ^~~~~~~~~~
AR(target) Release/obj.target/hidapi.a
COPY Release/hidapi.a
CXX(target) Release/obj.target/HID/src/HID.o
../src/HID.cc:67:5: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
67 | throw(JSException);
| ^~~~~
../src/HID.cc:70:5: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
70 | throw(JSException);
| ^~~~~
../src/HID.cc:152:3: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
152 | throw(JSException)
| ^~~~~
../src/HID.cc:163:3: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
163 | throw(JSException)
| ^~~~~
../src/HID.cc: In member function ‘void HID::readResultsToJSCallbackArguments(HID::ReceiveIOCB*, v8::Local<v8::Value>*)’:
../src/HID.cc:203:91: error: no matching function for call to ‘v8::Object::Get(v8::Local<v8::String>)’
203 | tContext()->Global()->Get(Nan::New<String>("Buffer").ToLocalChecked() )
| ^
In file included from /home/pi/.cache/node-gyp/14.19.0/include/node/node.h:67,
from ../src/HID.cc:30:
/home/pi/.cache/node-gyp/14.19.0/include/node/v8.h:3717:43: note: candidate: ‘v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, v8::Local<v8::Value>)’
3717 | V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
| ^~~
/home/pi/.cache/node-gyp/14.19.0/include/node/v8.h:3717:43: note: candidate expects 2 arguments, 1 provided
/home/pi/.cache/node-gyp/14.19.0/include/node/v8.h:3720:43: note: candidate: ‘v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, uint32_t)’
3720 | V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
| ^~~
/home/pi/.cache/node-gyp/14.19.0/include/node/v8.h:3720:43: note: candidate expects 2 arguments, 1 provided
../src/HID.cc:207:74: error: no matching function for call to ‘v8::Function::NewInstance(int, v8::Local<v8::Value> [1])’
207 | Local<Object> buf = nodeBufConstructor->NewInstance(1, nodeBufferArgs);
| ^
In file included from /home/pi/.cache/node-gyp/14.19.0/include/node/node.h:67,
from ../src/HID.cc:30:
/home/pi/.cache/node-gyp/14.19.0/include/node/v8.h:4451:44: note: candidate: ‘v8::MaybeLocal<v8::Object> v8::Function::NewInstance(v8::Local<v8::Context>, int, v8::Local<v8::Value>*) const’
4451 | V8_WARN_UNUSED_RESULT MaybeLocal<Object> NewInstance(
| ^~~~~~~~~~~
/home/pi/.cache/node-gyp/14.19.0/include/node/v8.h:4451:44: note: candidate expects 3 arguments, 2 provided
/home/pi/.cache/node-gyp/14.19.0/include/node/v8.h:4454:44: note: candidate: ‘v8::MaybeLocal<v8::Object> v8::Function::NewInstance(v8::Local<v8::Context>) const’
4454 | V8_WARN_UNUSED_RESULT MaybeLocal<Object> NewInstance(
| ^~~~~~~~~~~
/home/pi/.cache/node-gyp/14.19.0/include/node/v8.h:4454:44: note: candidate expects 1 argument, 2 provided
../src/HID.cc: In static member function ‘static void HID::recvAsyncDone(uv_work_t*)’:
../src/HID.cc:231:32: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
231 | iocb->_callback->Call(2, argv);
| ^
In file included from ../src/HID.cc:31:
../../nan/nan.h:1746:3: note: declared here
1746 | Call(int argc, v8::Local<v8::Value> argv[]) const {
| ^~~~
../src/HID.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE HID::read(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/HID.cc:257:52: warning: cast between incompatible function types from ‘void (*)(uv_work_t*)’ {aka ‘void (*)(uv_work_s*)’} to ‘uv_after_work_cb’ {aka ‘void (*)(uv_work_s*, int)’} [-Wcast-function-type]
257 | uv_queue_work(uv_default_loop(), req, recvAsync, (uv_after_work_cb)recvAsyncDone);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/HID.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE HID::readSync(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/HID.cc:280:51: error: no matching function for call to ‘v8::Array::Set(int&, Nan::imp::IntegerFactory<v8::Integer>::return_t)’
280 | retval->Set(i, Nan::New<Integer>(buff_read[i]));
| ^
In file included from /home/pi/.cache/node-gyp/14.19.0/include/node/node.h:67,
from ../src/HID.cc:30:
/home/pi/.cache/node-gyp/14.19.0/include/node/v8.h:3670:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, v8::Local<v8::Value>, v8::Local<v8::Value>)’
3670 | V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
| ^~~
/home/pi/.cache/node-gyp/14.19.0/include/node/v8.h:3670:37: note: candidate expects 3 arguments, 2 provided
/home/pi/.cache/node-gyp/14.19.0/include/node/v8.h:3673:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, uint32_t, v8::Local<v8::Value>)’
3673 | V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index,
| ^~~
/home/pi/.cache/node-gyp/14.19.0/include/node/v8.h:3673:37: note: candidate expects 3 arguments, 2 provided
../src/HID.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE HID::readTimeout(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/HID.cc:305:51: error: no matching function for call to ‘v8::Array::Set(int&, Nan::imp::IntegerFactory<v8::Integer>::return_t)’
305 | retval->Set(i, Nan::New<Integer>(buff_read[i]));
| ^
In file included from /home/pi/.cache/node-gyp/14.19.0/include/node/node.h:67,
from ../src/HID.cc:30:
/home/pi/.cache/node-gyp/14.19.0/include/node/v8.h:3670:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, v8::Local<v8::Value>, v8::Local<v8::Value>)’
3670 | V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
| ^~~
/home/pi/.cache/node-gyp/14.19.0/include/node/v8.h:3670:37: note: candidate expects 3 arguments, 2 provided
/home/pi/.cache/node-gyp/14.19.0/include/node/v8.h:3673:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, uint32_t, v8::Local<v8::Value>)’
3673 | V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index,
| ^~~
/home/pi/.cache/node-gyp/14.19.0/include/node/v8.h:3673:37: note: candidate expects 3 arguments, 2 provided
../src/HID.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE HID::getFeatureReport(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/HID.cc:339:45: error: no matching function for call to ‘v8::Array::Set(int&, Nan::imp::IntegerFactory<v8::Integer>::return_t)’
339 | retval->Set(i, Nan::New<Integer>(buf[i]));
| ^
In file included from /home/pi/.cache/node-gyp/14.19.0/include/node/node.h:67,
from ../src/HID.cc:30:
/home/pi/.cache/node-gyp/14.19.0/include/node/v8.h:3670:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, v8::Local<v8::Value>, v8::Local<v8::Value>)’
3670 | V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
| ^~~
/home/pi/.cache/node-gyp/14.19.0/include/node/v8.h:3670:37: note: candidate expects 3 arguments, 2 provided
/home/pi/.cache/node-gyp/14.19.0/include/node/v8.h:3673:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, uint32_t, v8::Local<v8::Value>)’
3673 | V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index,
| ^~~
/home/pi/.cache/node-gyp/14.19.0/include/node/v8.h:3673:37: note: candidate expects 3 arguments, 2 provided
../src/HID.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE HID::sendFeatureReport(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/HID.cc:360:29: error: no matching function for call to ‘v8::Array::Get(unsigned int&)’
360 | if (!messageArray->Get(i)->IsNumber()) {
| ^
In file included from /home/pi/.cache/node-gyp/14.19.0/include/node/node.h:67,
from ../src/HID.cc:30:
/home/pi/.cache/node-gyp/14.19.0/include/node/v8.h:3717:43: note: candidate: ‘v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, v8::Local<v8::Value>)’
3717 | V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
| ^~~
/home/pi/.cache/node-gyp/14.19.0/include/node/v8.h:3717:43: note: candidate expects 2 arguments, 1 provided
/home/pi/.cache/node-gyp/14.19.0/include/node/v8.h:3720:43: note: candidate: ‘v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, uint32_t)’
3720 | V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
| ^~~
/home/pi/.cache/node-gyp/14.19.0/include/node/v8.h:3720:43: note: candidate expects 2 arguments, 1 provided
../src/HID.cc:363:58: error: no matching function for call to ‘v8::Array::Get(unsigned int&)’
363 | message.push_back((unsigned char) messageArray->Get(i)->Int32Value());
| ^
In file included from /home/pi/.cache/node-gyp/14.19.0/include/node/node.h:67,
from ../src/HID.cc:30:
/home/pi/.cache/node-gyp/14.19.0/include/node/v8.h:3717:43: note: candidate: ‘v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, v8::Local<v8::Value>)’
3717 | V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
| ^~~
/home/pi/.cache/node-gyp/14.19.0/include/node/v8.h:3717:43: note: candidate expects 2 arguments, 1 provided
/home/pi/.cache/node-gyp/14.19.0/include/node/v8.h:3720:43: note: candidate: ‘v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, uint32_t)’
3720 | V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
| ^~~
/home/pi/.cache/node-gyp/14.19.0/include/node/v8.h:3720:43: note: candidate expects 2 arguments, 1 provided
../src/HID.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE HID::New(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/HID.cc:404:46: error: no matching function for call to ‘v8::Value::Int32Value()’
404 | int32_t vendorId = info[0]->Int32Value();
| ^
In file included from /home/pi/.cache/node-gyp/14.19.0/include/node/node.h:67,
from ../src/HID.cc:30:
/home/pi/.cache/node-gyp/14.19.0/include/node/v8.h:2869:40: note: candidate: ‘v8::Maybe<int> v8::Value::Int32Value(v8::Local<v8::Context>) const’
2869 | V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local<Context> context) const;
| ^~~~~~~~~~
/home/pi/.cache/node-gyp/14.19.0/include/node/v8.h:2869:40: note: candidate expects 1 argument, 0 provided
../src/HID.cc:405:47: error: no matching function for call to ‘v8::Value::Int32Value()’
405 | int32_t productId = info[1]->Int32Value();
| ^
In file included from /home/pi/.cache/node-gyp/14.19.0/include/node/node.h:67,
from ../src/HID.cc:30:
/home/pi/.cache/node-gyp/14.19.0/include/node/v8.h:2869:40: note: candidate: ‘v8::Maybe<int> v8::Value::Int32Value(v8::Local<v8::Context>) const’
2869 | V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local<Context> context) const;
| ^~~~~~~~~~
/home/pi/.cache/node-gyp/14.19.0/include/node/v8.h:2869:40: note: candidate expects 1 argument, 0 provided
../src/HID.cc:409:62: error: no matching function for call to ‘v8::String::Value::Value(v8::Local<v8::Value>)’
409 | serialPointer = (wchar_t*) *v8::String::Value(info[2]);
| ^
In file included from /home/pi/.cache/node-gyp/14.19.0/include/node/node.h:67,
from ../src/HID.cc:30:
/home/pi/.cache/node-gyp/14.19.0/include/node/v8.h:3310:5: note: candidate: ‘v8::String::Value::Value(v8::Isolate*, v8::Local<v8::Value>)’
3310 | Value(Isolate* isolate, Local<v8::Value> obj);
| ^~~~~
/home/pi/.cache/node-gyp/14.19.0/include/node/v8.h:3310:5: note: candidate expects 2 arguments, 1 provided
../src/HID.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE HID::setNonBlocking(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/HID.cc:443:37: error: no matching function for call to ‘v8::Value::Int32Value()’
443 | blockStatus = info[0]->Int32Value();
| ^
In file included from /home/pi/.cache/node-gyp/14.19.0/include/node/node.h:67,
from ../src/HID.cc:30:
/home/pi/.cache/node-gyp/14.19.0/include/node/v8.h:2869:40: note: candidate: ‘v8::Maybe<int> v8::Value::Int32Value(v8::Local<v8::Context>) const’
2869 | V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local<Context> context) const;
| ^~~~~~~~~~
/home/pi/.cache/node-gyp/14.19.0/include/node/v8.h:2869:40: note: candidate expects 1 argument, 0 provided
../src/HID.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE HID::write(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/HID.cc:468:31: error: no matching function for call to ‘v8::Array::Get(unsigned int&)’
468 | if (!messageArray->Get(i)->IsNumber()) {
| ^
In file included from /home/pi/.cache/node-gyp/14.19.0/include/node/node.h:67,
from ../src/HID.cc:30:
/home/pi/.cache/node-gyp/14.19.0/include/node/v8.h:3717:43: note: candidate: ‘v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, v8::Local<v8::Value>)’
3717 | V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
| ^~~
/home/pi/.cache/node-gyp/14.19.0/include/node/v8.h:3717:43: note: candidate expects 2 arguments, 1 provided
/home/pi/.cache/node-gyp/14.19.0/include/node/v8.h:3720:43: note: candidate: ‘v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, uint32_t)’
3720 | V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
| ^~~
/home/pi/.cache/node-gyp/14.19.0/include/node/v8.h:3720:43: note: candidate expects 2 arguments, 1 provided
../src/HID.cc:471:60: error: no matching function for call to ‘v8::Array::Get(unsigned int&)’
471 | message.push_back((unsigned char) messageArray->Get(i)->Int32Value());
| ^
In file included from /home/pi/.cache/node-gyp/14.19.0/include/node/node.h:67,
from ../src/HID.cc:30:
/home/pi/.cache/node-gyp/14.19.0/include/node/v8.h:3717:43: note: candidate: ‘v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, v8::Local<v8::Value>)’
3717 | V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
| ^~~
/home/pi/.cache/node-gyp/14.19.0/include/node/v8.h:3717:43: note: candidate expects 2 arguments, 1 provided
/home/pi/.cache/node-gyp/14.19.0/include/node/v8.h:3720:43: note: candidate: ‘v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, uint32_t)’
3720 | V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
| ^~~
/home/pi/.cache/node-gyp/14.19.0/include/node/v8.h:3720:43: note: candidate expects 2 arguments, 1 provided
../src/HID.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE HID::getDeviceInfo(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/HID.cc:505:62: error: no matching function for call to ‘v8::Object::Set(v8::Local<v8::String>, v8::Local<v8::String>)’
505 | Nan::New<String>(narrow(wstr).c_str()).ToLocalChecked());
| ^
In file included from /home/pi/.cache/node-gyp/14.19.0/include/node/node.h:67,
from ../src/HID.cc:30:
/home/pi/.cache/node-gyp/14.19.0/include/node/v8.h:3670:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, v8::Local<v8::Value>, v8::Local<v8::Value>)’
3670 | V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
| ^~~
/home/pi/.cache/node-gyp/14.19.0/include/node/v8.h:3670:37: note: candidate expects 3 arguments, 2 provided
/home/pi/.cache/node-gyp/14.19.0/include/node/v8.h:3673:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, uint32_t, v8::Local<v8::Value>)’
3673 | V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index,
| ^~~
/home/pi/.cache/node-gyp/14.19.0/include/node/v8.h:3673:37: note: candidate expects 3 arguments, 2 provided
../src/HID.cc:509:62: error: no matching function for call to ‘v8::Object::Set(v8::Local<v8::String>, v8::Local<v8::String>)’
509 | Nan::New<String>(narrow(wstr).c_str()).ToLocalChecked());
| ^
In file included from /home/pi/.cache/node-gyp/14.19.0/include/node/node.h:67,
from ../src/HID.cc:30:
/home/pi/.cache/node-gyp/14.19.0/include/node/v8.h:3670:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, v8::Local<v8::Value>, v8::Local<v8::Value>)’
3670 | V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
| ^~~
/home/pi/.cache/node-gyp/14.19.0/include/node/v8.h:3670:37: note: candidate expects 3 arguments, 2 provided
/home/pi/.cache/node-gyp/14.19.0/include/node/v8.h:3673:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, uint32_t, v8::Local<v8::Value>)’
3673 | V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index,
| ^~~
/home/pi/.cache/node-gyp/14.19.0/include/node/v8.h:3673:37: note: candidate expects 3 arguments, 2 provided
../src/HID.cc:513:62: error: no matching function for call to ‘v8::Object::Set(v8::Local<v8::String>, v8::Local<v8::String>)’
513 | Nan::New<String>(narrow(wstr).c_str()).ToLocalChecked());
| ^
In file included from /home/pi/.cache/node-gyp/14.19.0/include/node/node.h:67,
from ../src/HID.cc:30:
/home/pi/.cache/node-gyp/14.19.0/include/node/v8.h:3670:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, v8::Local<v8::Value>, v8::Local<v8::Value>)’
3670 | V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
| ^~~
/home/pi/.cache/node-gyp/14.19.0/include/node/v8.h:3670:37: note: candidate expects 3 arguments, 2 provided
/home/pi/.cache/node-gyp/14.19.0/include/node/v8.h:3673:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, uint32_t, v8::Local<v8::Value>)’
3673 | V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index,
| ^~~
/home/pi/.cache/node-gyp/14.19.0/include/node/v8.h:3673:37: note: candidate expects 3 arguments, 2 provided
../src/HID.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE HID::devices(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/HID.cc:535:38: error: no matching function for call to ‘v8::Value::Int32Value()’
535 | vendorId = info[0]->Int32Value();
| ^
In file included from /home/pi/.cache/node-gyp/14.19.0/include/node/node.h:67,
from ../src/HID.cc:30:
/home/pi/.cache/node-gyp/14.19.0/include/node/v8.h:2869:40: note: candidate: ‘v8::Maybe<int> v8::Value::Int32Value(v8::Local<v8::Context>) const’
2869 | V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local<Context> context) const;
| ^~~~~~~~~~
/home/pi/.cache/node-gyp/14.19.0/include/node/v8.h:2869:40: note: candidate expects 1 argument, 0 provided
../src/HID.cc:536:39: error: no matching function for call to ‘v8::Value::Int32Value()’
536 | productId = info[1]->Int32Value();
| ^
In file included from /home/pi/.cache/node-gyp/14.19.0/include/node/node.h:67,
from ../src/HID.cc:30:
/home/pi/.cache/node-gyp/14.19.0/include/node/v8.h:2869:40: note: candidate: ‘v8::Maybe<int> v8::Value::Int32Value(v8::Local<v8::Context>) const’
2869 | V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local<Context> context) const;
| ^~~~~~~~~~
/home/pi/.cache/node-gyp/14.19.0/include/node/v8.h:2869:40: note: candidate expects 1 argument, 0 provided
../src/HID.cc:551:101: error: no matching function for call to ‘v8::Object::Set(v8::Local<v8::String>, Nan::imp::IntegerFactory<v8::Integer>::return_t)’
551 | ring>("vendorId").ToLocalChecked(), Nan::New<Integer>(dev->vendor_id));
| ^
In file included from /home/pi/.cache/node-gyp/14.19.0/include/node/node.h:67,
from ../src/HID.cc:30:
/home/pi/.cache/node-gyp/14.19.0/include/node/v8.h:3670:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, v8::Local<v8::Value>, v8::Local<v8::Value>)’
3670 | V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
| ^~~
/home/pi/.cache/node-gyp/14.19.0/include/node/v8.h:3670:37: note: candidate expects 3 arguments, 2 provided
/home/pi/.cache/node-gyp/14.19.0/include/node/v8.h:3673:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, uint32_t, v8::Local<v8::Value>)’
3673 | V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index,
| ^~~
/home/pi/.cache/node-gyp/14.19.0/include/node/v8.h:3673:37: note: candidate expects 3 arguments, 2 provided
../src/HID.cc:552:103: error: no matching function for call to ‘v8::Object::Set(v8::Local<v8::String>, Nan::imp::IntegerFactory<v8::Integer>::return_t)’
552 | ng>("productId").ToLocalChecked(), Nan::New<Integer>(dev->product_id));
| ^
In file included from /home/pi/.cache/node-gyp/14.19.0/include/node/node.h:67,
from ../src/HID.cc:30:
/home/pi/.cache/node-gyp/14.19.0/include/node/v8.h:3670:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, v8::Local<v8::Value>, v8::Local<v8::Value>)’
3670 | V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
| ^~~
/home/pi/.cache/node-gyp/14.19.0/include/node/v8.h:3670:37: note: candidate expects 3 arguments, 2 provided
/home/pi/.cache/node-gyp/14.19.0/include/node/v8.h:3673:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, uint32_t, v8::Local<v8::Value>)’
3673 | V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index,
| ^~~
/home/pi/.cache/node-gyp/14.19.0/include/node/v8.h:3673:37: note: candidate expects 3 arguments, 2 provided
../src/HID.cc:554:110: error: no matching function for call to ‘v8::Object::Set(v8::Local<v8::String>, v8::Local<v8::String>)’
554 | path").ToLocalChecked(), Nan::New<String>(dev->path).ToLocalChecked());
| ^
In file included from /home/pi/.cache/node-gyp/14.19.0/include/node/node.h:67,
from ../src/HID.cc:30:
/home/pi/.cache/node-gyp/14.19.0/include/node/v8.h:3670:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, v8::Local<v8::Value>, v8::Local<v8::Value>)’
3670 | V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
| ^~~
/home/pi/.cache/node-gyp/14.19.0/include/node/v8.h:3670:37: note: candidate expects 3 arguments, 2 provided
/home/pi/.cache/node-gyp/14.19.0/include/node/v8.h:3673:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, uint32_t, v8::Local<v8::Value>)’
3673 | V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index,
| ^~~
/home/pi/.cache/node-gyp/14.19.0/include/node/v8.h:3673:37: note: candidate expects 3 arguments, 2 provided
../src/HID.cc:557:143: error: no matching function for call to ‘v8::Object::Set(v8::Local<v8::String>, v8::Local<v8::String>)’
557 | Nan::New<String>(narrow(dev->serial_number).c_str()).ToLocalChecked());
| ^
In file included from /home/pi/.cache/node-gyp/14.19.0/include/node/node.h:67,
from ../src/HID.cc:30:
/home/pi/.cache/node-gyp/14.19.0/include/node/v8.h:3670:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, v8::Local<v8::Value>, v8::Local<v8::Value>)’
3670 | V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
| ^~~
/home/pi/.cache/node-gyp/14.19.0/include/node/v8.h:3670:37: note: candidate expects 3 arguments, 2 provided
/home/pi/.cache/node-gyp/14.19.0/include/node/v8.h:3673:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, uint32_t, v8::Local<v8::Value>)’
3673 | V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index,
| ^~~
/home/pi/.cache/node-gyp/14.19.0/include/node/v8.h:3673:37: note: candidate expects 3 arguments, 2 provided
../src/HID.cc:560:149: error: no matching function for call to ‘v8::Object::Set(v8::Local<v8::String>, v8::Local<v8::String>)’
560 | ew<String>(narrow(dev->manufacturer_string).c_str()).ToLocalChecked());
| ^
In file included from /home/pi/.cache/node-gyp/14.19.0/include/node/node.h:67,
from ../src/HID.cc:30:
/home/pi/.cache/node-gyp/14.19.0/include/node/v8.h:3670:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, v8::Local<v8::Value>, v8::Local<v8::Value>)’
3670 | V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
| ^~~
/home/pi/.cache/node-gyp/14.19.0/include/node/v8.h:3670:37: note: candidate expects 3 arguments, 2 provided
/home/pi/.cache/node-gyp/14.19.0/include/node/v8.h:3673:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, uint32_t, v8::Local<v8::Value>)’
3673 | V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index,
| ^~~
/home/pi/.cache/node-gyp/14.19.0/include/node/v8.h:3673:37: note: candidate expects 3 arguments, 2 provided
../src/HID.cc:563:139: error: no matching function for call to ‘v8::Object::Set(v8::Local<v8::String>, v8::Local<v8::String>)’
563 | an::New<String>(narrow(dev->product_string).c_str()).ToLocalChecked());
| ^
In file included from /home/pi/.cache/node-gyp/14.19.0/include/node/node.h:67,
from ../src/HID.cc:30:
/home/pi/.cache/node-gyp/14.19.0/include/node/v8.h:3670:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, v8::Local<v8::Value>, v8::Local<v8::Value>)’
3670 | V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
| ^~~
/home/pi/.cache/node-gyp/14.19.0/include/node/v8.h:3670:37: note: candidate expects 3 arguments, 2 provided
/home/pi/.cache/node-gyp/14.19.0/include/node/v8.h:3673:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, uint32_t, v8::Local<v8::Value>)’
3673 | V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index,
| ^~~
/home/pi/.cache/node-gyp/14.19.0/include/node/v8.h:3673:37: note: candidate expects 3 arguments, 2 provided
../src/HID.cc:565:105: error: no matching function for call to ‘v8::Object::Set(v8::Local<v8::String>, Nan::imp::IntegerFactory<v8::Integer>::return_t)’
565 | >("release").ToLocalChecked(), Nan::New<Integer>(dev->release_number));
| ^
In file included from /home/pi/.cache/node-gyp/14.19.0/include/node/node.h:67,
from ../src/HID.cc:30:
/home/pi/.cache/node-gyp/14.19.0/include/node/v8.h:3670:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, v8::Local<v8::Value>, v8::Local<v8::Value>)’
3670 | V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
| ^~~
/home/pi/.cache/node-gyp/14.19.0/include/node/v8.h:3670:37: note: candidate expects 3 arguments, 2 provided
/home/pi/.cache/node-gyp/14.19.0/include/node/v8.h:3673:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, uint32_t, v8::Local<v8::Value>)’
3673 | V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index,
| ^~~
/home/pi/.cache/node-gyp/14.19.0/include/node/v8.h:3673:37: note: candidate expects 3 arguments, 2 provided
../src/HID.cc:566:109: error: no matching function for call to ‘v8::Object::Set(v8::Local<v8::String>, Nan::imp::IntegerFactory<v8::Integer>::return_t)’
566 | nterface").ToLocalChecked(), Nan::New<Integer>(dev->interface_number));
| ^
In file included from /home/pi/.cache/node-gyp/14.19.0/include/node/node.h:67,
from ../src/HID.cc:30:
/home/pi/.cache/node-gyp/14.19.0/include/node/v8.h:3670:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, v8::Local<v8::Value>, v8::Local<v8::Value>)’
3670 | V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
| ^~~
/home/pi/.cache/node-gyp/14.19.0/include/node/v8.h:3670:37: note: candidate expects 3 arguments, 2 provided
/home/pi/.cache/node-gyp/14.19.0/include/node/v8.h:3673:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, uint32_t, v8::Local<v8::Value>)’
3673 | V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index,
| ^~~
/home/pi/.cache/node-gyp/14.19.0/include/node/v8.h:3673:37: note: candidate expects 3 arguments, 2 provided
../src/HID.cc:568:107: error: no matching function for call to ‘v8::Object::Set(v8::Local<v8::String>, Nan::imp::IntegerFactory<v8::Integer>::return_t)’
568 | ng>("usagePage").ToLocalChecked(), Nan::New<Integer>(dev->usage_page));
| ^
In file included from /home/pi/.cache/node-gyp/14.19.0/include/node/node.h:67,
from ../src/HID.cc:30:
/home/pi/.cache/node-gyp/14.19.0/include/node/v8.h:3670:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, v8::Local<v8::Value>, v8::Local<v8::Value>)’
3670 | V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
| ^~~
/home/pi/.cache/node-gyp/14.19.0/include/node/v8.h:3670:37: note: candidate expects 3 arguments, 2 provided
/home/pi/.cache/node-gyp/14.19.0/include/node/v8.h:3673:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, uint32_t, v8::Local<v8::Value>)’
3673 | V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index,
| ^~~
/home/pi/.cache/node-gyp/14.19.0/include/node/v8.h:3673:37: note: candidate expects 3 arguments, 2 provided
../src/HID.cc:571:98: error: no matching function for call to ‘v8::Object::Set(v8::Local<v8::String>, Nan::imp::IntegerFactory<v8::Integer>::return_t)’
571 | :New<String>("usage").ToLocalChecked(), Nan::New<Integer>(dev->usage));
| ^
In file included from /home/pi/.cache/node-gyp/14.19.0/include/node/node.h:67,
from ../src/HID.cc:30:
/home/pi/.cache/node-gyp/14.19.0/include/node/v8.h:3670:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, v8::Local<v8::Value>, v8::Local<v8::Value>)’
3670 | V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
| ^~~
/home/pi/.cache/node-gyp/14.19.0/include/node/v8.h:3670:37: note: candidate expects 3 arguments, 2 provided
/home/pi/.cache/node-gyp/14.19.0/include/node/v8.h:3673:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, uint32_t, v8::Local<v8::Value>)’
3673 | V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index,
| ^~~
/home/pi/.cache/node-gyp/14.19.0/include/node/v8.h:3673:37: note: candidate expects 3 arguments, 2 provided
../src/HID.cc:573:36: error: no matching function for call to ‘v8::Array::Set(int, v8::Local<v8::Object>&)’
573 | retval->Set(count++, deviceInfo);
| ^
In file included from /home/pi/.cache/node-gyp/14.19.0/include/node/node.h:67,
from ../src/HID.cc:30:
/home/pi/.cache/node-gyp/14.19.0/include/node/v8.h:3670:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, v8::Local<v8::Value>, v8::Local<v8::Value>)’
3670 | V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
| ^~~
/home/pi/.cache/node-gyp/14.19.0/include/node/v8.h:3670:37: note: candidate expects 3 arguments, 2 provided
/home/pi/.cache/node-gyp/14.19.0/include/node/v8.h:3673:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, uint32_t, v8::Local<v8::Value>)’
3673 | V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index,
| ^~~
/home/pi/.cache/node-gyp/14.19.0/include/node/v8.h:3673:37: note: candidate expects 3 arguments, 2 provided
../src/HID.cc: In static member function ‘static void HID::Initialize(v8::Local<v8::Object>)’:
../src/HID.cc:596:31: warning: ‘void node::AtExit(void (*)(void*), void*)’ is deprecated: Use the three-argument variant of AtExit() or AddEnvironmentCleanupHook() [-Wdeprecated-declarations]
596 | node::AtExit(deinitialize, 0);
| ^
In file included from ../src/HID.cc:30:
/home/pi/.cache/node-gyp/14.19.0/include/node/node.h:889:22: note: declared here
889 | NODE_EXTERN void AtExit(void (*cb)(void* arg), void* arg = nullptr));
| ^~~~~~
/home/pi/.cache/node-gyp/14.19.0/include/node/node.h:108:42: note: in definition of macro ‘NODE_DEPRECATED’
108 | __attribute__((deprecated(message))) declarator
| ^~~~~~~~~~
../src/HID.cc:614:82: error: no matching function for call to ‘v8::FunctionTemplate::GetFunction()’
614 | (Nan::New<String>("HID").ToLocalChecked(), hidTemplate->GetFunction());
| ^
In file included from /home/pi/.cache/node-gyp/14.19.0/include/node/node.h:67,
from ../src/HID.cc:30:
/home/pi/.cache/node-gyp/14.19.0/include/node/v8.h:6482:46: note: candidate: ‘v8::MaybeLocal<v8::Function> v8::FunctionTemplate::GetFunction(v8::Local<v8::Context>)’
6482 | V8_WARN_UNUSED_RESULT MaybeLocal<Function> GetFunction(
| ^~~~~~~~~~~
/home/pi/.cache/node-gyp/14.19.0/include/node/v8.h:6482:46: note: candidate expects 1 argument, 0 provided
../src/HID.cc:616:115: error: no matching function for call to ‘v8::FunctionTemplate::GetFunction()’
616 | calChecked(), Nan::New<FunctionTemplate>(HID::devices)->GetFunction());
| ^
In file included from /home/pi/.cache/node-gyp/14.19.0/include/node/node.h:67,
from ../src/HID.cc:30:
/home/pi/.cache/node-gyp/14.19.0/include/node/v8.h:6482:46: note: candidate: ‘v8::MaybeLocal<v8::Function> v8::FunctionTemplate::GetFunction(v8::Local<v8::Context>)’
6482 | V8_WARN_UNUSED_RESULT MaybeLocal<Function> GetFunction(
| ^~~~~~~~~~~
/home/pi/.cache/node-gyp/14.19.0/include/node/v8.h:6482:46: note: candidate expects 1 argument, 0 provided
In file included from ../src/HID.cc:30:
../src/HID.cc: At global scope:
/home/pi/.cache/node-gyp/14.19.0/include/node/node.h:793:7: warning: cast between incompatible function types from ‘void (*)(v8::Local<v8::Object>)’ to ‘node::addon_register_func’ {aka ‘void (*)(v8::Local<v8::Object>, v8::Local<v8::Value>, void*)’} [-Wcast-function-type]
793 | (node::addon_register_func) (regfunc), \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/pi/.cache/node-gyp/14.19.0/include/node/node.h:827:3: note: in expansion of macro ‘NODE_MODULE_X’
827 | NODE_MODULE_X(modname, regfunc, NULL, 0) // NOLINT (readability/null_usage)
| ^~~~~~~~~~~~~
../src/HID.cc:629:3: note: in expansion of macro ‘NODE_MODULE’
629 | NODE_MODULE(HID, init);
| ^~~~~~~~~~~
make: *** [HID.target.mk:120: Release/obj.target/HID/src/HID.o] Fehler 1
make: Verzeichnis „/home/pi/node_modules/node-hid/build“ wird verlassen
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
gyp ERR! stack at ChildProcess.emit (events.js:400:28)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:282:12)
gyp ERR! System Linux 5.10.92-v7+
gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/pi/node_modules/node-hid
gyp ERR! node -v v14.19.0
gyp ERR! node-gyp -v v5.1.0
gyp ERR! not ok
npm WARN enoent ENOENT: no such file or directory, open '/home/pi/package.json'
npm WARN pi No description
npm WARN pi No repository field.
npm WARN pi No README data
npm WARN pi No license field.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! node-hid@0.5.7 install: `prebuild-install || node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the node-hid@0.5.7 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/pi/.npm/_logs/2022-06-24T08_57_22_665Z-debug.log
Yes,m the used library is outdated for newer node.js versions and needs to be updated ... and some more stuff ...
@ben21684 Please try to istall GitHub version - https://github.com/iobroker-community-adapters/ioBroker.hid Does it work now?
renamed to hid-community
make: *** [HID.target.mk:120: Release/obj.target/HID/src/HID.o] Fehler 1 make: Verzeichnis „/opt/iobroker/node_modules/node-hid/build“ wird verlassen gyp ERR! build error gyp ERR! stack Error:
make
failed with exit code: 2 gyp ERR! stack at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23) gyp ERR! stack at ChildProcess.emit (events.js:400:28) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:282:12) gyp ERR! System Linux 5.10.92-v7+ 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/node-hid gyp ERR! node -v v14.19.0 gyp ERR! node-gyp -v v5.1.0 gyp ERR! not ok npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.3.2 (node_modules/fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.2: wanted {"os":"darwin","arch" :"any"} (current: {"os":"linux","arch":"arm"})npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! node-hid@0.5.7 install:
prebuild-install || node-gyp rebuild
npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the node-hid@0.5.7 install script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.npm ERR! A complete log of this run can be found in: npm ERR! /home/iobroker/.npm/_logs/2022-06-23T17_58_58_564Z-debug.log