Skip to content
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

No suitable HDF5 native library for Mac M1 chip #135

Open
mzouink opened this issue May 6, 2022 · 6 comments
Open

No suitable HDF5 native library for Mac M1 chip #135

mzouink opened this issue May 6, 2022 · 6 comments

Comments

@mzouink
Copy link

mzouink commented May 6, 2022

Bigdataviewer is not working in my Mac M1 chip, jhdf5 can't find the native library for my chip.

Screen Shot 2022-05-06 at 11 08 58 AM

@mzouink
Copy link
Author

mzouink commented May 6, 2022

i spoke with @mkitti
We think it is because cisd.jhdf5 19.04.0 doesn't support M1 chip yet
Screen Shot 2022-05-06 at 11 05 46 AM

@tpietzsch
Copy link
Member

Yes, that's the problem.
The latest HDF5 version https://portal.hdfgroup.org/display/support/HDF5%201.12.2#releasenotes has support for M1.
It's very recent. I would wait a bit whether there will be a new jhdf5 release that uses it, before digging into how to package it ourselves.

@mkitti
Copy link
Collaborator

mkitti commented May 6, 2022

We will have to build JHDF5 ourselves, and then figure out how to distribute it. I have the build instructions from Bern Rinn. I'm working on the problem from the plugin perspective.

https://sissource.ethz.ch/sispub/jhdf5/-/tree/master/libs/native/jhdf5
https://unlimited.ethz.ch/display/JHDF/JHDF5+FAQ#JHDF5FAQ-Whataretheoptionstoprovidethenativelibraries?

I have M1 hardware on order, but maybe I'll build it on Marwan's machine in the meantime.

cc: @ctrueden, @StephanPreibisch

@mkitti
Copy link
Collaborator

mkitti commented May 9, 2022

@mzouink and I worked on this, and we now have a build for Mac OS X M1 (aarch64) at
https://github.com/JaneliaSciComp/jhdf5/releases/tag/jhdf5-19.04.0_aarch64

@ctrueden I'm not sure if there is a clean way to update Maven with this JAR. Perhaps I should combine this with my efforts to deliver alternative native binaries?

@ctrueden
Copy link
Member

ctrueden commented May 9, 2022

We could either:

  1. Deploy a new fat jhdf5-19.04.0.1 all architectures in one; or
  2. Split up the architectures to make one classifier per arch, and then add the aarch64 one to that; or
  3. Just deploy the aarch64 arch as a separate add-on JAR to the main jhdf5-19.04.0.

I don't have a strong opinion. I think (2) is most correct, but would be more work, whereas (3) would be simplest but require anyone with an M1 mac to explicitly depend on the aarch64 architecture JAR. (1) would keep things simple for users but result in an increasingly bloated JHDF5 JAR file.

@mkitti
Copy link
Collaborator

mkitti commented May 10, 2022

Perhaps we should move the discussion over to JaneliaSciComp/jhdf5#3 since there is not much to do here from the perspective of bigdataviewer-core.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants