Install/Cross Compiled Node Modules
- 
					
					
					
					
 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)? 
 
- 
					
					
					
					
 @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..
 
- 
					
					
					
					
 hap-nodejs itself does not require node-gyp rebuilding. Dependencies which do require it: - mdns
- curve25519-n2
- ed25519
 I was able to build all of them on my omega 2+. Here is the link: 
 https://happyche.wordpress.com/2017/12/05/homebridge-on-lede-openwrt-routers/One thing I needed to do differently was, pasting dns_sd.hfile into/usr/include, and not into/usr/include/avahi-compat-libdns_sd.I can share compiled libpthread.afile on priv.
 
