[vtkusers] VTK 4.1.1 libvtkRenderingJava.so problem
Andrew Usher
A.C.J.Usher at damtp.cam.ac.uk
Wed Dec 4 10:23:45 EST 2002
Hi,
Thanks for the pointers.
I've ldd'd the libvtkRenderingJava.so library and get:
libpthread.so.0 => /lib/i686/libpthread.so.0 (0x403dc000)
libdl.so.2 => /lib/libdl.so.2 (0x403f0000)
libvtkImagingJava.so =>
/usr/local/vtk/VTK/bin/libvtkImagingJava.so (0x03f3000)
libvtkGraphicsJava.so =>
/usr/local/vtk/VTK/bin/libvtkGraphicsJava.so (x4045d000)
libvtkFilteringJava.so =>
/usr/local/vtk/VTK/bin/libvtkFilteringJava.so(0x40527000)
libvtkCommonJava.so => /usr/local/vtk/VTK/bin/libvtkCommonJava.so
(0x4055000)
libGL.so.1 => /usr/lib/libGL.so.1 (0x40639000)
libm.so.6 => /lib/i686/libm.so.6 (0x406a5000)
libXt.so.6 => /usr/X11R6/lib/libXt.so.6 (0x406c7000)
libSM.so.6 => /usr/X11R6/lib/libSM.so.6 (0x40713000)
libICE.so.6 => /usr/X11R6/lib/libICE.so.6 (0x4071b000)
libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x40732000)
libXext.so.6 => /usr/X11R6/lib/libXext.so.6 (0x40808000)
libstdc++-libc6.2-2.so.3 => /usr/lib/libstdc++-libc6.2-2.so.3
(0x4081500)
libc.so.6 => /lib/i686/libc.so.6 (0x42000000)
libvtkImaging.so => /usr/local/vtk/VTK/bin/libvtkImaging.so
(0x40858000 libvtkFiltering.so =>
/usr/local/vtk/VTK/bin/libvtkFiltering.so (0x40b7000)
libvtkCommon.so => /usr/local/vtk/VTK/bin/libvtkCommon.so
(0x40bf2000)
libvtkGraphics.so => /usr/local/vtk/VTK/bin/libvtkGraphics.so
(0x40e4300)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000)
undefined symbol: JAWT_GetAWT (./libvtkRenderingJava.so)
I'll try a total rebuild and see where that gets me.
Thanks,
Andrew
---------------------------------------------------
Andrew Usher
Email: a.c.j.usher at damtp.cam.ac.uk
---------------------------------------------------
On Wed, 4 Dec 2002, Jeff Lee wrote:
> That is strange, you shouldn't need to put path to jawt.so in your
> library path, the jvm should bring it in. You could try 'ldd -r' on
> libvtkRenderingJava.so and see if everything looks right.
> -Jeff
>
> Andrew Usher wrote:
>
> >Hi,
> >
> >The JAVA_AWT_LIBRARY:FILEPATH is set to the correct libjawt.so
> >/opt/sunone/j2sdk1.4.1/jre/lib/i386/libjawt.so in my case.
> >
> >It really is most strange. Do you think it would be worth doinf a make
> >clean and recompiling from the top?
> >
> >Thanks,
> >
> >Andrew
> >
> >---------------------------------------------------
> >Andrew Usher
> >Email: a.c.j.usher at damtp.cam.ac.uk
> >---------------------------------------------------
> >
> >On Wed, 4 Dec 2002, Jeff Lee wrote:
> >
> >
> >
> >>What does your CMakeCache.txt entry say for JAVA_AWT_LIBRARY:FILEPATH ?
> >>It should be something like /usr/local/java/jdk/jre/lib/i386/libjawt.so
> >>-Jeff
> >>
> >>Andrew Usher wrote:
> >>
> >>
> >>
> >>>Hi,
> >>>
> >>>I'm running VTK 4.1.1 with j2sdk1.4.1 on Redhat 7.3 and keep getting
> >>>following error:
> >>>
> >>>Exception in thread "main" java.lang.UnsatisfiedLinkError:
> >>>/usr/local/lib/vtk/libvtkRenderingJava.so:
> >>>/usr/local/lib/vtk/libvtkRenderingJava.so: undefined symbol: JAWT_GetAWT
> >>> at java.lang.ClassLoader$NativeLibrary.load(Native Method)
> >>> at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1473)
> >>> at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1397)
> >>> at java.lang.Runtime.loadLibrary0(Runtime.java:788)
> >>> at java.lang.System.loadLibrary(System.java:832)
> >>> at Cone.<clinit>(Cone.java:22)
> >>>
> >>>I've double checked the makefile to point to libjawt.so correctly and
> >>>recompiled with no success. Any ideas please?
> >>>
> >>>I'm compiling with:
> >>>
> >>>javac -classpath
> >>>/usr/local/vtk/VTK/Examples/Tutorial/Step1/Java:/usr/local/vtk/VTK/bin/vtk.jar
> >>>Cone.java
> >>>
> >>>and have LD_LIBRARY_PATH set to:
> >>>
> >>>/usr/local/lib/vtk:
> >>>/opt/sunone/j2sdk1.4.1/jre/lib/i386:
> >>>/opt/sunone/j2sdk1.4.1/lib
> >>>
> >>>Thanks very much,
> >>>
> >>>Andrew
> >>>
> >>>
> >>>
> >
> >
>
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at: <http://public.kitware.com/cgi-bin/vtkfaq>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers
>
More information about the vtkusers
mailing list