[vtkusers] VTK Build Problems

Kevin H. Hobbs kevin.hobbs.1 at ohiou.edu
Wed Jun 29 10:14:29 EDT 2005


On Wed, 2005-06-29 at 09:49 -0400, Jeremy Stout wrote:
> However, this brings me to my latest problem:
> 
> [stout at pollux1 preprocessor]$ java PreprocessorFrame
> Exception in thread "main" java.lang.UnsatisfiedLinkError:
> /home/stout/vtk/bin/libvtkCommonJava.so:
> /home/stout/vtk/bin/libvtkCommonJava.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:1751)
>         at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1676)
>         at java.lang.Runtime.loadLibrary0(Runtime.java:822)
>         at java.lang.System.loadLibrary(System.java:992)
>         at vtk.vtkPanel.<clinit>(vtkPanel.java:26)
>         at PreprocessorFrame.setupDisplayPanel(PreprocessorFrame.java:336)
>         at PreprocessorFrame.<init>(PreprocessorFrame.java:100)
>         at PreprocessorFrame.main(PreprocessorFrame.java:1068)
> 
> PreprocessorFrame is a program that makes use of vtkPanel. I've setup
> my LD_LIBRARY_PATh and PATH variables to point to the directory where
> vtkCommonJava.so is being stored, but I am still getting that error
> message. I've tried compiling vtk as a shared library, but I still get
> the same error message.
> 
> Jeremy Stout

Does java have something like a static link or the -rpath option to gnu
ld?  I've had horrible luck with LD_LIBRARY_PATH lately.

Does one use a special VTK java executable like the tcl and python
interpretors?  I see that if i enable the java build on my workstation
cmake offers to create the executables
VTK_PARSE_JAVA_EXE=/home/kevin/VTK_Build/bin/vtkParseJava and
VTK_WRAP_JAVA_EXE=/home/kevin/VTK_Build/bin/vtkWrapJava.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20050629/7921d98f/attachment.pgp>


More information about the vtkusers mailing list