heicks / peter-bochs

Automatically exported from code.google.com/p/peter-bochs
0 stars 0 forks source link

java.lang.UnsatisfiedLinkError , where is the "libCg.so" ? #2

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
操作步骤:
1、cd 到peter-bochs-debugger20110614.jar所在的目录,
2、执行:“java -jar peter-bochs-debugger20110614.jar bochs -f bochsrc”

操作结果:
1、终端输出如下内容:
java.lang.UnsatisfiedLinkError: /home/hang/code/os/boot/Debuger/libjogl_cg.so: 
libCg.so: cannot open shared object file: No such file or directory
    at java.lang.ClassLoader$NativeLibrary.load(Native Method)
    at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1750)
    at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1646)
    at java.lang.Runtime.load0(Runtime.java:787)
    at java.lang.System.load(System.java:1022)
    at peter.Application.main(Application.java:472)
Native code library failed to load.
java.lang.UnsatisfiedLinkError: /home/hang/code/os/boot/Debuger/libjogl_cg.so: 
libCg.so: cannot open shared object file: No such file or directory
v=Bochs x86 Emulator 2.4.6
peter-bochs-debugger
20111102
http://code.google.com/p/peter-bochs/
http://peter-bochs.googlecode.com/files/peter-bochs-debugger20111102.jar

2、显示bochs虚拟机界面,显示peter-bochs-debugger运行界面,停止
在指令地址为0xffff0处。
3、可以进行正常的调试,bochs的功能没有受到影响。

运行环境:
ubuntu 10.10
Bochs x86 Emulator 2.4.6
peter-bochs-debugger20110614.jar

peter-bochs-debugger20110614.jar所在的目录有如下文件:
a.im
bochsout.txt
bochsrc
libgluegen-rt.so
libjogl.so
libjogl_awt.so
libjogl_cg.so
os.log
perter-bochs.log
peter-bochs.xml
peter-bochs-debugger20110614.jar

附加说明:
peter-bochs-debugger20111102.jar仍然存在该问题。

That's all,thanks!

Original issue reported on code.google.com by jhang...@gmail.com on 15 Nov 2011 at 2:19

GoogleCodeExporter commented 9 years ago
Peter-bochs will exact the shared library itself, so in windows you will see 
some dll files in thw same directory。 try to add "-Djava.library.path=." to 
your command line。

I will improve is in the later version, now i focus on adding c/c++ support

Original comment by cmk128 on 21 Jan 2012 at 1:47