Detailed description |
|
Hi, I'm trying to work with an OpenSim model using MATLAB on the Apple M1 Macbook and have an issue with an incompatible architecture (I assume).
I have copied an error below and the screenshot from my command window. I have successfully added OpenSim to my path (using OpenSim 4.5 version; re-installed to make sure everything is up-to-date; updated MATLAB, as well as OS) and I can import "import org.opensim.modeling.*" with no errors. However, when I try to load or create a model, a Java exception arises. Please let me know if you have encountered the same issue before and if there is a way to fix it. I would appreciate any insight on it!
ERROR
__________
Failed to load one or more dynamic libraries for OpenSim.
java.lang.UnsatisfiedLinkError: /Applications/OpenSim 4.5/OpenSim 4.5.app/Contents/Resources/opensim/sdk/lib/libosimJavaJNI.dylib: dlopen(/Applications/OpenSim 4.5/OpenSim 4.5.app/Contents/Resources/opensim/sdk/lib/libosimJavaJNI.dylib, 0x0001): tried: '/Applications/OpenSim 4.5/OpenSim 4.5.app/Contents/Resources/opensim/sdk/lib/libosimJavaJNI.dylib' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64e' or 'arm64')), '/System/Volumes/Preboot/Cryptexes/OS/Applications/OpenSim 4.5/OpenSim 4.5.app/Contents/Resources/opensim/sdk/lib/libosimJavaJNI.dylib' (no such file), '/Applications/OpenSim 4.5/OpenSim 4.5.app/Contents/Resources/opensim/sdk/lib/libosimJavaJNI.dylib' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64e' or 'arm64'))
__________
Thank you for your time!
Sincerely,
Anna Korol
|
|