Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#3377 closed enhancement (fixed)

FMI 1.0 export - dependent libraries (.so, .dylib) Linux, OS X

Reported by: joohnycz <joohnycz@…> 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 Adeel Asghar, 9 years ago

Cc: Martin Sjölund added

Is it true Martin?

comment:2 by Martin Sjölund, 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 joohnycz <joohnycz@…>, 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 Martin Sjölund, 9 years ago

Milestone: Future1.9.4
Resolution: fixed
Status: newclosed

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).

comment:5 by Martin Sjölund, 9 years ago

Milestone: 1.9.41.9.4-1.9.x

Milestone renamed

comment:6 by Martin Sjölund, 9 years ago

Milestone: 1.9.4-1.9.x1.9.4

Milestone renamed

Note: See TracTickets for help on using tickets.