VExcess
VExcess
CC#
Created by VExcess on 9/21/2024 in #help
Install SkiaSharp
Not an issue for me though. All the code I've ever written is open source and free to use
23 replies
CC#
Created by VExcess on 9/21/2024 in #help
Install SkiaSharp
only being able to use the library if your company makes less than $1M per year is unique
23 replies
CC#
Created by VExcess on 9/21/2024 in #help
Install SkiaSharp
wait no, it's GTKsharp?
23 replies
CC#
Created by VExcess on 9/21/2024 in #help
Install SkiaSharp
Actually CairoSharp hasn't been updated in 4 years so it's probaby not worth trying to use
23 replies
CC#
Created by VExcess on 9/21/2024 in #help
Install SkiaSharp
Maybe the issue is SkiaSharp and not dotnet. I'm gonna try using CairoSharp instead
23 replies
CC#
Created by VExcess on 9/21/2024 in #help
Install SkiaSharp
I installed the native dep too, but I can't get it working. I'm giving up on C# and going back to Rust
23 replies
CC#
Created by VExcess on 9/21/2024 in #help
Install SkiaSharp
this is my code
using System;
using SkiaSharp;

public class MyApp {

static public void Main() {
Console.WriteLine("Hello World!");

var imageInfo = new SKImageInfo(
width: 400,
height: 400,
colorType: SKColorType.Rgba8888,
alphaType: SKAlphaType.Premul);

var surface = SKSurface.Create(imageInfo);

var canvas = surface.Canvas;

}
}
using System;
using SkiaSharp;

public class MyApp {

static public void Main() {
Console.WriteLine("Hello World!");

var imageInfo = new SKImageInfo(
width: 400,
height: 400,
colorType: SKColorType.Rgba8888,
alphaType: SKAlphaType.Premul);

var surface = SKSurface.Create(imageInfo);

var canvas = surface.Canvas;

}
}
23 replies
CC#
Created by VExcess on 9/21/2024 in #help
Install SkiaSharp
well it seemed to install SkiaSharp, but now when I run my app it can't locate the library
vexcess@vexcess-IdeaPad-5-Pro-16ACH6:~/Downloads/cstest$ dotnet run
Hello World!
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:
/usr/lib/dotnet/shared/Microsoft.NETCore.App/8.0.8/libSkiaSharp.so: cannot open shared object file: No such file or directory
/home/vexcess/Downloads/cstest/bin/Debug/net8.0/libSkiaSharp.so: cannot open shared object file: No such file or directory
/usr/lib/dotnet/shared/Microsoft.NETCore.App/8.0.8/liblibSkiaSharp.so: cannot open shared object file: No such file or directory
/home/vexcess/Downloads/cstest/bin/Debug/net8.0/liblibSkiaSharp.so: cannot open shared object file: No such file or directory
/usr/lib/dotnet/shared/Microsoft.NETCore.App/8.0.8/libSkiaSharp: cannot open shared object file: No such file or directory
/home/vexcess/Downloads/cstest/bin/Debug/net8.0/libSkiaSharp: cannot open shared object file: No such file or directory
/usr/lib/dotnet/shared/Microsoft.NETCore.App/8.0.8/liblibSkiaSharp: cannot open shared object file: No such file or directory
/home/vexcess/Downloads/cstest/bin/Debug/net8.0/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, SKColorType colorType, SKAlphaType alphaType)
at MyApp.Main() in /home/vexcess/Downloads/cstest/Program.cs:line 9
vexcess@vexcess-IdeaPad-5-Pro-16ACH6:~/Downloads/cstest$ dotnet run
Hello World!
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:
/usr/lib/dotnet/shared/Microsoft.NETCore.App/8.0.8/libSkiaSharp.so: cannot open shared object file: No such file or directory
/home/vexcess/Downloads/cstest/bin/Debug/net8.0/libSkiaSharp.so: cannot open shared object file: No such file or directory
/usr/lib/dotnet/shared/Microsoft.NETCore.App/8.0.8/liblibSkiaSharp.so: cannot open shared object file: No such file or directory
/home/vexcess/Downloads/cstest/bin/Debug/net8.0/liblibSkiaSharp.so: cannot open shared object file: No such file or directory
/usr/lib/dotnet/shared/Microsoft.NETCore.App/8.0.8/libSkiaSharp: cannot open shared object file: No such file or directory
/home/vexcess/Downloads/cstest/bin/Debug/net8.0/libSkiaSharp: cannot open shared object file: No such file or directory
/usr/lib/dotnet/shared/Microsoft.NETCore.App/8.0.8/liblibSkiaSharp: cannot open shared object file: No such file or directory
/home/vexcess/Downloads/cstest/bin/Debug/net8.0/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, SKColorType colorType, SKAlphaType alphaType)
at MyApp.Main() in /home/vexcess/Downloads/cstest/Program.cs:line 9
23 replies
CC#
Created by VExcess on 9/21/2024 in #help
Install SkiaSharp
the readme was last updated 5 months ago ¯\_(ツ)_/¯
23 replies
CC#
Created by VExcess on 9/21/2024 in #help
Install SkiaSharp
23 replies
CC#
Created by VExcess on 9/21/2024 in #help
Install SkiaSharp
I'm on Linux if that has to do with anything
23 replies