lsongdev / lsongdev/node-bluetooth

Missing symbol?

Đang mở
#28 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Ngôn ngữ chính
C++
Star
205
Fork
56
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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();
```

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Hướng nghiên cứu

Bắt đầu với entry point require('node-bluetooth') trong JavaScript được liên kết với index.html và node_modules/node-bluetooth/build/Release/BluetoothSerialPort.node đã được build được báo cáo trong lỗi. Tái hiện lỗi với Electron v4 trên macOS 10.14.03, sau đó kiểm tra cách native addon được build và load. Công việc được xem là hoàn tất khi ứng dụng có thể require package và hoàn tất quá trình quét Bluetooth mà không gặp lỗi missing-symbol.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
cpp, electron, node.js
Lĩnh vực
desktop, embedded-iot
Loại issue
Lỗi
Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Cần làm rõ
Mức phù hợp với người mới
25/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.