我正在尝试在 Eclipse (3.8) 上使用 OProfile。oprofile 的 Juno 版本不起作用,所以我安装了 Luna 版本。这个至少启动了,但永远找不到库。
这是错误:
ns3-dev-lena-profiling-debug: error while loading shared libraries: libns3-dev-lte- debug.so: cannot open shared object file: No such file or directory
profiled app exited with the following status: 127
我知道这意味着我需要添加库路径。所以我去了Profiling Tools Configurations,并将环境变量下的路径指定为:
name: LD_LIBRARY_PATH
value: {workspace_loc:ns3dev2}/build (appended)
我手动检查,该库位于构建文件夹中。此外,如果我调试同一个项目(或运行它......),这个库路径可以正常工作。
我已经删除了配置并重新制作了它,但它是同样的错误。
我还尝试将相同的路径添加到 PATH 而不是 LD_LIBRARY_PATH,但这没有任何区别。(只是试了一下)。
有什么想法吗?
编辑,我在 Eclipse 4.4 (Luna) 上遇到了同样的问题。我找到了错误的日志,错误是:
!ENTRY org.eclipse.linuxtools.oprofile.core 4 0 2014-10-27 12:33:07.200
!MESSAGE opreport process error output: warning: /no-vmlinux could not be found.