I'm working with upstream to patch any errors that we discover. If you happen to find any, please post a trace.
Currently, we're seeing a Dalvik cache directory does not exist
error and that's going to be patched soon.
Git Clone URL: | https://aur.archlinux.org/android_translation_layer-git.git (read-only, click to copy) |
---|---|
Package Base: | android_translation_layer-git |
Description: | A translation layer for running Android apps on a Linux system |
Upstream URL: | https://gitlab.com/android_translation_layer/android_translation_layer |
Licenses: | GPL-3.0-or-later |
Conflicts: | android_translation_layer |
Provides: | android_translation_layer |
Submitter: | txtsd |
Maintainer: | txtsd |
Last Packager: | txtsd |
Votes: | 3 |
Popularity: | 2.14 |
First Submitted: | 2024-10-29 01:14 (UTC) |
Last Updated: | 2024-11-08 08:49 (UTC) |
I'm working with upstream to patch any errors that we discover. If you happen to find any, please post a trace.
Currently, we're seeing a Dalvik cache directory does not exist
error and that's going to be patched soon.
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.
@depau Thank you!
The problem though lies in skia-sharp. Upstream relies on a custom fork, which I will be pushing to the AUR in a few hours.
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
Thanks. I'll update asap
Latest version fixes the library path problem.
I fixed missing libandroidfw.so error temporarily by manually setting library path but I am getting another error. it seems to be related to libskiasharp.
❯ LD_LIBRARY_PATH=/usr/lib/art/ android-translation-layer
android-translation-layer: symbol lookup error: /usr/lib/java/dex/android_translation_layer/natives/libtranslation_layer_main.so: undefined symbol: sk_canvas_new_from_raster
I'll keep trying to make it work and inform if succeeded.
Yes, that's the current state of this package.
Patches are welcome! Hit me up on IRC/Matrix or email me.
Installing and running gives the following error
❯ android-translation-layer
android-translation-layer: error while loading shared libraries: libandroidfw.so: cannot open shared object file: No such file or directory
Pinned Comments
txtsd commented on 2024-10-30 12:59 (UTC)
I'm working with upstream to patch any errors that we discover. If you happen to find any, please post a trace.
Currently, we're seeing a
Dalvik cache directory does not exist
error and that's going to be patched soon.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.