SkiaSharp icon indicating copy to clipboard operation
SkiaSharp copied to clipboard

System.DllNotFoundException: Unable to load shared library 'libSkiaSharp' or one of its dependencies. In order to help diagnose loading problems, consider setting the LD_DEBUG environment variable: liblibSkiaSharp:

Open dandanyouxiang opened this issue 2 years ago • 2 comments

App.zip Unhandled exception. System.TypeInitializationException: The type initializer for 'SkiaSharp.SKImageInfo' threw an exception. ---> System.DllNotFoundException: Unable to load shared library 'libSkiaSharp' or one of its dependencies. In order to help diagnose loading problems, consider setting the LD_DEBUG environment variable: liblibSkiaSharp: cannot open shared object file: No such file or directory at SkiaSharp.SkiaApi.sk_colortype_get_default_8888() at SkiaSharp.SKImageInfo..cctor() --- End of inner exception stack trace --- at SkiaSharp.SKImageInfo..ctor(Int32 width, Int32 height) at App.Program.Main(String[] args) in C:\Users\Tom\Downloads\SkiaSharp-main\samples\Basic\NetCore\Console\App\Program.cs:line 13

This problem occurs when I run under Linux(Loongson-3A40000)

Using the following method is the same problem <PackageReference Include="SkiaSharp.NativeAssets.Linux" Version="2.88.0" /> <PackageReference Include="SkiaSharp.NativeAssets.Linux.NoDependencies" Version="2.88.0" />

dandanyouxiang avatar Jul 25 '22 08:07 dandanyouxiang

image

Run Ubuntu is OK

dandanyouxiang avatar Jul 25 '22 09:07 dandanyouxiang

Add Package SkiaSharp.NativeAssets.Linux or SkiaSharp.NativeAssets.Linux.NoDependencies.

zxh126 avatar Aug 08 '22 01:08 zxh126

Duplicate of #1999

mattleibow avatar Aug 12 '22 19:08 mattleibow