noble / bleno

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

npm install bleno failure #413

Open gwpantazes opened 5 years ago

gwpantazes commented 5 years ago

npm installation of bleno is failing on my machine.

The full npm install and error log can be seen in this gist

Commands I have tried

But there's a broken step for XpcConnection. (Again, for full log see gist)

  CXX(target) Release/obj.target/binding/src/XpcConnection.o
../src/XpcConnection.cpp:143:89: error: too few arguments to function call,
      expected 2, have 1
  ...propertyValue = object->GetRealNamedProperty(propertyName->ToString());
                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~                         ^

Is there a workaround for this, or does this need fixing? If you need any additional information, I'd be happy to help.

Environment: MacOs High Sierra: 10.13.4 python --version: Python 3.7.0 npm --version: 6.4.1

jstlaurent commented 5 years ago

That was also reported on node-xpc-connection.

bekirdag commented 5 years ago

I had the same issue, this worked for me: https://github.com/sandeepmistry/node-xpc-connection/issues/24#issuecomment-410697015

mark-rodgers commented 5 years ago

I had the same issue, this worked for me: sandeepmistry/node-xpc-connection#24 (comment)

This worked for me to install Bleno, but unfortunately Bleno has some problems on macOS Mojave (10.14.x) which is preventing me from using the library thus far :(

drewcovi commented 5 years ago

@sandeepmistry @jacobrosenthal any chance we can update the dependency to https://github.com/jongear/xpc-connect?

This fellow forked and maintains it.