Install/Cross Compiled Node Modules
Chris Schlitt last edited by
I am trying to setup Homebridge on my 2+ and I'm having some trouble cross-compiling the dependencies. I have been able to setup the cross-compilation environment on my Mac (High Sierra) however I continuously receive "Illegal Instruction 4" errors when trying to cross compile.
I was then able to get in touch with someone who successfully cross-compiled HAP-NodeJS (Homebridge's only dependency that requires compilation, Homebridge itself doesn't need to be cross compiled) however I have not been successful installing that compiled version on my 2+. I've tried copying over files to various locations on the 2+, but when I then try and install Homebridge, the omega attempts to rebuild the HAP-Nodejs dependency (with node-gyp/make). Here is a link to the compiled module: https://blog.bencww.com/download/homekit.zip, and here is the user's blogpost on how he cross-compiled it: https://blog.bencww.com/2016/11/09/DIY-a-HomeKit-Light-and-a-Sensor/
How would I go about installing this cross-compiled node module, and then subsequently install Homebridge (if it's not just calling npm install homebridge)?
tommaso tani last edited by
@Chris-Schlitt Hi Chris, were you able to make it work?
I'm still trying to cross compile the package with tons of errors, so I was wondering if you had more luck..
Daniel Chmielowiec last edited by
hap-nodejs itself does not require node-gyp rebuilding. Dependencies which do require it:
I was able to build all of them on my omega 2+. Here is the link:
One thing I needed to do differently was, pasting
/usr/include, and not into
I can share compiled
libpthread.afile on priv.