instantiations / es_compression

Compression framework for Dart providing FFI implementations for Brotli, Lz4, Zstd (Zstandard) with ready-to-use prebuilt binaries for Win/Linux/Mac.
https://www.instantiations.com
BSD 3-Clause "New" or "Revised" License
41 stars 8 forks source link

flutter error #20

Closed dqilu closed 3 years ago

dqilu commented 3 years ago

Invalid argument(s): Failed to load dynamic library (dlopen failed: library "eslz4-android64.so" not found) NoSuchMethodError: The getter 'lz4VersionNumber' was called on null.

sethloco commented 3 years ago

Hello,

Thanks for the report. I just want to make sure I understand the situation. This dart package comes with pre-compiled binaries for windows/linux/mac.

Android shared libraries currently must be provided by the user. This build tool can be used to help you do that.

Is your situation that you didn't build a shared library? Or is it that you have built a shared lz4 library, but you are not able to have the dart package successfully locate it?

dqilu commented 3 years ago

I can't build a shared lz4 library. Can you help me build an Android shared library? thank you!

sethloco commented 3 years ago

Hello, After the (US) holidays, I will resurrect the Android build I did and create some instructions. I believe it was Windows/MinGW/Ninja based. I’ll try and find a good place to put a sample dll to try, as well

isong0623 commented 3 years ago

Hey bro, see https://github.com/isong0623/android_lib_es_compression0_9_9 @dqilu

sethloco commented 3 years ago

@isong0623 These are really great instructions...thank you for putting this together! I'm mostly a desktop/server dev, and will soon be getting heavier into the mobile/web side of things...so this was really helpful to look at. If you are interested and think what you put together could be included in es_compression examples...let me know.

sethloco commented 3 years ago

Hi @dqilu

@isong0623 provided an android generator for the libs which has been merged into the examples dir of this project. You can do a pull of the latest and follow the README here: https://github.com/instantiations/es_compression/blob/master/example/android_jniLibs_generate/README.md