-
Notifications
You must be signed in to change notification settings - Fork 280
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
electron issues #174
Comments
Hi @khrome, A few questions to help us figure out what's going on:
|
I was, but have updated to current with electron + nvm (1.4.13 & 6.5.0) at the 4th log. Before I was on (1.4.11 & 4.4.7). It seems like the compiler is either being given the wrong flags or is running with some strange or unexpected defaults. I am, indeed, on OSX 10.11.6. I have both Let me know if I can provide any other details! |
Hi! The fact that you're getting so many errors is indicative that something very essential is not getting set up correctly. Both before and after doing the node upgrades mentioned above, what is output with the following commands:
Also, in a different directory, try building node-hid all by itself, by doing:
|
~/NPMs/electron-hid-toy:daedalus>which gcc I got the same output (added to the gist) from a direct clone & install of node-hid Thanks! |
Dang that's weird in that it's prefectly normal. I'm on the same OS with the same version of node and node-hid compiles fine. Hmm, I'll keep looking around for other clues. Is your system configured interestingly in any way?
The |
gcc --version
|
Over the holidays I tried upgrading to Sierra, which had no effect. Continuing to investigate... |
Good news, I finally got I'll close this after I validate it in the parent project I was originally working on. Thanks for the attention. |
OK, I can confirm everything except the compile path is working under an electron (under node the compile path seems fine) project and everything is working (as expected) in node.js proper. Feel free to let this issue dangle for the |
I have this issue, too. I noticed that in the
I have an electron app which depends on node-hid, and when I run it I get an error about |
Hi @danielmcq & @khrome, |
Thanks! |
@todbot The latest code in master seems to have fixed the issue. Thank you for working on that. I'm still not experience with everything involved with node-gyp otherwise I would have tried doing a pull request for you. BTW, will you be bumping either the minor or patch version of node-hid now that you have this code in place? EDIT: I see that the patch version got bumped right after the change that fixed this. Ignore my question in this post. Thanks again! |
Cheers, @danielmcq. Thanks for testing things out. |
Thanks! @todbot, @danielmcq |
Hey there, I'm just trying to verify a library I write ( https://www.npmjs.com/package/barcode-scanner ) will work in electron, but deps are proving to be an issue.
Electron + HID installation attempts have been frustrating, I first tried all kinds of voodoo in my own project, but lost faith that it really had anything to do with that project (at very least I want to confirm node-hid would install in a vanilla project).
I then tried the
node-hid-toy
repo, which will not compile for me. Out of the box it complains rimraf is missing and then when I manually add that I wind up fatal on compile. I've tried using the install hook, and manually triggeringIs there something I'm missing?
https://gist.github.com/khrome/eb9721e6ffeb740e371db8822c252d1d
The text was updated successfully, but these errors were encountered: