[CMake] problem to install CMake with VTK_WRAP_JAVA ON

Stéphane CALANDE scalande at gmail.com
Mon Oct 27 10:30:13 EDT 2008


Hi,


I'm trying to compile VTK 5.2 with "VTK_WRAP_JAVA" ON.
I generate the makefile with CMake, but when I compile, I have an error at
43% of the installation.

Linking CXX shared library ../bin/libvtkRenderingJava.dll
Creating library file: ../bin/libvtkRenderingJava.dll.a
CMakeFiles/vtkRenderingJava.dir/vtkRenderWindowJava.obj:vtkRenderWindowsJava.cxx:(.text+0x23eb):
undefined reference to '_imp__JAWT_GetAWT at 8'
CMakeFiles/vtkRenderingJava.dir/vtkRenderWindowJava.obj:vtkRenderWindowsJava.cxx:(.text+0x2597):
undefined reference to '_imp__JAWT_GetAWT at 8'
CMakeFiles/vtkRenderingJava.dir/vtkRenderWindowJava.obj:vtkRenderWindowsJava.cxx:(.text+0x26c3):
undefined reference to '_imp__JAWT_GetAWT at 8'
collect2: ld returned 1 exit status
make[2]: *** [bin/libvtkRenderingJava.dll] Error 1
make[1]: *** [Rendering/CMakeFiles/vtkRenderingJava.dir/all] Error 2
make: *** [all] Error 2


But I think my JAVA_AWT path is correctly defined in the CMakeCache :

//Path to a library.
JAVA_AWT_LIBRARY:FILEPATH=C:/Program Files/Java/jdk1.6.0_10/lib/jawt.lib


Do you have an idea to help me ?


Thank you very much in advance.



Stéphane



PS: I am on Windows XP 64-bit, I use MinGW & MSys.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20081027/e92e06d4/attachment.htm>


More information about the CMake mailing list