Opened 10 years ago
Last modified 10 years ago
#3232 closed defect
Wrong include path when using +simCodeTarget=Cpp — at Initial Version
Reported by: | Rüdiger Franke | Owned by: | Adeel Asghar |
---|---|---|---|
Priority: | high | Milestone: | 1.9.3 |
Component: | Build Environment | Version: | trunk |
Keywords: | Cc: | Marcus Walther, Volker Waurich, Niklas Worschech |
Description
Attempting to compile a model with +simCodeTarget=Cpp
, the compiler fails as it does not find umfpack.h
. This is because an include path in /usr/include/omc/cpp/ModelicaConfig.inc
is wrong. It works with the following patch:
-
ModelicaConfig.inc
old new 13 13 LAPACK_LIBS = /usr/lib/liblapack.so /usr/lib/libblas.so 14 14 UMFPACK_LIBS = /home/build/tmp/build/openmodelica-25132/build/lib/omc/libumfpack.a /usr/lib/libblas.so /home/build/tmp/build/openmodelica-25132/build/lib/omc/libamd.a 15 15 16 SUITESPARSE_INCLUDE = / usr/include/suitesparse16 SUITESPARSE_INCLUDE = /home/build/tmp/build/openmodelica-25132/build/include/omc/c/suitesparse/Include 17 17 18 18 INTEL_TBB_LIBS = 19 19 INTEL_TBB_INCLUDE =
The UMFPACK_LIBS
paths above appear wrong as well, but this did not harm in my tests.
Note:
See TracTickets
for help on using tickets.