Skip to content

macOS M1 aarch64 support #5

@mkitti

Description

@mkitti

To summarize findings from saalfeldlab/n5-utils#25

To support the macOS M1, we need:

  1. JNA version 5.11.0
  2. Set jna.library.path to the location of the Blosc library.

For example, the following diff will allow mvn to succeed after brew install c-blosc.

diff --git a/pom.xml b/pom.xml
index b30f8f7..c5e54b6 100644
--- a/pom.xml
+++ b/pom.xml
@@ -89,6 +89,8 @@
                <releaseProfiles>deploy-to-scijava</releaseProfiles>

                <!-- TODO remove when pom-scijava-base is updated -->
+               <jna.version>5.11.0</jna.version>
+               <scijava.surefire.args>-Djna.library.path="/opt/homebrew/Cellar/c-blosc/1.21.1/lib"</scijava.surefire.args>
                <scijava.jvm.version>8</scijava.jvm.version>
                <scijava.jvm.build.version>[1.8.0-101,)</scijava.jvm.build.version>

It that does not work, check brew list -v c-blosc to confirm the directory holding libblosc.dylib.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions