Skip to content

Struggling with using blosc compression #31

@jonblower

Description

@jonblower

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:

openjdk version "17.0.1" 2021-10-19 LTS
OpenJDK Runtime Environment Zulu17.30+15-CA (build 17.0.1+12-LTS)
OpenJDK 64-Bit Server VM Zulu17.30+15-CA (build 17.0.1+12-LTS, mixed mode, sharing)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions