Open stoefln opened 5 years ago
After spending weeks on trying to figure out what's wrong, I've made some progress and I am able to build for osx now. Still struggling on windows. One thing I can tell for sure: Bundling opencv4electron for windows requires a lot of additional effort (copying libraries around etc.). Hit me up if you want to get my script...
@stoefln I'm running into some issues with opencv4nodejs inside of electron. Could you share what you did to make it work? I'm trying to go down the electron-forge path.
@gallagherrchris: I got a lot of useful hints from this project: https://github.com/fakob/MoviePrint_v004 do you have troubles with win or mac?
I have troubles on both. I created a small project showing my issue.
https://github.com/gallagherrchris/opencv4nodejs-electron-test
This project won't start as it can't find the opencv4nodejs
module.
I noticed that the project you linked is using electron 4. I was trying to stick with electron-forge
as that means I wouldn't have to configure as much myself. Perhaps that is my mistake.
@gallagherrchris I also had some other issues with electron 5, so I stuck with electron 4 for now. I am not using electron forge btw. My problem was that there were dependencies missing. The error "module not found" is misleading. What it actually should say is "Module or some of its dependencies not found". In my case it was a dependency issue. I wrote a script which packages the missing opencv dependencies into the electron app. Uploaded it here: https://gist.github.com/stoefln/ed1b0a63e229438f54a86ab7ad277073
For windows it was enough for me to add this configuration to the package.json: https://github.com/fakob/MoviePrint_v004/blob/master/package.json#L106-L112
Let me know if you keep having troubles....
I have almost the same your issue, and this is my attempt
https://github.com/justadudewhohacks/opencv4nodejs/issues/707#issuecomment-686993124
I am using opencv4nodejs in my electron app.
When I package the app and try to run it on another computer I am getting following error:
Any ideas what's wrong? I found a very similar issue on github, but not sure if it really is