SkiaSharp: Unable to load DLL 'libSkiaSharp' on Linux (AWS Lambda)

I used to have a 1.56.2 build (pull date arround 2017-03-01) I compiled that on a Linux (Ubuntu 16.04) box. And that version worked perfectly fine on AWS Lambda and also on other Linux boxes.

Now I have compiled againt the latest source 1.57.1 (checkout 2017-05-02) and no matter what I try I get

System.TypeInitializationException: The type initializer for 'SkiaSharp.SKManagedStream' threw an exception. ---> System.DllNotFoundException: Unable to load DLL 'libSkiaSharp': The specified module could not be found.

Is there something I’m doing wrong. Has something significantly changed the way it used to load the native lib.

BTW: I included libSkiaSharp.so and libSkiaSharp.so.57.1.0 in the bin dir.

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 23 (12 by maintainers)

Most upvoted comments

I’ve been using it for about a month, haven’t had any issues yet. I’ll keep this issue updated if I encounter any problems.

@mattleibow That’s really good to hear. I’ll try using this for a while and post back.

@kekekeks Indeed now I see libSkiaSharp.so file in output directory but exception still occurs… Should I do something more?

Ok, found that I need to apt-install libfontconfig1 to my container. Thanks.