Giter Site home page Giter Site logo

Android version about lz4-java HOT 7 CLOSED

lz4 avatar lz4 commented on May 25, 2024
Android version

from lz4-java.

Comments (7)

jpountz avatar jpountz commented on May 25, 2024

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.

scottyab avatar scottyab commented on May 25, 2024

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.

lukasblu avatar lukasblu commented on May 25, 2024

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.

odaira avatar odaira commented on May 25, 2024

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.

lukasblu avatar lukasblu commented on May 25, 2024

@odaira having such a target in the official build.xml would be great! Thx already :-)

from lz4-java.

scottyab avatar scottyab commented on May 25, 2024

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.

odaira avatar odaira commented on May 25, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.