vcell icon indicating copy to clipboard operation
vcell copied to clipboard

M1 Mac Build Failure - update build instructions

Open ahalev opened this issue 3 years ago • 3 comments

I'm attempting to set up the command line interface to VCell on an M1 Mac (arch64) using the instructions here and am running into issues installing dependencies; I am having test errors in running the dependency install.

Specifically, I am unable to load the libraries vcell/vcell-core/../nativelibs/mac64/libcombinej.jnilib and vcell/vcell-core/../nativelibs/mac64/libjhdf5.jnilib.

Any suggestions would be appreciated. Full error logs are below. Thank you!

[ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.004 s <<< FAILURE! - in cbit.vcell.resource.NativeLibTest
[ERROR] loadEm(cbit.vcell.resource.NativeLibTest)  Time elapsed: 0.004 s  <<< ERROR!
java.lang.UnsatisfiedLinkError: Can't load library: /Users/ahalev/Dropbox/Avishai/gradSchool/year5/vcell/vcell-core/../nativelibs/mac64/libcombinej.jnilib
        at cbit.vcell.resource.NativeLibTest.loadEm(NativeLibTest.java:16)
[ERROR] Tests run: 2, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 0 s <<< FAILURE! - in cbit.vcell.simdata.DataSetControllerImplTest
[ERROR] testGetDataIdentifiers(cbit.vcell.simdata.DataSetControllerImplTest)  Time elapsed: 0 s  <<< ERROR!
java.lang.UnsatisfiedLinkError: Can't load library: /Users/ahalev/Dropbox/Avishai/gradSchool/year5/vcell/vcell-core/../nativelibs/mac64/libjhdf5.jnilib
        at cbit.vcell.simdata.DataSetControllerImplTest.setUp(DataSetControllerImplTest.java:35)

[ERROR] testDoDataOperation(cbit.vcell.simdata.DataSetControllerImplTest)  Time elapsed: 0 s  <<< ERROR!
java.lang.UnsatisfiedLinkError: Can't load library: /Users/ahalev/Dropbox/Avishai/gradSchool/year5/vcell/vcell-core/../nativelibs/mac64/libjhdf5.jnilib
        at cbit.vcell.simdata.DataSetControllerImplTest.setUp(DataSetControllerImplTest.java:35)

ahalev avatar Sep 27 '22 23:09 ahalev

must be verified on M1/M2 box.

jcschaff avatar Nov 06 '23 19:11 jcschaff

build verified on Macos Ventura 13.4 using updated instructions in README.md referenced in README_BioSim.md

jcschaff avatar Nov 11 '23 18:11 jcschaff

The issues described here are actually still present; CLI still uses the old HDF library, which does NOT support ARM arch. With JHDF now updated to use attributes, we should be able to actually fix this issue.

CodeByDrescher avatar Jul 08 '24 17:07 CodeByDrescher

Just confirmed, following the instructions, there should not be any more issues using CLI on Arm chips.

CodeByDrescher avatar Nov 12 '24 16:11 CodeByDrescher