Allow compilation of ParaView with external VTK
This issue was created automatically from an original Mantis Issue. Further discussion may take place here.
We need to be able to build ParaView with an external VTK. First issue encountered was:
CMake Error at CMake/ParaViewModuleTop.cmake:61 (include): include could not find load file:
vtkGroups
Call Stack (most recent call first): CMakeLists.txt:495 (include)
CMake Error at CMake/ParaViewModuleTop.cmake:184 (include): include could not find load file:
TopologicalSort
This can be fixed by installing those files. The attached patch fixes that.
Next issue is:
CMake Error: File /Wrapping/Java/JavaDependencies.cmake.in does not exist. CMake Error at /usr/lib64/cmake/vtk/vtkWrapJava.cmake:162 (CONFIGURE_FILE): configure_file Problem configuring file Call Stack (most recent call first): /usr/lib64/cmake/vtk/vtkJavaWrapping.cmake:40 (vtk_wrap_java3) /usr/lib64/cmake/vtk/vtkWrapping.cmake:67 (vtk_add_java_wrapping) /usr/lib64/cmake/vtk/vtkModuleMacros.cmake:565 (vtk_add_wrapping) ParaViewCore/VTKExtensions/Core/CMakeLists.txt:81 (vtk_module_library)
Two issues - JavaDependencies.cmake.in is not installed, and vtkWrapJava.cmake is not looking for it in the correct place. Code is:
SET(dir ${CMAKE_CURRENT_SOURCE_DIR}) IF(VTK_WRAP_JAVA3_INIT_DIR) SET(dir ${VTK_WRAP_JAVA3_INIT_DIR}) ENDIF(VTK_WRAP_JAVA3_INIT_DIR) CONFIGURE_FILE("${dir}/JavaDependencies.cmake.in" "${CMAKE_CURRENT_BINARY_DIR}/JavaDependencies.cmake" IMMEDIATE @ONLY)
From vtkJavaWrapping.cmake: set(VTK_WRAP_JAVA3_INIT_DIR "${VTK_SOURCE_DIR}/Wrapping/Java")
So it looks like this is just not capable of being run outside of the VTK source tree.