SkiaSharp inn Linux Containers
See original GitHub issueHello,
I have a project with a dependency on SkiaSharp. It was originally running in Windows, and I’m now trying to get it running on a linux docker container.
My project use SkiarSharp v1.60.0. I have manually added in the same folder the libSkiaSharp.so file found in the release’s assets.
But when I try to run the container, I get the “Unable to load DLL 'libSkiaSharp': The specified module or one of its dependencies could not be found.
” error message.
Does anyone knows how to get it working on Linux / Docker ?
Thanks
Issue Analytics
- State:
- Created 5 years ago
- Comments:9 (6 by maintainers)
Top Results From Across the Web
Deploy SkiaSharp on a container running .NET 6 Alpine ...
You are targeting your application for alpine, but you are running it in the final container, which is based on base : FROM...
Read more >SkiaSharp lib works locally but not in sandbox env : r/csharp
Hey, I am using the SkiaSharp library and it works locally with .NET 6. Running it on an env that runs in linux...
Read more >System.DllNotFoundException in net core app. Docker for ...
But when I run the application from under Docker on the Linux platform, I see an error. Exception thrown: 'System.DllNotFoundException' in SkiaSharp.dll
Read more >How to deploy devexpress reopring viewer for linux docker
I want to serve the report viewer as a linux docker container. ... .com/DevExpress-Examples/reporting-use-devexpress-drawing-skia-engine.
Read more >Platform specific dependencies
The QuestPDF library has a dependency called SkiaSharp which is used to render the final PDF file. QuestPDF works without problems in Blazor...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I created a sample repo with a small container that should just work: https://github.com/mattleibow/SkiaSharp-Docker
Ah, you may be using an incorrect version of the native library vs the managed library. The native API is entirely dependent on Google’s skia.
Google removed that particular method in v1.60. The previous version (v1.59.3) still has that method. You can download that native version here: https://github.com/mono/SkiaSharp/releases/tag/v1.59.3
But, just check the version that is currently in use and download that particular one.