[vtkusers] The java and TCL wrappers

Raul Gerardo Huertas Paiva rax20037 at gmail.com
Mon Apr 21 01:43:39 EDT 2008


Hello

I wanted to build the Java and python APIS but I had some problemes, with
the Java API appeared this message:

[ 97%] Building CXX object
Wrapping/Java/CMakeFiles/VTKJavaExecutable.dir/VTKJava.o
Linking CXX executable ../../bin/VTKJavaExecutable
/home/raulhuertas/Documents/Instaladores/VTK/vtk-5.0.4/bin/libvtkRenderingJava.so:
undefined reference to `JAWT_GetAWT'
collect2: ld returned 1 exit status
make[2]: *** [bin/VTKJavaExecutable] Error 1
make[1]: *** [Wrapping/Java/CMakeFiles/VTKJavaExecutable.dir/all] Error 2
make: *** [all] Error 2

My first try to fix this was to add manually with the compilation flags all
the dirs and link with this options: -ljava -ljvm -ljawt -lmawt ... and
including the dirs of this libraries... but as soon as I append this
libraries, they need more libraries and I think this should be an automatic
task.

After trying a while I finally pass this java inconvenients but the TCL
wrappers( which I turn off) at 98% throws me that there was an error during
conversions :S.

How the Java and Python wrappers should be build. i'm using this variables:

CMAKE_EXE_LINKER_FLAGS
-I/usr/lib/jvm/java-6-sun/jre/lib/i386/
-I/usr/lib/jvm/java-6-sun/jre/lib/i386/xawt/

JAVACOMMAND
/usr/bin/java

 JAVA_ARCHIVE
/usr/bin/jar

 JAVA_AWT_INCLUDE_PATH
/usr/lib/jvm/java-6-sun-1.6.0.03/include

 JAVA_AWT_LIBRARY
/usr/lib/jvm/java-6-sun-1.6.0.03/jre/lib/i386/libawt.so

 JAVA_COMPILE
/usr/bin/javac

 JAVA_INCLUDE_PATH
/usr/lib/jvm/java-6-sun/include

 JAVA_INCLUDE_PATH2
/usr/lib/jvm/java-6-sun/include/linux

 JAVA_JVM_LIBRARY
/usr/lib/jvm/java-6-sun-1.6.0.03/jre/lib

 JAVA_RUNTIME                     /usr/bin/java
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20080421/7d440b71/attachment.htm>


More information about the vtkusers mailing list