lsongdev / lsongdev/node-bluetooth

Can't install on Ubuntu 18.0.4

Abierto
#51 1 comentario 10 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Lenguaje dominante
C++
Estrellas
205
Forks
56
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

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.

Guía de contribución

Abrir la guía de contribución

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Línea de trabajo

Comienza con src/linux/BluetoothSerialPort.cc y binding.gyp, y luego reproduce sudo node-gyp configure build en Ubuntu 18.04 con Node 14.4.0. Investiga los errores de compilación reportados de Handle e InitAll; se considera terminado cuando el módulo se compile correctamente en el entorno indicado.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
cpp, linux, node.js, ubuntu
Área
build-system, embedded-iot, operating-systems
Tipo de issue
Error
Dificultad
4/5
Tiempo estimado
3-5 días
Estado de actividad
Estancado
Claridad
Necesita aclaración
Aptitud para principiantes
25/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.