lsongdev / lsongdev/node-bluetooth
Missing symbol?
还没有人认领这个 Issue。
- 主要语言
- C++
- 星标
- 205
- 派生
- 56
- PR 合并指标
- 30 天内没有已合并 PR
描述
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();
```
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
从与 index.html 关联的 JavaScript 中的 require('node-bluetooth') 入口点,以及错误中报告的已构建文件 node_modules/node-bluetooth/build/Release/BluetoothSerialPort.node 开始。使用 Electron v4 在 macOS 10.14.03 上重现该故障,然后检查 native addon 的构建和加载方式。当应用能够 require 该 package 并在没有 missing-symbol 错误的情况下完成 Bluetooth 扫描时,即表示完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- cpp, electron, node.js
- 领域
- desktop, embedded-iot
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 需要澄清
- 新手友好度
- 25/100