Closed redandinvisible closed 4 years ago
I got that too when installing on mac, but when running on Rpi it was fine.
Yes it is annoying not sure what is the solution, but for now I have made a separate branch for mac development that does not have the dependency in it.
cpu_set_t is a core affinity setting thing that is linux only, not on macOS. This project relies on the IO of the rpi so I doubt you'll be able to get it working on any apple hardware.
Install as optional dependency with ´npm install easybotics-rpi-rgb-led-matrix —save-optional’.
NPM will ignore compilation error. It then should work on a RPi, not on other platform but ´npm install’ won’t be blocked anymore if you do some debuging on a Mac (for example)
this issue only comes about on non linux envs only ill reopen this issue when you prove you're running macos on a rpi.
Sorry, how would i prove that? I just had the default Raspbien OS on the rpi. Is it mandatory for this library for it to be running on macos on the pi - i didnt even know you could do that!
Sorry, this is my first ever project with a rpi - although i am a backend dev for a living so i'm not completely out of my depth :)
Sorry Ill take another look
@redandinvisible it really looks like you tried to build it on macOS or a different non-linux OS
because http://man7.org/linux/man-pages/man3/CPU_SET.3.html cpu_set_t should absolutely be available and everyone else having this problem tried building on mac
is it possible you were sshing into a raspi and accidentally tried to build this from the mac you were sshing from? thats the only way I can see this happening to you, what do you think? it also looks like the path you were in is a macos one otherwise im confused
I noticed you committed a fix for Issue #1 (Many thanks). I tried to install the latest version from npm, at version 0.3.0, but I get the following error.
I removed all my old node_modules in case there was a clash with my local workaround but, same error. Fingers crossed it's something at my end...