You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Does anyone know how to include Microsofts C++ Redistributable into opencv4nodejs/opencv-build?
My MoviePrint app packages opencv4nodejs with electron-builder into an electron desktop app. I now have noticed that the app only works on a computer where Microsofts C++ Redistributable is installed. If that is not the case, the following error is thrown:
Uncaught Error: The specified module could not be found.
\\?\C:\Users\Jakob\AppData\Local\Programs\movieprint-v004\resources\app\node_modules\opencv4nodejs\build\Release\opencv4nodejs.node
at process.module.(anonymous function) [as dlopen] (ELECTRON_ASAR.js:166:20)
at Object.Module._extensions..node (internal/modules/cjs/loader.js:740)
at Object.module.(anonymous function) [as .node] (ELECTRON_ASAR.js:166:20)
at Module.load (internal/modules/cjs/loader.js:620)
at tryModuleLoad (internal/modules/cjs/loader.js:559)
at Function.Module._load (internal/modules/cjs/loader.js:551)
at Module.require (internal/modules/cjs/loader.js:658)
at require (internal/modules/cjs/helpers.js:20)
at Object.<anonymous> (C:\Users\Jakob\AppDa…nodejs\lib\cv.js:17)
at Object.<anonymous> (C:\Users\Jakob\AppDa…nodejs\lib\cv.js:28)
It seems that when the electron app is built, all dlls included in the Redistributable are added to the root folder of the app. I am unfortunately not familiar with how linking on Windows works. But I was wondering if opencv4nodejs/opencv-build could be built in a way that it recognises these dlls in the root folder and the user does not have to install the Redistributable in addition?
This issue mentions an article that it should be possible with some cmake flags.
Does anyone have experience with that?
The text was updated successfully, but these errors were encountered:
fakob
added a commit
to fakob/MoviePrint_v004
that referenced
this issue
Jun 3, 2019
As mentioned packs electron some of the Redistributable dlls into the app, but misses the CONCRT140.dll.
Not sure why it is missing in the first place or what this dll is responsible for. However, after copying this file into the app's root folder, the aforementioned error is gone and the app runs as expected.
Hi
Does anyone know how to include Microsofts C++ Redistributable into opencv4nodejs/opencv-build?
My MoviePrint app packages opencv4nodejs with electron-builder into an electron desktop app. I now have noticed that the app only works on a computer where Microsofts C++ Redistributable is installed. If that is not the case, the following error is thrown:
It seems that when the electron app is built, all dlls included in the Redistributable are added to the root folder of the app. I am unfortunately not familiar with how linking on Windows works. But I was wondering if opencv4nodejs/opencv-build could be built in a way that it recognises these dlls in the root folder and the user does not have to install the Redistributable in addition?
This issue mentions an article that it should be possible with some cmake flags.
Does anyone have experience with that?
The text was updated successfully, but these errors were encountered: