Open ssaylanc opened 6 years ago
I'm seeing those same error building dependencies with Node 10.x. I suggest you downgrade to Node 8.x. Follow these instructions https://github.com/noble/bleno/issues/388#issuecomment-391457444
FYI, It builds fine with v8.11.3
Hi, Have you succeeded in config of pi for the use of bleno?
May I suggest to try @abandonware fork and report at: Relate-to: https://github.com/abandonware/bleno/issues/17
I am on the lastest raspbian strect. node version 10.2.1
`pi@raspberrypi:~ $ npm install bleno
node-pre-gyp ERR! Tried to download(404): https://github.com/tessel/node-usb/releases/download/1.3.1/usb_bindings-v1.3.1-node-v64-linux-arm.tar.gz node-pre-gyp ERR! Pre-built binaries not found for usb@1.3.1 and node@10.2.1 (node-v64 ABI, glibc) (falling back to source compile with node-gyp) node-pre-gyp ERR! Tried to download(undefined): https://github.com/tessel/node-usb/releases/download/1.3.1/usb_bindings-v1.3.1-node-v64-linux-arm.tar.gz node-pre-gyp ERR! Pre-built binaries not found for usb@1.3.1 and node@10.2.1 (node-v64 ABI, glibc) (falling back to source compile with node-gyp) make: Entering directory '/home/pi/node_modules/usb/build' CC(target) Release/obj.target/libusb/libusb/libusb/core.o make: Entering directory '/home/pi/node_modules/usb/build' CC(target) Release/obj.target/libusb/libusb/libusb/core.o CC(target) Release/obj.target/libusb/libusb/libusb/descriptor.o CC(target) Release/obj.target/libusb/libusb/libusb/descriptor.o CC(target) Release/obj.target/libusb/libusb/libusb/hotplug.o CC(target) Release/obj.target/libusb/libusb/libusb/io.o CC(target) Release/obj.target/libusb/libusb/libusb/hotplug.o CC(target) Release/obj.target/libusb/libusb/libusb/io.o CC(target) Release/obj.target/libusb/libusb/libusb/strerror.o CC(target) Release/obj.target/libusb/libusb/libusb/sync.o CC(target) Release/obj.target/libusb/libusb/libusb/os/poll_posix.o CC(target) Release/obj.target/libusb/libusb/libusb/strerror.o CC(target) Release/obj.target/libusb/libusb/libusb/os/threads_posix.o CC(target) Release/obj.target/libusb/libusb/libusb/sync.o CC(target) Release/obj.target/libusb/libusb/libusb/os/linux_usbfs.o CC(target) Release/obj.target/libusb/libusb/libusb/os/poll_posix.o CC(target) Release/obj.target/libusb/libusb/libusb/os/threads_posix.o CC(target) Release/obj.target/libusb/libusb/libusb/os/linux_usbfs.o CC(target) Release/obj.target/libusb/libusb/libusb/os/linux_udev.o AR(target) Release/obj.target/usb.a COPY Release/usb.a CXX(target) Release/obj.target/usb_bindings/src/node_usb.o CC(target) Release/obj.target/libusb/libusb/libusb/os/linux_udev.o AR(target) Release/obj.target/usb.a COPY Release/usb.a CXX(target) Release/obj.target/usb_bindings/src/node_usb.o ../src/node_usb.cc: In function 'void handleHotplug(std::pair<libusb_device, libusb_hotplug_event>)': ../src/node_usb.cc:150:58: warning: 'v8::Local Nan::MakeCallback(v8::Local, const char , int, v8::Local)' is deprecated [-Wdeprecated-declarations]
Nan::MakeCallback(Nan::New(hotplugThis), "emit", 2, argv);
^
In file included from ../src/helpers.h:3:0,
from ../src/node_usb.h:21,
from ../src/node_usb.cc:1:
../../nan/nan.h:971:46: note: declared here
NAN_DEPRECATED inline v8::Local MakeCallback(
^ , libusb_hotplug_event>)':
../src/node_usb.cc:150:58: warning: 'v8::Local Nan::MakeCallback(v8::Local, const char, int, v8::Local )' is deprecated [-Wdeprecated-declarations]
Nan::MakeCallback(Nan::New(hotplugThis), "emit", 2, argv);
^
In file included from ../src/helpers.h:3:0,
from ../src/node_usb.h:21,
from ../src/node_usb.cc:1:
../../nan/nan.h:971:46: note: declared here
NAN_DEPRECATED inline v8::Local MakeCallback(
^ Nan::MakeCallback(v8::Local, v8::Local, int, v8::Local )' is deprecated [-Wdeprecated-declarations]
Nan::MakeCallback(device, Nan::New(baton->callback), 1, argv);
^
In file included from ../src/helpers.h:3:0,
from ../src/node_usb.h:21,
from ../src/device.cc:1:
../../nan/nan.h:929:46: note: declared here
NAN_DEPRECATED inline v8::Local MakeCallback(
^ Nan::MakeCallback(v8::Local, v8::Local, int, v8::Local )' is deprecated [-Wdeprecated-declarations]
Nan::MakeCallback(device, Nan::New(baton->callback), 1, argv);
^
In file included from ../src/helpers.h:3:0,
from ../src/node_usb.h:21,
from ../src/device.cc:1:
../../nan/nan.h:929:46: note: declared here
NAN_DEPRECATED inline v8::Local MakeCallback(
^ Nan::MakeCallback(v8::Local, v8::Local, int, v8::Local )' is deprecated [-Wdeprecated-declarations]
Nan::MakeCallback(self->handle(), Nan::New(self->v8callback), 3, argv);
^
In file included from ../src/helpers.h:3:0,
from ../src/node_usb.h:21,
from ../src/transfer.cc:1:
../../nan/nan.h:929:46: note: declared here
NAN_DEPRECATED inline v8::Local MakeCallback(
^ Nan::MakeCallback(v8::Local, v8::Local, int, v8::Local )' is deprecated [-Wdeprecated-declarations]
Nan::MakeCallback(self->handle(), Nan::New(self->v8callback), 3, argv);
^
In file included from ../src/helpers.h:3:0,
from ../src/node_usb.h:21,
from ../src/transfer.cc:1:
../../nan/nan.h:929:46: note: declared here
NAN_DEPRECATED inline v8::Local MakeCallback(
^
~~~ ../src/node_usb.cc: In function 'void handleHotplug(std::pair<libusb_device~~~ CXX(target) Release/obj.target/usb_bindings/src/device.o CXX(target) Release/obj.target/usb_bindings/src/device.o ../src/device.cc: In static member function 'static void Req::default_after(uv_work_t)': ../src/device.cc:237:64: warning: 'v8::Local~~~ ../src/device.cc: In static member function 'static void Req::default_after(uv_work_t)': ../src/device.cc:237:64: warning: 'v8::Local~~~ CXX(target) Release/obj.target/usb_bindings/src/transfer.o CXX(target) Release/obj.target/usb_bindings/src/transfer.o ../src/transfer.cc: In function 'void handleCompletion(Transfer)': ../src/transfer.cc:126:72: warning: 'v8::Local~~~ ../src/transfer.cc: In function 'void handleCompletion(Transfer)': ../src/transfer.cc:126:72: warning: 'v8::Local~~~ SOLINK_MODULE(target) Release/obj.target/usb_bindings.node COPY Release/usb_bindings.node COPY /home/pi/node_modules/usb/src/binding/usb_bindings.node TOUCH Release/obj.target/action_after_build.stamp make: Leaving directory '/home/pi/node_modules/usb/build' SOLINK_MODULE(target) Release/obj.target/usb_bindings.node COPY Release/usb_bindings.node COPY /home/pi/node_modules/usb/src/binding/usb_bindings.node TOUCH Release/obj.target/action_after_build.stamp make: Leaving directory '/home/pi/node_modules/usb/build'make: Entering directory '/home/pi/node_modules/bluetooth-hci-socket/build' CXX(target) Release/obj.target/binding/src/BluetoothHciSocket.o ../src/BluetoothHciSocket.cpp: In member function 'void BluetoothHciSocket::poll()': ../src/BluetoothHciSocket.cpp:251:95: warning: 'v8::Local Nan::MakeCallback(v8::Local, v8::Local, int, v8::Local)' is deprecated [-Wdeprecated-declarations]
Nan::MakeCallback(Nan::New) const
V8_WARN_UNUSED_RESULT MaybeLocal