building VTK6.0.0.rc2 fails with VTK_WRAP_JAVA set to ON and BUILD_TESTING set to OFF
This issue was created automatically from an original Mantis Issue. Further discussion may take place here.
When building VTK6.0.0.rc2 with VTK_WRAP_JAVA set to ON and BUILD_TESTING set to OFF, build fails at the very end with error below. Build only succeeds when building Java wrappers with testing turned on. This was never a problem with problem with VTK 5.X. I noticed the problem on both Mac and Linux systems.
... [100%] Built target VTKJavaCommonDataModel Scanning dependencies of target VTKJavaCommonTransforms [100%] Built target VTKJavaCommonTransforms Scanning dependencies of target VTKJavaRenderingVolumeAMR [100%] Built target VTKJavaRenderingVolumeAMR Scanning dependencies of target VTKJavaRenderingVolumeOpenGL [100%] Built target VTKJavaRenderingVolumeOpenGL Scanning dependencies of target VTKJavaViewsContext2D [100%] Built target VTKJavaViewsContext2D Scanning dependencies of target VTKJavaViewsInfovis [100%] Built target VTKJavaViewsInfovis Scanning dependencies of target VTKJavaViewsGeovis [100%] Built target VTKJavaViewsGeovis Scanning dependencies of target VTKJavaClasses [100%] Compiling Java Classes /home/eli/software/vtk/vtk-6.0.0.rc2/build/java/vtk/vtkJavaTesting.java:11: cannot find symbol symbol : class vtkTesting location: package vtk import vtk.vtkTesting; ^ /home/eli/software/vtk/vtk-6.0.0.rc2/build/java/vtk/vtkJavaTesting.java:131: cannot find symbol symbol : class vtkTesting location: class vtk.vtkJavaTesting private static vtkTesting Tester = null; ^ /home/eli/software/vtk/vtk-6.0.0.rc2/build/java/vtk/vtkJavaTesting.java:78: cannot find symbol symbol : class vtkTesting location: package vtk vtkJavaTesting.Tester = new vtk.vtkTesting(); ^ Note: /home/eli/software/vtk/vtk-6.0.0.rc2/build/java/vtk/vtkJavaMemoryManagerImpl.java uses unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. 3 errors make: *** [java/javac_stamp.txt] Error 1 make: *** [Wrapping/Java/CMakeFiles/VTKJavaClasses.dir/all] Error 2 make: *** [all] Error 2