-
Notifications
You must be signed in to change notification settings - Fork 15.2k
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
Native C++ Add-on on Windows Platform #3243
Comments
This is code for "You tried to load a 32-bit DLL in a 64-bit EXE" or vice versa. |
Thanks @paulcbettsl. Even when built to the 64-bit architecture which is what my machine is, I'm receiving:
I installed |
@paulcbetts I got it to work by adding the |
Sorry to bring this topic up again, but... Where exactly did you add the |
http://electron.atom.io/docs/v0.36.7/tutorial/using-native-node-modules/#the-node-gyp-way
@ruipimentel are you trying the what is above and still seeing the issue? |
Hi, @bleib1dj , thanks for your fast answer! Quick question #1
You meant this instead, right?
Quick question #2There would be no problem changing Quick question #3What are these "development headers"? I'm assuming we're talking about C/C++ headers, but from what (Node, Electron, or the module itself)? Quick question #4While trying to run I'm sorry for bothering you again, but unfortunately I couldn't get it to work alone, even though I'm trying really hard to understand things... :/ And, again, thank you for your help!! |
Question 1: Yup
Question 4: Without seeing your setup it's hard to know what the root cause of that error is. Might wanna try looking at the description here https://github.com/nwjs/nw.js/wiki/build-native-modules-with-nw-gyp
And not a problem, just as a note though for questions about usage of electron you'll probably want to use stack overflow or the discussion forum https://discuss.atom.io/c/electron rather than the issue log. Hope it helps :). |
System Information
Platform: Windows 7 64-bit
Electron Version: 0.34.1
npm Version: 2.14.7
node Version: 4.2.1
Issue
I'm working on utilizing a native add-on in electron. I've followed the examples provided in the docs and have been able to get them to load up in electron on OS X 10.11.1 without an issue. However, on Windows
node-gyp
completes its build and the add-on executes from the command line usingnode ./
, but when I launch the same code into electron I receive the following:After reading around a bit I also tried compiling it to a 32-bit arch which also built successfully but then resulted in electron throwing:
Additional Information
StackOverflow: Calling Node Native Addons C++ in Electron
The text was updated successfully, but these errors were encountered: