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
  • Index
  • » Users
  • » NachoMec
  • » Profile

Posts

Posts

Nov-25-19 16:04:38
Category: Developer

Hello, I am also having problems with dependencies exporting fmu from OpenModelica.

I have exported a fairly simple model that uses a 2D lookup table, using OMEdit, with the options fmi 2.0, Model Exchange and Co-Simulation, static; in order to use it in a Cpp project with the fmi-library.

First I tried with the release version 1.13, but I got somme libraries dependencies. I can run the fmu in a computer with OpenModelica installed, but I need to do it in an other one, so I should fix those dependencies.

I read they migth have been improved in the nigthly build 1.16, and even it is true that I didn't get the dependencies, I still get undefined symbols when I try to load the .so.

Using 'ldd -r mdl.so' to check the dependencies I got the following message:

    linux-vdso.so.1 (0x00002aaaaaaae000)
    libc.so.6 => /lib64/libc.so.6 (0x00002aaaaad5c000)
    /lib64/ld-linux-x86-64.so.2 (0x0000555555554000)
undefined symbol: ceil    (./Pwp_fmu.so)
undefined symbol: pthread_getspecific    (./Pwp_fmu.so)
undefined symbol: ModelicaStandardTables_CombiTable2D_close    (./Pwp_fmu.so)
undefined symbol: pthread_key_create    (./Pwp_fmu.so)
undefined symbol: ModelicaStandardTables_CombiTable2D_getValue    (./Pwp_fmu.so)
undefined symbol: ModelicaStandardTables_CombiTable2D_maximumAbscissa    (./Pwp_fmu.so)
undefined symbol: ModelicaStandardTables_CombiTable2D_minimumAbscissa    (./Pwp_fmu.so)
undefined symbol: pthread_setspecific    (./Pwp_fmu.so)
undefined symbol: trunc    (./Pwp_fmu.so)
undefined symbol: ModelicaStrings_skipWhiteSpace    (./Pwp_fmu.so)
undefined symbol: ModelicaStrings_length    (./Pwp_fmu.so)
undefined symbol: fmax    (./Pwp_fmu.so)
undefined symbol: pow    (./Pwp_fmu.so)
undefined symbol: sqrt    (./Pwp_fmu.so)
undefined symbol: ModelicaStandardTables_CombiTable2D_init2    (./Pwp_fmu.so)
undefined symbol: floor    (./Pwp_fmu.so)

Any clue on how to solve this problem?

Thank you in advance!

  • Index
  • » Users
  • » NachoMec
  • » Profile
You are here: