noble / bleno

A Node.js module for implementing BLE (Bluetooth Low Energy) peripherals
MIT License
2.13k stars 450 forks source link

FreeBSD is not supported yet #438

Open cusspvz opened 5 years ago

cusspvz commented 5 years ago

Although the readme states it supports FreeBSD, that's not entirely true, because node-bluetooth-hci-socket's FreeBSD support is not released yet (https://github.com/noble/node-bluetooth-hci-socket/commit/04553d620b910d0a6475a2e16f555a026f3ae200). Last release was https://github.com/noble/node-bluetooth-hci-socket/releases/tag/0.5.2 which does not include that commit.

I'm currently installing the master branch of node-bluetooth-hci-socket and still not sure if it works, I just figured that out and wanted to capture that into an issue.

cusspvz commented 5 years ago

The master branch of the node-bluetooth-hci-socket is not compatible with the FreeBSD 12.0

../src/BluetoothHciSocket.cpp:276:42: error: no matching member function for call to 'NewInstance'
../../nan/nan.h:1045:3: note: 'MakeCallback' has been explicitly marked deprecated here
  NAN_DEPRECATED inline v8::Local<v8::Value> MakeCallback(
  ^
  Local<Value> error = errorConstructor->NewInstance(1, constructorArgs);
                       ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~