最近我们在几台OS X(MacOS Sierra)机器上安装了OMNeT ++ 5.0,并发现IDE在启动时崩溃。编译没有问题。以下是我们收到的崩溃报告(部分堆栈跟踪)。
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 com.apple.CoreFoundation 0x00007fff98a41bf4 CFBundleGetFunctionPointerForName + 36
1 org.eclipse.Eclipse 0x0000000100003006 findSymbol + 66
2 org.eclipse.Eclipse 0x0000000100001791 original_main + 1572
3 org.eclipse.Eclipse 0x0000000100001e50 main + 1230
4 org.eclipse.Eclipse 0x0000000100000fec start + 52
当我调查时,发现IDE(即Eclipse)无法找到插件,尽管应用程序包已经指定了路径。
我不知道它以前是如何工作的。也许OS X Sierra有所改变。
由于我非常希望让它工作,我找到了一个肮脏的hack。
1
右键单击omnetpp.app
2
选择“显示包内容”
3
转到Contents/MacOS并使用文本编辑器打开omnetpp.ini。您应该会看到类似于这样的东西。-startup
../../../plugins/org.eclipse.equinox.launcher_1.3.0.v20140415-2008.jar
--launcher.library
../../../plugins/org.eclipse.equinox.launcher.cocoa.macosx.x86_64_1.1.200.v20150204-1316
-name
OMNeT++ IDE
-vmargs
-Xms256m
-Xmx1024m
-XX:MaxPermSize=320m
4
将所有路径改为绝对路径(指向你的OMNeT++ 5.0安装位置)。例如,
../../../plugins/org.eclipse.equinox.launcher_1.3.0.v20140415-2008.jar
to
/Users/myhome/omnet-5.0/ide/plugins/org.eclipse.equinox.launcher_1.3.0.v20140415-2008.jar
非常感谢您提供的帮助。
提前致谢。
/Users/myhome/omnet-5.0/ide/plugins/org.eclipse.equinox.launcher_1.3.0.v20140415-2008.jar
。 - Asanga Udugama