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

FMU compilation from source for MacOS silicon platforms (functional enhancement or documentation) #628

Open
c0def0x01 opened this issue Nov 29, 2023 · 1 comment

Comments

@c0def0x01
Copy link

I hope I am not duplicating an issue or question, however my researches did not find a lot regarding the compilation of FMUs (that contain source code) on macOS for macOS Silicon.

If my question seems ignorant, then I would appreciate any pointer towards a tutorial or concrete example procedure on how to achieve this compilation. The fmpy command line also offers a compile command list that seems to support this principally (unless I am wrongly interpreting it), however can't get it working.

Related to issue #623 I also would like to then simulate an FMU in my python-environment on my Mac (silicon, M1, M2, ...) and it seems that there also would be some enhancements needed.

Which compiler flags would I need to set for clang concretely to achieve the compilation of the sources/ and to create the binaries/darwin64 with all required files to make it run also on Mac silicon.... maybe the cmake already supports all that and I am simply missing the description or guidelines to follow through.

@jbernalr
Copy link

im using fmpy on apple silicon m1. I can compile and simulate source code fmus with fmpy 0.3.19. if your fmu has the sources, then run: fmpy compile myfmu.fmu
that will generate a darwin64 directory and its correspondent .dylib file
then simulate with: fmpy simulate myfmu.fmu

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

2 participants