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

How to solve "'ModelicaUtilities.h' file not found"?

How to solve "'ModelicaUtilities.h' file not found"?

Error like following:

clang -Os -fPIC -mfpmath=sse -fno-dollars-in-identifiers -Wno-parentheses-equality  -I'/usr/bin/../include/omc/c/fmi' -DOMC_FMI_RUNTIME=1 -DCMINPACK_NO_DLL=1 \"-I/root/.openmodelica/libraries/Buildings 7/Resources/C-Sources\"  -c -o AHU_interface_3_11mix.o AHU_interface_3_11mix.c
In file included from AHU_interface_3_functions.c:7:
In file included from ./AHU_interface_3_includes.h:4:
In file included from /root/.openmodelica/libraries/Buildings 7/Resources/C-Sources/getTimeSpan.c:12:
/root/.openmodelica/libraries/Buildings 7/Resources/C-Sources/getTimeSpan.h:11:10: fatal error: 'ModelicaUtilities.h' file not found
#include <ModelicaUtilities.h>
         ^~~~~~~~~~~~~~~~~~~~~
2 warnings and 1 error generated.
<builtin>: recipe for target 'AHU_interface_3_functions.o' failed
make: *** [AHU_interface_3_functions.o] Error 1
make: *** Waiting for unfinished jobs....

BTW:
OMC version: OpenModelica 1.19.0~dev-597-g11b99d9
Modelica: 3.2.3
Buildings: 7.0.0

Re: How to solve "'ModelicaUtilities.h' file not found"?

Youth wrote:


Error like following:

clang -Os -fPIC -mfpmath=sse -fno-dollars-in-identifiers -Wno-parentheses-equality  -I'/usr/bin/../include/omc/c/fmi' -DOMC_FMI_RUNTIME=1 -DCMINPACK_NO_DLL=1 \"-I/root/.openmodelica/libraries/Buildings 7/Resources/C-Sources\"  -c -o AHU_interface_3_11mix.o AHU_interface_3_11mix.c
In file included from AHU_interface_3_functions.c:7:
In file included from ./AHU_interface_3_includes.h:4:
In file included from /root/.openmodelica/libraries/Buildings 7/Resources/C-Sources/getTimeSpan.c:12:
/root/.openmodelica/libraries/Buildings 7/Resources/C-Sources/getTimeSpan.h:11:10: fatal error: 'ModelicaUtilities.h' file not found
#include <ModelicaUtilities.h>
         ^~~~~~~~~~~~~~~~~~~~~
2 warnings and 1 error generated.
<builtin>: recipe for target 'AHU_interface_3_functions.o' failed
make: *** [AHU_interface_3_functions.o] Error 1
make: *** Waiting for unfinished jobs....

BTW:
OMC version: OpenModelica 1.19.0~dev-597-g11b99d9
Modelica: 3.2.3
Buildings: 7.0.0

anyone help current/sad
Thanks in advance

Re: How to solve "'ModelicaUtilities.h' file not found"?

See: https://github.com/lbl-srg/modelica-buildings/pull/2627
What OpenModelica version are you using?

Re: How to solve "'ModelicaUtilities.h' file not found"?

Are you trying to generate an FMU?

Re: How to solve "'ModelicaUtilities.h' file not found"?

adrpo wrote:


Are you trying to generate an FMU?

Thanks for your kindly reply adrpo!
The OM version is OpenModelica 1.19.0~dev-597-g11b99d9
and I did try to generate a FMU by translateModelFMU()

Re: How to solve "'ModelicaUtilities.h' file not found"?

What model from the Buildings library?

Re: How to solve "'ModelicaUtilities.h' file not found"?

I think this is a bug so I opened a bug report about it:
https://github.com/OpenModelica/OpenMod … ssues/8640

You could you try this:

Code:


sudo cp /usr/include/omc/c/ModelicaUtilities.h /usr/include/omc/c/fmi/

and then try to build the FMU again.

Re: How to solve "'ModelicaUtilities.h' file not found"?


It should be fixed now with https://github.com/OpenModelica/OpenMod … sues/8640.

@Youth Can you please check and verify?

Edited by: mahge - Mar-10-22 18:57:01
There are 0 guests and 0 other users also viewing this topic
You are here: