Skip to content

[QUESTION] Why is SkiaSharp trying to load liblibSkiaSharp library? #2385

@WhiteBlackGoose

Description

@WhiteBlackGoose

Hello. Thanks for your effort.

My question is, why is SkiaSharp trying to load liblibSkiaSharp and is not satisfied with just libSkiaSharp.so?

I'm trying to run an Avalonia app on NixOS via

LD_DEBUG=libs dotnet run

And from the report I see:

    298115:	find library=libSkiaSharp.so [0]; searching
    298115:	 search path=a lot of paths		(LD_LIBRARY_PATH)
    298115:	  trying file=/nix/store/wkmc51s1nyyic7ym9c44k57wk8aqlpp9-icu4c-72.1/lib/libSkiaSharp.so
    298115:	  trying file=/nix/store/ljd6gmclp24spkhcmw7lqwch4bpbq9zp-skia-sharp/bin/libSkiaSharp.so
    298115:	

Looks like it found libSkiaSharp.so file (which I put there "manually")

But then I see

    298115:	find library=liblibSkiaSharp.so [0]; searching
    298115:	 search path=lots of paths here		(LD_LIBRARY_PATH)
    298115:	  trying file=/nix/store/wkmc51s1nyyic7ym9c44k57wk8aqlpp9-icu4c-72.1/lib/liblibSkiaSharp.so
    298115:	  trying file=/nix/store/ljd6gmclp24spkhcmw7lqwch4bpbq9zp-skia-sharp/bin/liblibSkiaSharp.so
    298115:	  trying file=/nix/store/3zk3527zglm18ykrvgjdhgz3a4zrfapr-libX11-1.8.1/lib/liblibSkiaSharp.so
    298115:	  trying file=/nix/store/h99mc81gcsc6dsa4mfxgwjj812mljnkb-libICE-1.0.10/lib/liblibSkiaSharp.so
    298115:	  trying file=/nix/store/dqsgifv5pjfja5qzh9rjih1vqmfj86n9-libSM-1.2.3/lib/liblibSkiaSharp.so
    298115:	  trying file=/nix/store/sgw0sxwx46hqwlcm3d834f10p1qx7c5y-libX11-1.8.1-dev/lib/liblibSkiaSharp.so

and it tries a lot of other paths, naturally, without success. What is liblibSkiaSharp.so, and what's the difference between libSkiaSharp.so and liblibSkiaSharp.so?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    New

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions