fusesource / leveldbjni

A Java Native Interface to LevelDB
BSD 3-Clause "New" or "Revised" License
535 stars 146 forks source link

arm32 / armv7l binary releases? #111

Open itdaniher opened 3 years ago

itdaniher commented 3 years ago

Recently found a need for using this software on an older Raspberry Pi.

I was able to compile the bindings, including patching leveldb, but it would be convenient to not have to maintain this process myself.

Here's the dockerfile and testcase I used, in case others run into this issue. Should work with trivial modifications for aarch64, as well. You'll need qemu-user setup on the host to run this on x86. https://gist.github.com/itdaniher/8a1af03ba85b5f6a6eaeb7d0816579c6

ajsutton commented 2 years ago

This was very helpful thanks for sharing. I used this as a starting point for getting an automated build setup for the native component: https://github.com/ConsenSys/leveldbjni-native I've found that compiling on aarch64 didn't work with the old version of leveldb required (no AtomicPointer support I don't think).

I haven't tried arm32 support and to build in CircleCI it would have to cross-compile but I'd be happy to accept PRs to add it if that would help give it a more permanent home for you. I'm also hoping to get it updated to the latest leveldb at some point. We're using this with an ongoing project so keen to get leveldbjni back on a better supported footing.