DEV Community

Discussion on: Avalonia UI on Ubuntu: Getting Started

Collapse
 
thelordchosen profile image
Thelordchosen

On xubuntu 20.1

i am getting from dotnet run:::
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

what i am doing wrong ?

Collapse
 
carlos487 profile image
Carlos Fabara

Are you able to run any other dotnet app console/web? It might be due to XFCE too, maybe a library is missing.

Collapse
 
thelordchosen profile image
Thelordchosen

yes after so much google i narrowed down my problem to this

github.com/mono/SkiaSharp/issues/1050
but none of the solutions helped me

Thread Thread
 
thelordchosen profile image
Thelordchosen

for anyone in future who run into the same problem this stackoverflow answer may help

stackoverflow.com/questions/685828...

Collapse
 
muhammadsulaiman001 profile image
Muhammad Sulaiman

This solves the issue for me

sudo apt install libice6
sudo apt install libsm6
sudo apt install libfontconfig1
Enter fullscreen mode Exit fullscreen mode

Source