[vtkusers] Java and Mingw, library naming problem

Jerome Robert jeromerobert at gmx.com
Thu Jan 9 09:51:57 EST 2014


Hi all,

Unless I missed something the following bugs:

- http://vtk.org/Bug/view.php?id=10969
- http://vtk.org/Bug/view.php?id=7589

are still there in vtk 6.1.0rc1 and they could be fixed using the following patch:

diff --git a/CMake/vtkJavaWrapping.cmake b/CMake/vtkJavaWrapping.cmake
index 8596892..0509cae 100644
--- a/CMake/vtkJavaWrapping.cmake
+++ b/CMake/vtkJavaWrapping.cmake
@@ -41,6 +41,9 @@ function(vtk_add_java_wrapping module_name module_srcs module_hdrs)
     "${module_srcs};${Kit_JAVA_EXTRA_WRAP_SRCS}")
 
   add_library(${module_name}Java SHARED ${ModuleJava_SRCS} ${Kit_JAVA_EXTRA_SRCS})
+  if(MINGW)
+    set_target_properties(${module_name}Java PROPERTIES PREFIX "")
+  endif(MINGW)
   vtk_target_export(${module_name}Java)
   if(CMAKE_HAS_TARGET_INCLUDES)
     set_property(TARGET ${module_name}Java APPEND

Regards,

Jerome


More information about the vtkusers mailing list