Comments (7)
Can you give more information about the error that you get (is it a segfault or do you have an exception with a stack trace)? I'm curious which one of the native libraries it tries to load.
Additionally, how are you initializing the library? In case you use LZ4Factory.fastestInstance()
, could you check if LZ4Factory.fastestJavaInstance()
works?
Thanks!
from lz4-java.
It's a build time/dependancy error rather than runtime/loading of nativelib. Basically Android sdk has detected the bundled native libs (linux/amd64/liblz4-java.so, linux/i386/liblz4-java.so, win32/amd64/liblz4-java) and it halting the built because they are not compatible with Android. Ideally an Android specific version would have only the arm and x86 compatible native libs. Here's some info on the Android NDK that might help - http://developer.android.com/tools/sdk/ndk/index.html#platform-compat
from lz4-java.
Hej,
just as a side note: I was not allowed to have any native libs in the libraries of our project.
My approach was to simply unpack the lz4-1.2.0.jar, remove the "darwin", "linux", and "win32" directories, and pack it again as lz4-no-jni-1.2.0.jar.
So, for me, it would be nice to have a plain Java only version :-)
Best,
Lukas
from lz4-java.
Would you still need any help for this? It's easy to create a new target in build.xml that generates a jar without the JNI libraries. I'll add it if you want it.
from lz4-java.
@odaira having such a target in the official build.xml would be great! Thx already :-)
from lz4-java.
Hey @odaira thanks for the repsonse, lz4 isn't something I've used in the past few years it was only a requirement at a previous job so atm it's not something I'm personally looking for. But I think it would be valuable. All the best.
from lz4-java.
I have added a new target "jar-no-jni" with 8369daf. Please reopen this issue if you need further support for Android.
from lz4-java.
Related Issues (20)
- Can't read LZ4 stream made in C# with data appended HOT 1
- Failed to initialize class on Linux system
- Error to decompress Lz4 that was compressed with lz4-net in C#
- Premature end of data while decompressing HOT 3
- CVE-2021-3520 Whether the vulnerability affects LZ4-Java HOT 2
- why lz aarch64 version is 1.9.1
- How to decopress large LZ4 files? HOT 1
- the value don't equal xxhsum,the value length is 15 HOT 2
- how to build 'arm64/liblz4-java.so' ? HOT 1
- Data larger than 4194304 Bytes is not decompressed correctly HOT 2
- lz4 legacy format support (typically for Linux Kernel compression) HOT 1
- LZ4 java with double buffering
- LZ4 decompression exception Malformed input at
- Exception in thread "main" net.jpountz.lz4.LZ4Exception: Malformed input at 16 HOT 3
- Add riscv support
- Stream ended prematurely when trying to readAllBytes
- Compile with frame pointers?
- Another release? HOT 5
- Enable support for riscv64 HOT 1
- JVM crashes at insertAndFindBestMatch
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lz4-java.