Closed Maplesoft-fmigroup closed 8 months ago
Unfortunately I don't have access to an Apple Silicon Mac. Can you suggest a change that works for you?
These are the changes I made to get around the problem: in __init__.py:
import platform
if platform.machine() == 'arm64':
architecture = 'aarch64'
and on line 100:
if head in {'binaries/darwin64', 'binaries/x86_64-darwin', 'binaries/aarch64-darwin'} and tail.endswith('.dylib'):
These allowed me to simulate FMI3.0 FMU with ARM binaries.
Additionally, I made some changes in util.py line 867:
if target_platform in ['darwin64', 'x86_64-darwin', 'aarch64-darwin']:
In version 0.3.19 of fmpy, we get the following error when trying to simulate FMI3.0 FMU with binaries/aarch64-darwin:
the issue is probably on line 100 of __init__.py:
100 if head in {'binaries/darwin64', 'binaries/x86_64-darwin'} and tail.endswith('.dylib'):