Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unsupported OS/arch, cannot find /linux/armv8l/libzstd-jni-1.5.2-3.so or load zstd-jni-1.5.2-3 from system libraries (arm64-v8l) #232

Open
kwind opened this issue Sep 22, 2022 · 3 comments

Comments

@kwind
Copy link

kwind commented Sep 22, 2022

hi luben, I try to use zstd-jni (1.5.2-3) lib in my android project in Android studio IDE, so I import this lib with gradle like:
dependencies {
.....
implementation "com.github.luben:zstd-jni:1.5.2-3@aar"
testImplementation "com.github.luben:zstd-jni:1.5.2-3"
.....
}

run the android test in my phone, the following error message:

09-22 15:58:35.062 28334 29896 W System.err: Caused by: java.lang.UnsatisfiedLinkError: BundleClassLoader[/data/user/0/com.eg.android.AlipayGphone/app_plugins/android-sniper-20220922-153246.jar] couldn't find "libzstd-jni-1.5.2-3.so"
09-22 15:58:35.062 28334 29896 W System.err: Unsupported OS/arch, cannot find /linux/armv8l/libzstd-jni-1.5.2-3.so or load zstd-jni-1.5.2-3 from system libraries. Please try building from source the jar or providing libzstd-jni-1.5.2-3 in your system.
09-22 15:58:35.062 28334 29896 W System.err: at java.lang.Runtime.loadLibrary0(Runtime.java:1011)
09-22 15:58:35.062 28334 29896 W System.err: at java.lang.System.loadLibrary(System.java:1657)
09-22 15:58:35.062 28334 29896 W System.err: at com.github.luben.zstd.util.Native.load(Native.java:87)
09-22 15:58:35.063 28334 29896 W System.err: at com.github.luben.zstd.util.Native.load(Native.java:55)
09-22 15:58:35.063 28334 29896 W System.err: at com.github.luben.zstd.ZstdInputStreamNoFinalizer.(ZstdInputStreamNoFinalizer.java:23)
09-22 15:58:35.063 28334 29896 W System.err: ... 17 more

@luben
Copy link
Owner

luben commented Sep 23, 2022

This looks something new, in the aar we have a build for arm64-v8a. Do you know what is arm64-v8l? When it was introduced? Is it compatible with v8a?

@VladRassokhin
Copy link

VladRassokhin commented Oct 20, 2022

armv8l seems to be Cortext-A32: ARMv8.0-A, 32-bit only.

UPD armv8b is also 32 bit, big-endian, though I've never seen such devices

@luben
Copy link
Owner

luben commented Oct 21, 2022

Hmm, I guess I have to update my Android studio, or mess with the config to enable that target

@luben luben changed the title Unsupported OS/arch, cannot find /linux/armv8l/libzstd-jni-1.5.2-3.so or load zstd-jni-1.5.2-3 from system libraries Unsupported OS/arch, cannot find /linux/armv8l/libzstd-jni-1.5.2-3.so or load zstd-jni-1.5.2-3 from system libraries (arm64-v8l) Jun 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants