Installation fails on Node 5.0
Closed this issue · 1 comments
kentandersen commented
I'm having trouble installing on Node 5.0 (same result with 4.0) running on Raspbian.
This is the error I get when running npm install
CXX(target) Release/obj.target/_spi/src/spi_binding.o
In file included from ../src/spi_binding.h:19:0,
from ../src/spi_binding.cc:19:
/root/.node-gyp/5.0.0/include/node/v8.h:336:1: error: expected unqualified-id before 'using'
/root/.node-gyp/5.0.0/include/node/v8.h:469:1: error: expected unqualified-id before 'using'
/root/.node-gyp/5.0.0/include/node/v8.h:856:1: error: expected unqualified-id before 'using'
In file included from ../src/spi_binding.cc:19:0:
../src/spi_binding.h:35:32: error: 'Handle' has not been declared
../src/spi_binding.h:35:38: error: expected ',' or '...' before '<' token
../src/spi_binding.cc:38:14: error: variable or field 'init' declared void
../src/spi_binding.cc:38:14: error: 'Handle' was not declared in this scope
../src/spi_binding.cc:38:27: error: expected primary-expression before '>' token
../src/spi_binding.cc:38:29: error: 'target' was not declared in this scope
../src/spi_binding.cc:42:3: error: 'init' was not declared in this scope
../src/spi_binding.cc:47:22: error: variable or field 'Initialize' declared void
../src/spi_binding.cc:47:22: error: 'Handle' was not declared in this scope
../src/spi_binding.cc:47:35: error: expected primary-expression before '>' token
../src/spi_binding.cc:47:37: error: 'target' was not declared in this scope
_spi.target.mk:86: recipe for target 'Release/obj.target/_spi/src/spi_binding.o' failed
make: *** [Release/obj.target/_spi/src/spi_binding.o] Error 1
make: Leaving directory '/root/dev/radionette-input/node_modules/spi/build'
# uname --all
Linux MusicBox 3.18.7-v7+ #755 SMP PREEMPT Thu Feb 12 17:20:48 GMT 2015 armv7l GNU/Linux
Is there anything I'm missing or doing wrong?
graysonarts commented
I haven't updated it for 4 or 5. Readme delineates what is supported and what isn't supported. 0.12.x is the last supported version. When I originally wrote this module, there was very little support for SPI anywhere, but now, there are a ton of modules that support it, so I'm going to let this module die. Check out https://github.com/natevw/pi-spi if you want support for later versions of Node since I believe that one already supports 4.x, and has the same goal node-spi originally did.