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
  • » guitorri
  • » Profile

Posts

Posts

Mar-10-14 20:02:12
The binary release for Mac OSX is pointing to non existing libraries.

Hello,

I have a fresh installation of Mavericks with Xcode, Command line tools and Java.

First of all I had to export the bin directory, to be able to use omc:

Code:

export PATH=$PATH:/opt/openmodelica/bin/

When I try to run a model with the binary release for Mac OS X ( tagged openmodelica-devel 19459 ) there seems to be an issue with versions of libraries.

Code:

~ $ omc sim_BouncingBall.mos 

true
record SimulationResult
    resultFile = "",
    simulationOptions = "startTime = 0.0, stopTime = 3.0, numberOfIntervals = 500, tolerance = 1e-06, method = 'dassl', fileNamePrefix = 'BouncingBall', options = '', outputFormat = 'mat', variableFilter = '.*', measureTime = false, cflags = '', simflags = ''",
    messages = "Simulation execution failed for model: BouncingBall
dyld: Library not loaded: /opt/openmodelica/lib/mpich-mp/libpmpich.10.dylib
  Referenced from: /opt/openmodelica/lib/libsundials_kinsol.1.dylib
  Reason: image not found
/bin/sh: line 1:   630 Trace/BPT trap: 5       ( /Users/guilherme/peno/BouncingBall )
",
    timeFrontend = 0.019687103,
    timeBackend = 0.03312385900000001,
    timeSimCode = 0.010583258,
    timeTemplates = 0.011603362,
    timeCompile = 0.266270421
end SimulationResult;
false

There is no version 10 of that library,

Code:

~/peno $ ls /opt/openmodelica/lib/mpich-mp/libpmpich.*

/opt/openmodelica/lib/mpich-mp/libpmpich.12.dylib    /opt/openmodelica/lib/mpich-mp/libpmpich.dylib
/opt/openmodelica/lib/mpich-mp/libpmpich.a

Hacking aroud I got omc and OMEdit to work:

Code:

$cd /opt/openmodelica/lib/mpich-mp

$sudo ln -s libmpich.12.dylib libmpich.10.dylib
$sudo ln -s libpmpich.12.dylib libpmpich.10.dylib

However libreadline is not there for OMShell ...

Code:

~/peno $ OMShell-terminal 

dyld: Library not loaded: /opt/openmodelica/lib/libreadline.6.2.dylib
  Referenced from: /opt/openmodelica/bin/OMShell-terminal
  Reason: image not found
Trace/BPT trap: 5

~/peno $ ls /opt/openmodelica/lib/libr*
ls: /opt/openmodelica/lib/libr*: No such file or directory

Can you please comment on this? I usually do not like to link things around... without knowing the consequences. Is there another binary version which I could download?

Best regards,
Guilherme

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