modelica / Reference-FMUs

Functional Mock-up Units for development, testing and debugging
Other
129 stars 60 forks source link

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

Open chrbertsch opened 4 years ago

chrbertsch commented 4 years ago

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)

t-sommer commented 4 years ago

What aspect of the importer would this FMU test?

chrbertsch commented 4 years ago

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)

t-sommer commented 3 years ago

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

christian-wolf-eks commented 1 month ago

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.