-
Notifications
You must be signed in to change notification settings - Fork 136
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 dockerize an app that uses this library #276
Comments
@ffrankozz And You can refer https://github.com/takuya-takeuchi/DlibDotNet/wiki/Tutorial-for-Linux to resolve issue. |
@takuya-takeuchi Thank you very much for your reply. I will have a look at the link you refer to. In the mean time, where do I run that "ldd -v" command? Is it a command to run in the root of the project? |
I'm not sure how you installed dlibdotnet. |
@takuya-takeuchi Thank you for your directions. I have taken a different approach. I created a docker image from your ubuntu base file. I then created the runtime docker image using the base image. |
I think this is not dlibdotnet issue.
|
@takuya-takeuchi Thank you very much for the suggestions. It is strange that everything is fine with normal desktop build and run. But when dockerized, the docker image, when run, reads the input picture file, data file which are in the project root but somehow I cannot see the saved output image in the current directory. I changed the output picture saving location to somewhere in the local drive, but still no output picture there. I can read the bytes of the output file and write on the console. I am sure the output image is being created. But somehow not visible. I now it is not a dlibdotnet issue but I just wanted to share it. Perhaps, mounting app directory will help. I will try that next. |
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.
The text was updated successfully, but these errors were encountered: