- Index
- » Usage and Applications
- » OpenModelica Usage and Applications
- » How to solve "'ModelicaUtilities.h'...
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
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?
- adrpo
- 885 Posts
Re: How to solve "'ModelicaUtilities.h' file not found"?
Are you trying to generate an FMU?
- adrpo
- 885 Posts
Re: How to solve "'ModelicaUtilities.h' file not found"?
What model from the Buildings library?
- adrpo
- 885 Posts
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.
- adrpo
- 885 Posts
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?
- Index
- » Usage and Applications
- » OpenModelica Usage and Applications
- » How to solve "'ModelicaUtilities.h'...