Skip to content
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

dockerization problem #953

Closed
ffrankozz opened this issue May 18, 2020 · 2 comments
Closed

dockerization problem #953

ffrankozz opened this issue May 18, 2020 · 2 comments
Labels

Comments

@ffrankozz
Copy link

ffrankozz commented May 18, 2020

I am working on a Windows 10 pro m/c.
I have used the latest OpenCVSharp libraries (4.3.0...)
My, for instance, webapi with aspnetcore version 3.1 works perfectly.
However when I create a linux docker container from the app and run it, it explodes spitting out
"System.TypeInitializationException' occurred in OpenCvSharp.dll: 'The type initializer for 'OpenCvSharp.NativeMethods' threw an exception.'" message,
on the first line it meets an OpenCVSharp call such as:

new Mat(100, 100, MatType.CV_8UC1, new Scalar(0));

Has anybody been able to run a linux container successfully so far from their OpenCVSharp4 application?

@shimat
Copy link
Owner

shimat commented May 18, 2020

I think there is something wrong with the library dependencies, you can use ldd command to check dependencies of libOpenCvSharpExtern.so.

The Dockerfile I created may be helpful.
https://github.com/shimat/opencvsharp/blob/master/docker/ubuntu.18.04-x64/Dockerfile

I am aware of the following problem, but I don't have a good solution.
#920

I run an application with OpenCvSharp on Linux Docker on Google AppEngine Flexible.

@stale
Copy link

stale bot commented Nov 14, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Nov 14, 2020
@stale stale bot closed this as completed Nov 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants