node-rpi-ws281x-native: Build errors on RaspberryPi4
Hi!
I get lots of build errors when trying to npm install rpi-ws281x-native
on a Raspi4 (Raspbian buster 4.19.97). (node-gyp rebuild fails at the nan module.)
I tried different versions of node (10.0.0, 12.13.1, 13.12.0, 14.1.0). Any ideas how to deal with this?
About this issue
- Original URL
- State: open
- Created 4 years ago
- Comments: 36 (7 by maintainers)
any updates on this PR? I to am having some issue on build.
I think i fixed it, the question is how did it work at all before? This is the diff:
So GetFunction needed the Nan:: namespace, makes sense.
But some bindings where pointing to non-existing functions (reset and setbrightness), while others where missing. (set*)
Now it compiles and functions in my setup. (raspbian 10 on pi zero with nodejs 14)
Any news? I need to run this on a RPI 3B+
Thanks for your reply @SimonGAndrews
I’ve used NVM to switch to use node 10.21.0 and npm installed the rpi-ws281x package, however it seems running the test I get the same type of error as I did with this ws281x-native:
Try my fork, I used to have similar issues. https://github.com/lubomirmolin/rpi-ws281x-nodejs