- Index
- » Usage and Applications
- » OpenModelica Usage and Applications
- » Libraries not included in FMU
Libraries not included in FMU
Libraries not included in FMU
Hi,
I hope I haven't missed a thread discussing the issue I am encountering.
I have a Modelica model which uses an external C function defined as
Code:
external "C" modelicaToSimulator(moduleName,
functionName)
annotation (Library={"SimulatorToFMUPython35"},
LibraryDirectory={"modelica://SimulatorToFMU.Resources/Library"},
IncludeDirectory="modelica://SimulatorToFMU.Resources/C-Sources",
Include="#include \"pythonWrapper.c\"");
The .dll SimulatorToFMUPython35.dll is in the Resources/Library/win32 of the package SimulatorToFMU which contains the model.
When I exported the model as an FMU with the 32 bit of OpenModelica v1.11.0 on Windows, it did not include the dll in the FMU.
Consequently the FMU cannot be used in any tool.
Do you know why OpenModelica fail to include the dll in the FMU?
BTW: I did the same export using Dymola and the .dll was correctly included in the FMU.
Thanks for any help.
Thierry
Re: Libraries not included in FMU
Yeah, this is a feature we don't support yet.
We should collect all library dependencies and add them to the fmu.
- adrpo
- 885 Posts
Re: Libraries not included in FMU
As a workaround, you could manually add it to the fmu binaries/platform using 7zip or some other zip software for now.
- adrpo
- 885 Posts
- Index
- » Usage and Applications
- » OpenModelica Usage and Applications
- » Libraries not included in FMU