Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CEC dependancy installation #1

Open
mortocks opened this issue Apr 28, 2016 · 3 comments
Open

CEC dependancy installation #1

mortocks opened this issue Apr 28, 2016 · 3 comments

Comments

@mortocks
Copy link

Can't seen to get node cec library working as it's not installable via npm. Instructions would be useful

Steps tried
On raspberry pi
// Install cec library manually in global npm folder
cd /usr/local/lib/node_modules/
git clone https://github.com/adammw/node-cec.git
git checkout transmit
cd cec
npm install
homebridge

Errors below

[4/28/2016, 1:51:03 PM] ====================
[4/28/2016, 1:51:03 PM] ERROR LOADING PLUGIN homebridge-cec:
[4/28/2016, 1:51:03 PM] Error: Cannot find module './build/Release/addon'
at Function.Module._resolveFilename (module.js:339:15)
at Function.Module._load (module.js:290:25)
at Module.require (module.js:367:17)
at require (internal/module.js:16:19)
at Object. (/usr/local/lib/node_modules/cec/index.js:3:13)
at Module._compile (module.js:413:34)
at Object.Module._extensions..js (module.js:422:10)
at Module.load (module.js:357:32)
at Function.Module._load (module.js:314:12)
at Module.require (module.js:367:17)
[4/28/2016, 1:51:03 PM] ====================

@rooi
Copy link
Owner

rooi commented Apr 28, 2016

Hi, thanks for reporting.

the error seems to indicate that the node-cec is not install / build properly.
you can try a node-gyp rebuild and the dir ./build/Release should be created.

I just tried to streamline the install process (see latest commit), but the libcec dependency is giving me some trouble. Using the latest commit I get node-cec to rebuild on my raspberry pi, but it fails.

Note: I use this plugin on my mac mini. I hope to get it to work on my pi soon.

@mortocks
Copy link
Author

Thanks, yeah trying to compile on a Pi. Assume you're seeing the same error as me

gyp: binding.gyp not found (cwd: /usr/local/lib/node_modules/homebridge-cec) while trying to load binding.gyp

I'll keep fighting with it.

@rooi
Copy link
Owner

rooi commented May 30, 2016

Hi,

I've create a new version which links to a different node-cec. It works on my mac using nodejs 4.0 and installs on my raspberry pi (but did not test it functionally just yet).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants