Reference-FMUs icon indicating copy to clipboard operation
Reference-FMUs copied to clipboard

Reference FMU with dependency on an additional binary libary in the FMU

Open chrbertsch opened this issue 4 years ago • 4 comments

Create an example for importing FMUs with dependencies on additional binary libraries (e.g., DLLs in Windows) in the corresponding binary folder, see e.g. e.g. https://github.com/modelica/fmi-design/tree/master/Reference_FMUs/src/resources (see https://github.com/modelica/Reference-FMUs/pull/34#issuecomment-636517783)

chrbertsch avatar May 31 '20 19:05 chrbertsch

What aspect of the importer would this FMU test?

t-sommer avatar May 31 '20 19:05 t-sommer

What aspect of the importer would this FMU test?

That it puts all the dlls of the current binary type (e.g. win64) at the same storage location, so that the FMU can figure out, form where to load the additional binary (e.g. DLL)

chrbertsch avatar May 31 '20 20:05 chrbertsch

See also discussion in https://github.com/modelica/fmi-standard/issues/1405.

t-sommer avatar May 03 '21 13:05 t-sommer

This might be related to unifmu as a possible generator for test cases: There, a static loader is used as the binary FMU DLL/SO/DYLIB. This one will then load (at least in the python case) provide a python environment and load all imported/linked python files from the resources folder. AFAIK when using the C# interface, I think (but have not verified) it works very similarly but loads a dynamic library from the resources folder.

This could be used as a test case at least.

christian-wolf-eks avatar May 14 '24 15:05 christian-wolf-eks