-
Notifications
You must be signed in to change notification settings - Fork 19
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
Struggling with using blosc compression #31
Comments
@jonblower we encountered the same issue as yours in the reader of the Bio-Formats library which consumes A quick investigation seems to reveal this is related to the old version of the |
@sbesson Thanks very much! Including version |
Great! |
Possibly interesting for you... I plan to extend the library in such a way that it is possible for users to add any compressors at runtime, using Java SPI (Service Provider Interface), and thus also to be able to decide for themselves whether these are included via JNI or in another way. |
@SabineEmbacher would you considering to release a new version of This incidentally raises the question of the Java interface to the Blosc library since |
Of corse, yes!
When I have to use a C library in Java, I always have some kind of stomach ache. Or is it really that hard to implement it in pure Java that we have to call it "Mission Impossible"? I wish you all a great day! |
A pure-Java implementation of blosc would be a great contribution to the community! But it looks like quite large effort. If I'm understanding the docs correctly, blosc supports a large number of underlying codecs. So I guess one would need to not only implement the blocking algorithm, but also the codecs. This kind of low-level library is not my forte I'm afraid! |
This probably isn't a JZarr problem per se, but I'm struggling to get my Java program to recognise my native c-blosc library.
I'm on an M1 Mac (which might be significant), using JDK17 with NetBeans, using maven as a build system. The c-blosc library was installed with Homebrew.
I've written a simple program and am trying to run it using the command-line switch
-Djna.library.path=/opt/homebrew/Cellar/c-blosc/1.21.1/
. I only need blosc at runtime, not compile time.Whatever I try, I end up with:
Exception in thread "main" java.lang.UnsatisfiedLinkError: /private/var/folders/s2/_3zsgdqd6pj0y20x4chv8g640000gn/T/jna-105417/jna11531817638949407677.tmp: dlopen(/private/var/folders/s2/_3zsgdqd6pj0y20x4chv8g640000gn/T/jna-105417/jna11531817638949407677.tmp, 1): no suitable image found.
Are there any more details you can provide about how to set this up in a maven-based system?
I'm wondering whether there may be an issue with the M1 processor (which is ARM based). The output of
java -version
is:The text was updated successfully, but these errors were encountered: