-
-
Notifications
You must be signed in to change notification settings - Fork 214
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
"zmq.node" is not a valid DLL or Win32 application on Windows with Electron #242
Comments
I tried using a basic electron app without any kind of scaffolding tools to create it, I still received the same error. |
I re-created my project from scratch and now on Windows, I get this:
and that even after rebuilding "zeromq" with
Anyone could help me please? Thank you in advance. |
I found the main issue but I don't know how to solve it yet. It is the fact that prebuild-install module doesn't found a module in zmq.node file when trying to require it. I found that prebuild-install adds a "\\?\" before the path where the "zmq.node" is. |
It is now fine with prebuild-install 2.5.3 |
@ndrantotiana Thank you for reporting back here! |
Seems is same error, so please refer my answer in this post: A dynamic link library (DLL) initialization routine failed And the solution is: Change var EventEmitter = require('events').EventEmitter
, zmq = require('../build/Release/zmq.node')
, util = require('util'); to: var EventEmitter = require('events').EventEmitter
let path = require('path')
let zmqNodePath = path.join("..", "build", "Release", "zmq.node")
var zmq = require(zmqNodePath)
var util = require('util') |
Hello.
I'm using bozon to scaffold an Electron project.
I tried to add [email protected] with the generated Electron project (Electron version is 1.8.4) and while launching (not yet packaging for now) it on OS X, it is working but on Windows, it won't works telling "A dynamic link library (DLL) initialization routine failed" for "node_modules\zeromq\build\Release\zmq.node".
I have already execute "npm rebuild zeromq --runtime=electron --target=1.8.4" before running the app but it's not working.
Any assistance would be welcome.
The text was updated successfully, but these errors were encountered: