Archived OpenModelica forums. Posting is disabled.

Alternative forums include GitHub discussions or StackOverflow (make sure to read the Stack Overflow rules; you need to have well-formed questions)


Forgot password? | Forgot username? | Register

FMU export fails

FMU export fails

Hi,
I have installed OMEdit V1.12.0 (6' bits) on windows.
My purpose is to generate a DLL of a model to use it in a C# project. For this, I understood that an appropriate way is to export the model as FMU and recover the DLL from it.
However, when I select my model and try "export FMU", I get the following error:

[9] 19:21:46 Traduction Erreur
Error building simulator. Build log: Makefile:34: include/Makefile.objs: No such file or directory
mingw32-make: *** No rule to make target 'include/Makefile.objs'.  Stop.
RESULT: 2 


In the working directory, there is now a subdirectory mymodel.fmutmp that contains a subdirectory "sources" and a xml file (modelDescription.xml), but no "include directory"

in the sources directory, there is a makefile with the following starting at line 30:
RUNTIMEDIR=include
OMC_MINIMAL_RUNTIME=1
OMC_FMI_RUNTIME=1
include $(RUNTIMEDIR)/Makefile.objs
ifneq ($(NEED_RUNTIME),)
RUNTIMEFILES=$(FMI_ME_OBJS:%=$(RUNTIMEDIR)/%.o)
endif

There being no include subdirectory it is normal that the include command line 34 crashes.

What is wrong here ? what sort of setup should I make to ensure that the include directory (and its content) are written in the right location before running this makefile ?

I found the missing Makefile.ops file in the OpenMedica distribution in C:\OpenModelica1.12.0-64bit\include\omc\c and I tried to copy it manually before relaunching the fmu export. Did not work.

Any clue ?



There are 0 guests and 0 other users also viewing this topic