Open WhiteBlackGoose opened 1 year ago
I am having the same issue but when trying to run Uno app on WSL.
DllNotFoundException: Unable to load shared library 'libSkiaSharp' or one of its dependencies. In order to help diagnose
........
/mnt/c/Projects/Samples/Uno.Playground/Uno.Playground.Skia.Gtk/bin/Debug/net7.0/liblibSkiaSharp: cannot open shared object file: No such file or directory
Same problem here. Looking for /app/runtimes/linux-x64/native/liblibSkiaSharp.so but there is /app/runtimes/linux-x64/native/libSkiaSharp.so Exception : ..... 2023-04-20T11:48:31.397985690Z ---> 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: 2023-04-20T11:48:31.397997990Z libfontconfig.so.1: cannot open shared object file: No such file or directory 2023-04-20T11:48:31.398006990Z /usr/share/dotnet/shared/Microsoft.NETCore.App/7.0.5/libSkiaSharp.so: cannot open shared object file: No such file or directory 2023-04-20T11:48:31.398016090Z /app/libSkiaSharp.so: cannot open shared object file: No such file or directory 2023-04-20T11:48:31.398024790Z /app/runtimes/linux-x64/native/liblibSkiaSharp.so: cannot open shared object file: No such file or directory 2023-04-20T11:48:31.398033391Z /usr/share/dotnet/shared/Microsoft.NETCore.App/7.0.5/liblibSkiaSharp.so: cannot open shared object file: No such file or directory 2023-04-20T11:48:31.398042391Z /app/liblibSkiaSharp.so: cannot open shared object file: No such file or directory 2023-04-20T11:48:31.398051691Z /app/runtimes/linux-x64/native/libSkiaSharp: cannot open shared object file: No such file or directory 2023-04-20T11:48:31.398060891Z /usr/share/dotnet/shared/Microsoft.NETCore.App/7.0.5/libSkiaSharp: cannot open shared object file: No such file or directory 2023-04-20T11:48:31.398071891Z /app/libSkiaSharp: cannot open shared object file: No such file or directory 2023-04-20T11:48:31.398081191Z /app/runtimes/linux-x64/native/liblibSkiaSharp: cannot open shared object file: No such file or directory 2023-04-20T11:48:31.398090091Z /usr/share/dotnet/shared/Microsoft.NETCore.App/7.0.5/liblibSkiaSharp: cannot open shared object file: No such file or directory 2023-04-20T11:48:31.398099791Z /app/liblibSkiaSharp: cannot open shared object file: No such file or directory 2023-04-20T11:48:31.398108691Z ....
It is just the lookup paths that the runtime tries. I think the first failure is the main issue:
libfontconfig.so.1: cannot open shared object file: No such file or directory
You may need to install fontconfig on the machine/container or use the NoDependencies version of the Linux binaries.
I think the lookup versions are based on the fact that unit uses a lib prefix and windows does not. So when a library would load a MyLibrary dependency, windows had basically 1 version: MyLibrary.dll so it can try that. But to support a no-change-required run on Unix, the runtime checks with libMyLibrary and some other variants with .so or .so.1 extensions.
Hi, I kind of figured it out, but NoDependencies did not helped, I have to include another package (HarfBuzzSharp.NativeAssets.Linux) In order to make QuestSharp working :-) and also fonts. So for skiasharp may be NoDependencies could work, for QuestPDF it wos not enough. Anyway thank you a lot for trying to help. A.
I also keep getting this. nothing works
Upvote. Hey developers, its just does not work at all and it's been 1.5 years! Please fix this stupid bug.
Hello. Thanks for your effort.
My question is, why is SkiaSharp trying to load
liblibSkiaSharp
and is not satisfied with justlibSkiaSharp.so
?I'm trying to run an Avalonia app on NixOS via
And from the report I see:
Looks like it found
libSkiaSharp.so
file (which I put there "manually")But then I see
and it tries a lot of other paths, naturally, without success. What is
liblibSkiaSharp.so
, and what's the difference betweenlibSkiaSharp.so
andliblibSkiaSharp.so
?