lsongdev / lsongdev/node-bluetooth

Can't install on Ubuntu 18.0.4

Đang mở
#51 1 bình luận 10 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ả

Hello, module can't install on ubuntu. Here the trace :

sudo node-gyp configure build
gyp info it worked if it ends with ok
gyp info using node-gyp@7.0.0
gyp info using node@14.4.0 | linux | x64
gyp info find Python using Python version 3.6.9 found at "/usr/bin/python3"
gyp info spawn /usr/bin/python3
gyp info spawn args [
gyp info spawn args '/usr/lib/node_modules/node-gyp/gyp/gyp_main.py',
gyp info spawn args 'binding.gyp',
gyp info spawn args '-f',
gyp info spawn args 'make',
gyp info spawn args '-I',
gyp info spawn args '/home/fennia/restaurants/node_modules/node-bluetooth/build/config.gypi',
gyp info spawn args '-I',
gyp info spawn args '/usr/lib/node_modules/node-gyp/addon.gypi',
gyp info spawn args '-I',
gyp info spawn args '/home/fennia/.cache/node-gyp/14.4.0/include/node/common.gypi',
gyp info spawn args '-Dlibrary=shared_library',
gyp info spawn args '-Dvisibility=default',
gyp info spawn args '-Dnode_root_dir=/home/fennia/.cache/node-gyp/14.4.0',
gyp info spawn args '-Dnode_gyp_dir=/usr/lib/node_modules/node-gyp',
gyp info spawn args '-Dnode_lib_file=/home/fennia/.cache/node-gyp/14.4.0/<(target_arch)/node.lib',
gyp info spawn args '-Dmodule_root_dir=/home/fennia/restaurants/node_modules/node-bluetooth',
gyp info spawn args '-Dnode_engine=v8',
gyp info spawn args '--depth=.',
gyp info spawn args '--no-parallel',
gyp info spawn args '--generator-output',
gyp info spawn args 'build',
gyp info spawn args '-Goutput_dir=.'
gyp info spawn args ]
gyp info spawn make
gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
make: Entering directory '/home/fennia/restaurants/node_modules/node-bluetooth/build'
CXX(target) Release/obj.target/BluetoothSerialPort/src/linux/BluetoothSerialPort.o
../src/linux/BluetoothSerialPort.cc:28:14: error: variable or field ‘InitAll’ declared void
void InitAll(Handle exports) {
^~~~~~
../src/linux/BluetoothSerialPort.cc:28:14: error: ‘Handle’ was not declared in this scope
../src/linux/BluetoothSerialPort.cc:28:14: note: suggested alternative: ‘rand_r’
void InitAll(Handle exports) {
^~~~~~
rand_r
../src/linux/BluetoothSerialPort.cc:28:27: error: expected primary-expression before ‘>’ token
void InitAll(Handle exports) {
^
../src/linux/BluetoothSerialPort.cc:28:29: error: ‘exports’ was not declared in this scope
void InitAll(Handle exports) {
^~~~~~~
In file included from ../src/linux/BluetoothSerialPort.cc:13:0:
../src/linux/BluetoothSerialPort.cc:36:34: error: ‘InitAll’ was not declared in this scope
NODE_MODULE(BluetoothSerialPort, InitAll)
^
/home/fennia/.cache/node-gyp/14.4.0/include/node/node.h:729:36: note: in definition of macro ‘NODE_MODULE_X’
(node::addon_register_func) (regfunc),
^~~~~~~
../src/linux/BluetoothSerialPort.cc:36:1: note: in expansion of macro ‘NODE_MODULE’
NODE_MODULE(BluetoothSerialPort, InitAll)
^~~~~~~~~~~
BluetoothSerialPort.target.mk:117: recipe for target 'Release/obj.target/BluetoothSerialPort/src/linux/BluetoothSerialPort.o' failed
make: *** [Release/obj.target/BluetoothSerialPort/src/linux/BluetoothSerialPort.o] Error 1
make: Leaving directory '/home/fennia/restaurants/node_modules/node-bluetooth/build'
gyp ERR! build error
gyp ERR! stack Error: make failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/lib/node_modules/node-gyp/lib/build.js:194:23)
gyp ERR! stack at ChildProcess.emit (events.js:315:20)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:276:12)
gyp ERR! System Linux 4.15.0-65-generic
gyp ERR! command "/usr/bin/node" "/usr/bin/node-gyp" "configure" "build"
gyp ERR! cwd /home/fennia/restaurants/node_modules/node-bluetooth
gyp ERR! node -v v14.4.0
gyp ERR! node-gyp -v v7.0.0
gyp ERR! not ok

Can somebody help ??
Thanks.

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 src/linux/BluetoothSerialPort.cc và binding.gyp, sau đó tái hiện sudo node-gyp configure build trên Ubuntu 18.04 với Node 14.4.0. Điều tra các lỗi biên dịch được báo cáo của Handle và InitAll; hoàn tất khi module được build thành công trong môi trường đã báo cáo.

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, linux, node.js, ubuntu
Lĩnh vực
build-system, embedded-iot, operating-systems
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.