[vtkusers] VTK Build Problems
Peter Schmitt
pschmitt at gmail.com
Mon Jun 27 09:47:05 EDT 2005
Do you have the jawt library on your system? Have you tried first
rebuilding Java, check your LD_LIBRARY_PATH (again) and then try to
build VTK?
-Pete
On 6/27/05, Jeremy Stout <stout.jeremy at gmail.com> wrote:
> I am trying to build the nightly version of VTK on a Fedora Core 3
> X86_64 system with MPI, Parallel, and Java support. I am able to get
> it to compile with MPI, but as I turn on the Java switch, problems
> start to arise. Here is a summary of the error messages I am getting:
>
> With i586 version of Java/No MPI/with VTK_USE_PARALLEL:
> Building shared library /home/stout/vtk/bin/libvtkRenderingJava.so...
> /usr/bin/ld: skipping incompatible
> /home/stout/jdk1.5.0_04/jre/lib/i386/libjawt.so when searching for
> -ljawt
> /usr/bin/ld: cannot find -ljawt
> collect2: ld returned 1 exit status
> make[3]: *** [/home/stout/vtk/bin/libvtkRenderingJava.so] Error 1
> make[2]: *** [default_target] Error 2
> make[1]: *** [default_target_Rendering] Error 2
> make: *** [default_target] Error 2
>
> With AM64 version of Java/MPI/with VTK_USE_PARALLEL:
> Building shared library /home/stout/vtk/bin/libvtkParallelJava.so...
> /usr/bin/ld: /usr/local/common/mpich/lib/libmpich.a(initfcmn.o):
> relocation R_X86_64_32 against `mpipriv_' can not be used when making
> a shared object; recompile with -fPIC
> /usr/local/common/mpich/lib/libmpich.a: could not read symbols: Bad value
> collect2: ld returned 1 exit status
> make[3]: *** [/home/stout/vtk/bin/libvtkParallelJava.so] Error 1
> make[2]: *** [default_target] Error 2
> make[1]: *** [default_target_Parallel] Error 2
> make: *** [default_target] Error 2
>
> With AMD 64 version of Java/No MPI/with VTK_USE_PARALLEL:
> /home/stout/vtk/Wrapping/Java: building default_target
> Building dependencies. cmake.depends...
> Building object file VTKJava.o...
> Building executable /home/stout/vtk/bin/VTKJavaExecutable...
> /usr/bin/ld: warning: libmawt.so, needed by
> /usr/local/common/jdk1.5.0_03/jre/lib/amd64/libjawt.so, not found (try
> using -rpath or -rpath-link)
> /usr/bin/ld: warning: libjvm.so, needed by
> /usr/local/common/jdk1.5.0_03/jre/lib/amd64/libjawt.so, not found (try
> using -rpath or
> -rpath-link)/usr/local/common/jdk1.5.0_03/jre/lib/amd64/libjava.so:
> undefined reference to `JVM_MaxObjectInspectionAge at SUNWprivate_1.1'
> /usr/local/common/jdk1.5.0_03/jre/lib/amd64/libjava.so: undefined
> reference to `JVM_Halt at SUNWprivate_1.1'/usr/local/common/jdk1.5.0_03/jre/lib/amd64/libjava.so:
> undefined reference to
> `JVM_ClassLoaderDepth at SUNWprivate_1.1'/usr/local/common/jdk1.5.0_03/jre/lib/amd64/libjava.so:
> undefined reference to
> `JVM_GetClassDeclaredConstructors at SUNWprivate_1.1'/usr/local/common/jdk1.5.0_03/jre/lib/amd64/libverify.so:
> undefined reference to
> `JVM_GetCPMethodNameUTF at SUNWprivate_1.1'/usr/local/common/jdk1.5.0_03/jre/lib/amd64/libjava.so:
> undefined reference to `JVM_LatestUserDefinedLoader at SUNWprivate_1.1'
> /usr/local/common/jdk1.5.0_03/jre/lib/amd64/libjava.so: undefined
> reference to `JVM_Read at SUNWprivate_1.1'/usr/local/common/jdk1.5.0_03/jre/lib/amd64/libverify.so:
> undefined reference to
> `JVM_GetMethodIxModifiers at SUNWprivate_1.1'/usr/local/common/jdk1.5.0_03/jre/lib/amd64/libjava.so:
> undefined reference to
> `JVM_FindSignal at SUNWprivate_1.1'/usr/local/common/jdk1.5.0_03/jre/lib/amd64/libjava.so:
> undefined reference to
> `JVM_GetStackTraceElement at SUNWprivate_1.1'/usr/local/common/jdk1.5.0_03/jre/lib/amd64/libverify.so:
> undefined reference to `JVM_GetClassMethodsCount at SUNWprivate_1.1'
> /usr/local/common/jdk1.5.0_03/jre/lib/amd64/libverify.so: undefined
> reference to `JVM_GetClassMethodsCount at SUNWprivate_1.1'
> /usr/local/common/jdk1.5.0_03/jre/lib/amd64/libverify.so: undefined
> reference to `JVM_IsSameClassPackage at SUNWprivate_1.1'
> /usr/local/common/jdk1.5.0_03/jre/lib/amd64/libjava.so: undefined
> reference to `JVM_SetArrayElement at SUNWprivate_1.1'
> /usr/local/common/jdk1.5.0_03/jre/lib/amd64/libjava.so: undefined
> reference to `JVM_IHashCode at SUNWprivate_1.1'
> /usr/local/common/jdk1.5.0_03/jre/lib/amd64/libjava.so: undefined
> reference to `JVM_GetClassConstantPool at SUNWprivate_1.1'
> /usr/local/common/jdk1.5.0_03/jre/lib/amd64/libjava.so: undefined
> reference to `JVM_GetDeclaredClasses at SUNWprivate_1.1'
> /usr/local/common/jdk1.5.0_03/jre/lib/amd64/libjava.so: undefined
> reference to `JVM_UnloadLibrary at SUNWprivate_1.1'/usr/local/common/jdk1.5.0_03/jre/lib/amd64/libjava.so:
> undefined reference to
> `JVM_Close at SUNWprivate_1.1'/usr/local/common/jdk1.5.0_03/jre/lib/amd64/libjava.so:
> undefined reference to
> `JVM_CompilerCommand at SUNWprivate_1.1'/usr/local/common/jdk1.5.0_03/jre/lib/amd64/libjava.so:
> undefined reference to
> `JVM_RegisterSignal at SUNWprivate_1.1'/usr/local/common/jdk1.5.0_03/jre/lib/amd64/libjava.so:
> undefined reference to
> `JVM_ConstantPoolGetClassAt at SUNWprivate_1.1'/usr/local/common/jdk1.5.0_03/jre/lib/amd64/libjava.so:
> undefined reference to `JVM_Interrupt at SUNWprivate_1.1'
> *insert numerous other error messages*
>
> With AM64 version of Java/MPI/without VTK_USE_PARALLEL:
> Same set of error message as the previous example
>
> I edited my LD_LIBRARY_PATH variable to point to the /lib/amd64/ java
> libraries, but didn't seem to affect anything. Any help in this matter
> would be appreciated.
>
> Jeremy Stout
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
--
Pete
More information about the vtkusers
mailing list