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  
    1313LAPACK_LIBS =  /usr/lib/liblapack.so /usr/lib/libblas.so
    1414UMFPACK_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
    1515
    16 SUITESPARSE_INCLUDE = /usr/include/suitesparse
     16SUITESPARSE_INCLUDE = /home/build/tmp/build/openmodelica-25132/build/include/omc/c/suitesparse/Include
    1717
    1818INTEL_TBB_LIBS =
    1919INTEL_TBB_INCLUDE =

The UMFPACK_LIBS paths above appear wrong as well, but this did not harm in my tests.

Change History (0)

Note: See TracTickets for help on using tickets.