Hi Mathieu, You are right. Using /usr/share/java/vtk/vtk.jar solves the problem.
BTW, I was playing with vtk-5.4 in experimental and tried to compile gdcm. There is another java related problem. I was getting an error message. Here it is: ------------------------------------------------------- Linking CXX shared library ../../bin/libvtkgdcmJava.so /usr/bin/ld: error: cannot find -lvtkCommonJava /usr/bin/ld: error: cannot find -lvtkIOJava /usr/bin/ld: error: cannot find -lvtkImagingJava /usr/bin/ld: error: cannot find -lvtkRenderingJava /usr/bin/ld: error: cannot find -lvtkImagingJava /usr/bin/ld: error: cannot find -lvtkGraphicsJava /usr/bin/ld: error: cannot find -lvtkFilteringJava /usr/bin/ld: error: cannot find -lvtkCommonJava collect2: ld returned 1 exit status make[3]: *** [bin/libvtkgdcmJava.so] Error 1 ------------------------------------------------------- Those libraries have been located in /usr/lib/ . Since a while they are located in /usr/lib/jni/ . Following patch helps in my case: ------------------------------------------------------------------- --- gdcm-2.0.14.orig/Utilities/VTK/CMakeLists.txt +++ gdcm-2.0.14/Utilities/VTK/CMakeLists.txt @@ -242,17 +242,16 @@ INCLUDE(${VTK_CMAKE_DIR}/vtkWrapJava.cmake) INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}) + if(EXISTS /usr/lib/jni/libvtkCommonJava.so) + message("Implicitely adding debian package layout...") + link_directories("/usr/lib/jni") + endif() + VTK_WRAP_JAVA3(${VTKGDCM_NAME}Java vtkgdcmJAVA_SRCS "${vtkgdcm_SRCS}") # libvtk-java is a pain to handle... if(EXISTS ${VTK_JAVA_JAR}) # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=533193 set(GDCM_VTK_JAVA_JAR ${VTK_JAVA_JAR}) - else(EXISTS ${VTK_JAVA_JAR}) - # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=533198 - if(EXISTS /usr/lib/jni/libvtkCommonJava.so) - message("Implicitely adding debian package layout...") - link_directories("/usr/lib/jni") - endif() endif(EXISTS ${VTK_JAVA_JAR}) MARK_AS_ADVANCED(GDCM_VTK_JAVA_JAR) if(EXISTS ${GDCM_VTK_JAVA_JAR}) ------------------------------------------------------------------- Cheers Dominique On Mon, 2009-12-28 at 17:17 +0100, Mathieu Malaterre wrote: > On Sun, Dec 27, 2009 at 7:42 PM, Denis Barbier <bou...@gmail.com> wrote: > > On 2009/12/27 Mathieu Malaterre wrote: > > [...] > >> Does this help ? Even if the path is wrong in VTKConfig.cmake, GDCM > >> can cope with that. In the end /usr/share/java/vtk/vtk.jar should be > >> the vtk jar file. > > [...] > > > > I was confused by your message, /usr/share/java/vtk.jar is the > > expected location of the jar file. and this is what your commit does, > > If you do the upload, please close this new bug too. thanks > > http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=562775 > -- To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org