A very crude patch to allow the program to start with the missing symbol by just replacing its use with an abort()
:
From 93f63d168bd2f50ea4189f2001c2db47db78d59f Mon Sep 17 00:00:00 2001
From: Davide Depau <davide@depau.eu>
Date: Tue, 29 Oct 2024 21:02:25 +0100
Subject: [PATCH] HACK: fix sk_canvas_new_from_raster not available in
skia-sharp
---
src/api-impl-jni/android_graphics_Canvas.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/api-impl-jni/android_graphics_Canvas.c b/src/api-impl-jni/android_graphics_Canvas.c
index 5d7ae14..60c5228 100644
--- a/src/api-impl-jni/android_graphics_Canvas.c
+++ b/src/api-impl-jni/android_graphics_Canvas.c
@@ -28,7 +28,8 @@ JNIEXPORT jlong JNICALL Java_android_graphics_Canvas_native_1canvas_1from_1bitma
// + /* last row: */ info.width * ((gdk_pixbuf_get_n_channels(pixbuf) * gdk_pixbuf_get_bits_per_sample(pixbuf) + 7) / 8);
/* --------------------------------------- */
- return _INTPTR(sk_canvas_new_from_raster(&info, pixbuf_pixels, /*pixbuf_size*/rowstride, NULL));
+ abort();
+// return _INTPTR(sk_canvas_new_from_raster(&info, pixbuf_pixels, /*pixbuf_size*/rowstride, NULL));
}
JNIEXPORT void JNICALL Java_android_graphics_Canvas_native_1save(JNIEnv *env, jclass this, jlong skia_canvas, jlong widget)
--
2.47.0
Pinned Comments
txtsd commented on 2024-10-30 11:25 (UTC)
This package works now. Depending on when you last built the dependencies, you might have to rebuild art_standalone-git and skia-sharp-atl-git. Then rebuild this package.