Opened 6 years ago
Closed 6 years ago
#5060 closed defect (fixed)
Mac OMEdit doesn't start
Reported by: | Adam Dershowitz | Owned by: | Adeel Asghar |
---|---|---|---|
Priority: | high | Milestone: | Future |
Component: | OMEdit | Version: | |
Keywords: | Cc: | Martin Sjölund, Adeel Asghar, Lennart Ochel |
Description
I have openmodelica-devel installed, using macports on my Mac.
Recent versions were working. But, upgrades over the last little while build and install, but if I try to run OMEdit, it does not open and I get the following error:
Crashed Thread: 0 Exception Type: EXC_CRASH (SIGABRT) Exception Codes: 0x0000000000000000, 0x0000000000000000 Exception Note: EXC_CORPSE_NOTIFY Termination Reason: DYLD, [0x1] Library missing Application Specific Information: dyld: launch, loading dependent libraries Dyld Error Message: Library not loaded: libOMSimulatorLib.dylib Referenced from: /Applications/MacPorts/OMEdit.app/Contents/MacOS/OMEdit Reason: image not found Binary Images: 0x103500000 - 0x103a96ff7 +com.yourcompany.OMEdit (0) <CE91935C-C423-3597-9DC8-DC8CA7E5FD26> /Applications/MacPorts/OMEdit.app/Contents/MacOS/OMEdit 0x103ca0000 - 0x103cdfff3 +libOMPlot.1.0.0.dylib (0) <90F1A167-AC0E-32E0-A1D9-5F5695A7D96C> /opt/local/lib/*/libOMPlot.1.0.0.dylib 0x103d06000 - 0x103db8ffb +libomqwt.6.2.0.dylib (0) <E12BD44D-71C2-36D3-B9F7-A2E0D26A69E8> /opt/local/lib/*/libomqwt.6.2.0.dylib 0x103e2d000 - 0x103e8eff7 +libfmilib_shared.dylib (0) <9CEAD35E-0DA3-397F-9562-6F8AF2BB0D5F> /opt/local/lib/*/libfmilib_shared.dylib 0x103eb2000 - 0x103ebfffb +libomantlr3.dylib (0) <077E3B3A-D0D8-33C5-9A20-3F2F8473CE88> /opt/local/lib/*/libomantlr3.dylib 0x103eca000 - 0x104ad8fff +libOpenModelicaCompiler.dylib (0) <4CE0660C-56A9-359E-9BFD-544638434775> /opt/local/lib/*/libOpenModelicaCompiler.dylib 0x10516c000 - 0x1051afffb +libOpenModelicaRuntimeC.dylib (0) <C009FEE7-0BF1-309F-BE9C-B3C2D4BBCB34> /opt/local/lib/*/libOpenModelicaRuntimeC.dylib 0x1052cf000 - 0x105318fff +libomopcua.dylib (0) <3457DA52-BA51-3F1E-8745-B68ECD798044> /opt/local/lib/*/libomopcua.dylib 0x10b615000 - 0x10b65facf dyld (551.4) <8A72DE9C-A136-3506-AA02-4BA2B82DCAF3> /usr/lib/dyld
It looks like the port is failing to install a required library, or not linking it correctly.
Change History (4)
comment:1 by , 6 years ago
Cc: | added |
---|
comment:2 by , 6 years ago
I don’t know anything about Mac OSX specific requirements. For me it works at least to build and run OpenModelica and OMSimulator from source.
comment:3 by , 6 years ago
It seems that OMSimulator is being built, but not being properly linked for a Mac, so that is why OMEdit won't run. I'm not sure why, or where it is supposed to happen in the port file, so I'm not sure about the correct fix. But, the following is a wor- around that makes it work, and should also provide a clue:
sudo install_name_tool -change libOMSimulatorLib.dylib /opt/local/lib/libOMSimulatorLib.dylib /Applications/MacPorts/OMEdit.app/Contents/MacOS/OMEdit sudo install_name_tool -change MAC64/libomtlmsimulator.dylib /opt/local/lib/libomtlmsimulator.dylib /Applications/MacPorts/OMEdit.app/Contents/MacOS/OMEdit sudo install_name_tool -change MAC64/libomtlmsimulator.dylib /opt/local/lib/libomtlmsimulator.dylib /opt/local/lib/libOMSimulatorLib.dylib
So, the libraries: libomtlmsimulator.dylib and libOMSimulatorLib.dylib are being installed into /opt/local/lib, but OMEdit (and libOMSimulatorLib.dylib) are then searching in wrong places for them (and in two slightly different places, note "MAC64").
After doing the above I can run OMEdit. It seems like this is a similar problem to what was going on with these old tickets:
https://trac.openmodelica.org/OpenModelica/ticket/2680
https://trac.openmodelica.org/OpenModelica/ticket/3378
Martin, whatever magic you did for those, I'm sure that something similar is what it will take to get these two libraries to be found by OMEdit.
comment:4 by , 6 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
I believe this issue is no longer valid. Feel free to reopen the ticket.
I'll add Lennart and Adeel here since they're the ones adding OMSimulator to the makefiles. I assume they forgot to add it to make install...