agnat / node_mdns

mdns/zeroconf/bonjour service discovery add-on for node.js
http://agnat.github.com/node_mdns
MIT License
870 stars 146 forks source link

can not create a node package for MIPS openwrt #185

Closed cnliri1 closed 6 years ago

cnliri1 commented 7 years ago

The mdns node_modules can not run on wndr4300 with openwrt. If this caused by cross compile failure or somthing else?Can someone help about it?

Error log as below

node: '/root/HAP-NodeJS/node_modules/mdns/build/Release/dns_sd_bindings.node' is not an ELF executable for MIPS

/root/HAP-NodeJS/node_modules/mdns/lib/dns_sd.js:35 throw ex; ^ Error: File not found at Module.load (module.js:356:32) at Function.Module._load (module.js:312:12) at Module.require (module.js:364:17) at require (module.js:380:17) at Object. (/root/HAP-NodeJS/node_modules/mdns/lib/dns_sd.js:24:20) at Module._compile (module.js:456:26) at Object.Module._extensions..js (module.js:474:10) at Module.load (module.js:356:32) at Function.Module._load (module.js:312:12) at Module.require (module.js:364:17)

js-john commented 7 years ago

did you get solution? I met the same problem as your case

cnliri1 commented 7 years ago

@js-john nothing update..

agnat commented 6 years ago

[...] dns_sd_bindings.node is not an ELF executable for MIPS

Yes, that is a cross-compilation issue. :)

AFAIK, cross-compiling node add-ons is not really supported. You will have to write your own makefile.