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

Wiring pi wont compile #4

Open
beniroquai opened this issue Feb 12, 2015 · 8 comments
Open

Wiring pi wont compile #4

beniroquai opened this issue Feb 12, 2015 · 8 comments
Labels

Comments

@beniroquai
Copy link

When I do "npm install wiringpi", after a while I get this output:

/home/pi/.node-gyp/0.12.0/deps/v8/include/v8.h:3455:34: note: static v8::Localv8::FunctionTemplate v8::FunctionTemplate::New(v8::Isolate_, v8::FunctionCallback, v8::Handlev8::Value, v8::Handlev8::Signature, int)
/home/pi/.node-gyp/0.12.0/deps/v8/include/v8.h:3455:34: note: no known conversion for argument 1 from ‘v8::Handlev8::Value(const int&)’ to ‘v8::Isolate_’
wiringPi.target.mk:85: recipe for target 'Release/obj.target/wiringPi/src/bindings.o' failed
make: *** [Release/obj.target/wiringPi/src/bindings.o] Error 1
make: Leaving directory '/home/pi/heimcontrol.js/node_modules/piswitch/node_modules/wiring-pi/build'
gyp ERR! build error
gyp ERR! stack Error: make failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:267:23)
gyp ERR! stack at ChildProcess.emit (events.js:110:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:1067:12)
gyp ERR! System Linux 3.12.35+
gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/pi/heimcontrol.js/node_modules/piswitch/node_modules/wiring-pi
gyp ERR! node -v v0.12.0
gyp ERR! node-gyp -v v1.0.2
gyp ERR! not ok
npm ERR! Linux 3.12.35+
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "piswitch"
npm ERR! node v0.12.0
npm ERR! npm v2.5.1
npm ERR! code ELIFECYCLE

npm ERR! [email protected] install: /bin/bash ./install.sh
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script '/bin/bash ./install.sh'.
npm ERR! This is most likely a problem with the wiring-pi package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! /bin/bash ./install.sh
npm ERR! You can get their info via:
npm ERR! npm owner ls wiring-pi
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! /home/pi/heimcontrol.js/npm-debug.log

Im using wheezy and wanted to install heimcontrol.js. Any idea what could be wrong? thank you!

@tjanson
Copy link
Owner

tjanson commented Feb 13, 2015

I’ve updated the wiring-pi dependency to use version 2.0.0 in the hope that that’ll fix it. It should work, but I haven’t tested it at all. (I don’t have a Pi ready for testing right now, nor much time.)

If you try it, please report back either way. :)

@nekuz0r
Copy link

nekuz0r commented Feb 26, 2015

The problem is wiring-pi 2.0.0 is not ready for node 0.12.x, wiring-pi 2.1.0 will be released in the next weeks with support for node 0.12.x, raspberry pi A+ and raspberry pi 2.

@joeking11829
Copy link

Cool !
I have same problem, i will downgrade my Node.js.
And try to install again.

@dirkels
Copy link

dirkels commented May 4, 2015

Had similar problems and after downgrading to node v0.10.36 it all worked fine (https://node-arm.herokuapp.com/node_0.10.36_armhf.deb). Well apart from Raspberry Pi 2 not being supported yet but that is in the works I read.

@ghost
Copy link

ghost commented May 28, 2015

For NodeJS 0.12.x :

Before installing piSwitch (if already installed, remove it)
Install this version of WiringPi : npm install git+https://[email protected]/nekuz0r/wiring-pi.git#incoming-node-v0.12.x
(WiringPi/WiringPi-Node#20 (comment))
Install piSwitch npm install piSwitch

And now...it works fine on NodeJS 0.12.x

@R1CH-T
Copy link

R1CH-T commented Jul 7, 2015

Hi Tom,
Is it still, currently the case that you have to install a different version of WiringPi, as above ^ ?
I still can't get the darned thing to work.
Thanks,
Rich.

@tjanson
Copy link
Owner

tjanson commented Jul 7, 2015

@R1CH-T: I’m not sure, I haven’t used PiSwitch in a while. I might get to it this weekend or next – I’ve been meaning to set up it up again in my new appartment, but haven’t had the time.

@R1CH-T
Copy link

R1CH-T commented Jul 7, 2015

Thanks, Tom. :)

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

No branches or pull requests

6 participants