[vtkusers] Compiling VTK from cvs on FC3

Michal Lijowski michal at cvu.wustl.edu
Wed Mar 9 16:04:40 EST 2005


In order to compile VTK from CVS on Fedora Core 3 with gcc 3.4.2
and Java support with JDK 1.5.0_1 I had to include in LD_LIBRARY_PATH
the following directory /usr/java/jdk1.5.0_01/jre/lib/i386/xawt
otherwise the compilation would stopped with error


/home/michal/tmp/VTK-binary/Wrapping/Java: building default_target
Building dependencies. cmake.depends...
Building object file VTKJava.o...
Building executable /home/michal/tmp/VTK-binary/bin/VTKJavaExecutable...
/usr/bin/ld: warning: libmawt.so, needed
by /usr/java/jdk1.5.0_01/jre/lib/i386/libjawt.so, not found (try using -
rpath or -rpath-link)
/usr/java/jdk1.5.0_01/jre/lib/i386/libjawt.so: undefined reference to
`awt_Unlock at SUNWprivate_1.1'
/usr/java/jdk1.5.0_01/jre/lib/i386/libjawt.so: undefined reference to
`awt_GetComponent at SUNWprivate_1.1'
/usr/java/jdk1.5.0_01/jre/lib/i386/libjawt.so: undefined reference to
`awt_GetDrawingSurface at SUNWprivate_1.1'
/usr/java/jdk1.5.0_01/jre/lib/i386/libjawt.so: undefined reference to
`awt_FreeDrawingSurface at SUNWprivate_1.1'
/usr/java/jdk1.5.0_01/jre/lib/i386/libjawt.so: undefined reference to
`awt_Lock at SUNWprivate_1.1'
collect2: ld returned 1 exit status
make[3]: *** [/home/michal/tmp/VTK-binary/bin/VTKJavaExecutable] Error 1
make[2]: *** [default_target] Error 2
make[1]: *** [default_target_Wrapping_Java] Error 2
make: *** [default_target] Error 2

Michal




More information about the vtkusers mailing list