[vtkusers] Follow-up of Error with Running Java SimpleVTK
Xinzi Wu
xinxin at sciencesoft.net
Sun Nov 9 20:05:41 EST 2003
Hi All,
I posted the following message to the VTK mailing list a long time ago. Since then, I have had quite a few people sending me emails and asking me whether I solved this problem. Yes, I solved this problem. My solution is to create a symbolic link libC.so in /usr/lib, pointing at /usr/lib/libC.so.5. I think (my memory may be wrong as it has been quite a while since I solved my problem) that the reason the solution works is because on my machine the symbol _pure_error_ is defined in libC.so.5. However, at run time, the system is looking at libC.so for this symbol and there is no libC.so on my machine. By creating the symbolic link, this symbol is then found. I found this solution by searching _pure_error_ in Google. And in some other mailing list (don't remember the name of it), I got the clue to solve this problem.
I hope this posting will help people who are experiencing similar problems.
Xinzi
> ----- Original Message -----
> From: "Xinzi Wu" <xinxin at sciencesoft.net>
> To: <vtkusers at public.kitware.com>
> Sent: Monday, May 27, 2002 12:18 AM
> Subject: [vtkusers] Error with Running Java SimpleVTK
>
>
> Hi All,
>
> I downloaded VTK nightly release (on May 2, 2002) and built it with Java
> 1.4.0 on Solaris (sparc) 8. But when I tried run the SimpleVTK test came
> with the nightly distribution, I got the following error:
>
> Exception in thread "main" java.lang.UnsatisfiedLinkError:
> /user/home/xccbond/vtk_May_2_2002/VTK/vtkbin/bin/libvtkCommonJava.so:
> ld.so.1: java: fatal: relocation error: file
> /user/home/xccbond/vtk_May_2_2002/VTK/vtkbin/bin/libvtkCommonJava.so: symbol
> _pure_error_: referenced symbol not found
> at java.lang.ClassLoader$NativeLibrary.load(Native Method)
> at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1480)
> at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1404)
> at java.lang.Runtime.loadLibrary0(Runtime.java:772)
> at java.lang.System.loadLibrary(System.java:832)
> at vtk.vtkPanel.<clinit>(vtkPanel.java:24)
> at SimpleVTK.<init>(SimpleVTK.java:19)
> at SimpleVTK.main(SimpleVTK.java:49)
>
> The C/C++ compiler that I eventually specified for CMake to use is the Sun
> Workshop Compilers C/C++ 4.2. I also have gcc installed on my machine. But I
> can't get the CMake (1.2) to work with gcc, because I always got the error
> message "configure error: can not run test program while cross compiling"
> when I started CMake.
>
> Please help!!
>
> Thanks a lot,
> Xinzi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20031109/f7690e2a/attachment.htm>
More information about the vtkusers
mailing list