Skip to content

How to dockerize an app that uses this library #276

@ffrankozz

Description

@ffrankozz

Summary of your issue

I created a simple console app to get facial landmarks on a Wİndows 10 machine.
I get the facial landmarks of an input image and write the landmarks on an output image.
The app is working without a problem. However, when I create the docker image of the console app and run the docker image
I get an exception.
Unhandled exception. System.TypeInitializationException: The type initializer for 'DlibDotNet.NativeMethods' threw an exception.
---> System.DllNotFoundException: Unable to load shared library 'DlibDotNetNativeDnn' or one of its dependencies. In order to help diagnose loading problems, consider setting the LD_DEBUG environment variable: libDlibDotNetNativeDnn: cannot open shared object file: No such file or directory
at DlibDotNet.NativeMethods.LossMetric_anet_type_create()
at DlibDotNet.NativeMethods..cctor()
--- End of inner exception stack trace ---
at DlibDotNet.NativeMethods.get_frontal_face_detector()
at DlibFaceProject.Program.Main(String[] args) in /src/DlibFaceProject/Program.cs:line 18

Line 18 is the first place where we call a DLib method.

Metadata

Metadata

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions