[Bug] 在linux独立发布,运行的时候报错
Check the following items
- [x] I have looked up relevant Issue
Description of the issue
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 using a tool like strace. If you're using glibc, consider setting the LD_DEBUG environment variable: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.29' not found (required by /home/ita/Desktop/linux-x64/libSkiaSharp.so) libSkiaSharp.so: cannot open shared object file: No such file or directory /home/ita/Desktop/linux-x64/liblibSkiaSharp.so: cannot open shared object file: No such file or directory /home/ita/Desktop/linux-x64/libSkiaSharp: cannot open shared object file: No such file or directory /home/ita/Desktop/linux-x64/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 Avalonia.Skia.PlatformRenderInterface..ctor(Nullable1 maxResourceBytes) at Avalonia.Skia.SkiaPlatform.Initialize(SkiaOptions options) at Avalonia.SkiaApplicationExtensions.<>c.<UseSkia>b__0_0() at Avalonia.AppBuilder.SetupUnsafe() at Avalonia.AppBuilder.Setup() at Avalonia.AppBuilder.SetupWithLifetime(IApplicationLifetime lifetime) at Avalonia.ClassicDesktopStyleApplicationLifetimeExtensions.StartWithClassicDesktopLifetime(AppBuilder builder, String[] args, Action1 lifetimeBuilder)
at SukiUI.Demo.Program.Main(String[] args) in F:\working\codes\SukiUI\SukiUI.Demo\Program.cs:line 14
Package Version
latest
Environment
linux
Expected Behavior
3
Reproduction
1
Additional Information
2