lsongdev / lsongdev/node-bluetooth

Missing symbol?

Open
#28 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
205
Forks
56
PR merge metrics
No merged PRs in 30d

Description

Hey, I'm trying to make an electron app that searches for bluetooth devices as a test to see if I can get it to work, but I get this error when running my code.
```
dyld: lazy symbol binding failed: Symbol not found: __ZN2v811HandleScope12CreateHandleEPNS_8internal10HeapObjectEPNS1_6ObjectE
Referenced from: /Volumes/HaydenDrive/Code/Personal/Applications/Bluetooth/node_modules/node-bluetooth/build/Release/BluetoothSerialPort.node
Expected in: flat namespace
```

I'm not entirely sure what to do, as I've only just built the package using NPM.
I'm running macOS 10.14.03, using the v4.0 of electron.

Here's my code in the js file linked to my index.html:
```js
const bl = require('node-bluetooth');
const device = new bl.DeviceINQ();
device
.on('finished', console.log.bind(console, 'finished'))
.on('found', function found(address, name){
let row = deviceTable.insertRow()
let devName = row.insertCell(0);
let devMAC = row.insertCell(1);
devName.innerHTML = name;
devMAC.innerHTML = address;
}).scan();
```

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the require('node-bluetooth') entry point in the JavaScript linked to index.html and the built node_modules/node-bluetooth/build/Release/BluetoothSerialPort.node reported in the error. Reproduce the failure with Electron v4 on macOS 10.14.03, then inspect how the native addon is built and loaded. Done means the app can require the package and complete the Bluetooth scan without the missing-symbol error.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, electron, node.js
Domain
desktop, embedded-iot
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.