benov84 / homebridge-chromecast-television

Homebridge Chromecast as Television
13 stars 1 forks source link

Can't install to HOOBS 4 #15

Closed IBOYHK closed 3 years ago

IBOYHK commented 3 years ago

Here is the issue of plugins:

npm ERR! code 1 npm ERR! path /usr/lib/node_modules/homebridge-chromecast-television/node_modules/mdns npm ERR! command failed npm ERR! command sh -c node-gyp rebuild npm ERR! make: Entering directory '/usr/lib/node_modules/homebridge-chromecast-television/node_modules/mdns/build' npm ERR! CXX(target) Release/obj.target/dns_sd_bindings/src/dns_sd.o npm ERR! make: Leaving directory '/usr/lib/node_modules/homebridge-chromecast-television/node_modules/mdns/build' npm ERR! gyp info it worked if it ends with ok npm ERR! gyp info using node-gyp@7.1.2 npm ERR! gyp info using node@14.17.2 | linux | arm npm ERR! gyp info find Python using Python version 3.7.3 found at "/usr/bin/python3" npm ERR! gyp info spawn /usr/bin/python3 npm ERR! gyp info spawn args [ npm ERR! gyp info spawn args '/usr/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py', npm ERR! gyp info spawn args 'binding.gyp', npm ERR! gyp info spawn args '-f', npm ERR! gyp info spawn args 'make', npm ERR! gyp info spawn args '-I', npm ERR! gyp info spawn args '/usr/lib/node_modules/homebridge-chromecast-television/node_modules/mdns/build/config.gypi', npm ERR! gyp info spawn args '-I', npm ERR! gyp info spawn args '/usr/lib/node_modules/npm/node_modules/node-gyp/addon.gypi', npm ERR! gyp info spawn args '-I', npm ERR! gyp info spawn args '/root/.cache/node-gyp/14.17.2/include/node/common.gypi', npm ERR! gyp info spawn args '-Dlibrary=shared_library', npm ERR! gyp info spawn args '-Dvisibility=default', npm ERR! gyp info spawn args '-Dnode_root_dir=/root/.cache/node-gyp/14.17.2', npm ERR! gyp info spawn args '-Dnode_gyp_dir=/usr/lib/node_modules/npm/node_modules/node-gyp', npm ERR! gyp info spawn args '-Dnode_lib_file=/root/.cache/node-gyp/14.17.2/<(target_arch)/node.lib', npm ERR! gyp info spawn args '-Dmodule_root_dir=/usr/lib/node_modules/homebridge-chromecast-television/node_modules/mdns', npm ERR! gyp info spawn args '-Dnode_engine=v8', npm ERR! gyp info spawn args '--depth=.', npm ERR! gyp info spawn args '--no-parallel', npm ERR! gyp info spawn args '--generator-output', npm ERR! gyp info spawn args 'build', npm ERR! gyp info spawn args '-Goutput_dir=.' npm ERR! gyp info spawn args ] npm ERR! gyp info spawn make npm ERR! gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ] npm ERR! In file included from ../src/dns_sd.cpp:1: npm ERR! ../src/mdns.hpp:32:10: fatal error: dns_sd.h: No such file or directory npm ERR! #include npm ERR! ^~~~~~ npm ERR! compilation terminated. npm ERR! make: *** [dns_sd_bindings.target.mk:177: Release/obj.target/dns_sd_bindings/src/dns_sd.o] Error 1 npm ERR! gyp ERR! build error npm ERR! gyp ERR! stack Error: make failed with exit code: 2 npm ERR! gyp ERR! stack at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23) npm ERR! gyp ERR! stack at ChildProcess.emit (events.js:375:28) npm ERR! gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:277:12) npm ERR! gyp ERR! System Linux 5.10.17-v7+ npm ERR! gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" npm ERR! gyp ERR! cwd /usr/lib/node_modules/homebridge-chromecast-television/node_modules/mdns npm ERR! gyp ERR! node -v v14.17.2 npm ERR! gyp ERR! node-gyp -v v7.1.2 npm ERR! gyp ERR! not ok

npm ERR! A complete log of this run can be found in: npm ERR! /root/.npm/_logs/2021-07-27T17_04_09_360Z-debug.log

IBOYHK commented 3 years ago

it apply to all Chromecast related plugins

benov84 commented 3 years ago

This plugin depends on mdns library, which throws the error. I don't know what can I do. See here for more info on how to install the module: https://github.com/agnat/node_mdns