-
Notifications
You must be signed in to change notification settings - Fork 19
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
How to run in electron project? #24
Comments
I have same problem on MacOS: |
@anhhtbk The reason for this error is that there are no prebuild available (because I don't own a Mac and did not publish them), so it tries to load the dll build for windows which doesn't work. For Mac you will need to install the development tools and build it yourself: "npx cmake-js compile" @danhnd98 I suspect the issue with electron is similar, as above. Basically you are cross-compiling your app (e.g. for android) but the native dll (c++) is not cross compiled, so it cannot load it. You also need to make electron compile it (which I don't know how it's done, sorry) |
Here are some pointers: |
@knopkem Thanks for your response. I did try |
You don't need to configure it, the project should be already set correctly. All you need is to have cmake installed and in PATH. Basically, cmake-js is a wrapper that needs to call it. Of course you then need to have a c++ compiler (clang on Mac ) installed for it to compile |
@knopkem I did some step:
Did I wrong which step? |
this sounds right what you did. I would delete the build folder than rebuild than run the examples, e.g. run example:echoscu |
@knopkem I did it. It runs ok. But when I move it to my electron project, it has the same error above. |
@anhhtbk got my hands on a mac and added a prebuild. Can you try importing the module via npm in your project, it should now work out of the box. You can also try https://github.com/knopkem/dicomweb-proxy which uses it already. Let me know. |
Error: "a dynamic link library (dll) initialization routine failed with electron" with electron project
nodeJs: v12.18.3, electron: v15.3.0
The text was updated successfully, but these errors were encountered: