Hello<br><br>I wanted to build the Java and python APIS but I had some problemes, with the Java API appeared this message:<br><br>[ 97%] Building CXX object Wrapping/Java/CMakeFiles/VTKJavaExecutable.dir/VTKJava.o<br>Linking CXX executable ../../bin/VTKJavaExecutable<br>
/home/raulhuertas/Documents/Instaladores/VTK/vtk-5.0.4/bin/libvtkRenderingJava.so: undefined reference to `JAWT_GetAWT'<br>collect2: ld returned 1 exit status<br>make[2]: *** [bin/VTKJavaExecutable] Error 1<br>make[1]: *** [Wrapping/Java/CMakeFiles/VTKJavaExecutable.dir/all] Error 2<br>
make: *** [all] Error 2<br><br>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.<br>
<br>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.<br><br>How the Java and Python wrappers should be build. i'm using this variables:<br>
<br>CMAKE_EXE_LINKER_FLAGS <br>-I/usr/lib/jvm/java-6-sun/jre/lib/i386/ -I/usr/lib/jvm/java-6-sun/jre/lib/i386/xawt/<br><br>JAVACOMMAND /usr/bin/java <br>
JAVA_ARCHIVE /usr/bin/jar <br> JAVA_AWT_INCLUDE_PATH /usr/lib/jvm/java-6-sun-1.6.0.03/include <br>
JAVA_AWT_LIBRARY /usr/lib/jvm/java-6-sun-1.6.0.03/jre/lib/i386/libawt.so <br> JAVA_COMPILE /usr/bin/javac <br>
JAVA_INCLUDE_PATH /usr/lib/jvm/java-6-sun/include <br> JAVA_INCLUDE_PATH2 /usr/lib/jvm/java-6-sun/include/linux <br>
JAVA_JVM_LIBRARY /usr/lib/jvm/java-6-sun-1.6.0.03/jre/lib <br> JAVA_RUNTIME /usr/bin/java<br><br>