SkiaSharp
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:
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" />
Run Ubuntu is OK
Add Package SkiaSharp.NativeAssets.Linux or SkiaSharp.NativeAssets.Linux.NoDependencies.
Duplicate of #1999