#3377 closed enhancement (fixed)
FMI 1.0 export - dependent libraries (.so, .dylib) Linux, OS X
Reported by: | Owned by: | Adeel Asghar | |
---|---|---|---|
Priority: | high | Milestone: | 1.9.4 |
Component: | FMI | Version: | trunk |
Keywords: | Cc: | Martin Sjölund |
Description
I'd like to ask, if it would be possible to attach dependent libraries into FMU for Linux and OS X (like it is for Windows).
When I try to load generated dynamic library (.so, .dylib), I get errors that some dynamic libraries were not found.
Thanks
Change History (6)
comment:1 by , 9 years ago
Cc: | added |
---|
comment:2 by , 9 years ago
It is true they are not included in the FMU. But in my opinion they shouldn't be as they are part of the OS and OMC. The FMU spec only requires run-time libraries to be included if a source FMU is used.
comment:3 by , 9 years ago
Sorry for my late reply.
So it is not possible to simulate FMU exported from OpenModelica on computer without installed OpenModelica (OMC). I've tested it, dlopen on .so not working, missing 'libSimulationRuntime.so' and maybe few others.
I don't think that's a good approach, but it's only my opinion. I would consider packing needed libraries from OMC into FMU to make it more independent and consistent across all platforms.
comment:4 by , 9 years ago
Milestone: | Future → 1.9.4 |
---|---|
Resolution: | → fixed |
Status: | new → closed |
This was fixed by including support for statically compiled FMUs and cross-compilation in OM 1.9.4 (but static FMUs is not the default option).
Is it true Martin?