MantisBT - ParaView
View Issue Details
0014157ParaView(No Category)public2013-06-28 18:312016-08-12 09:59
Orion Poplawski 
Kitware Robot 
normalminorhave not tried
closedmoved 
 
 
TBD
incorrect functionality
0014157: Allow compilation of ParaView with external VTK
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.
No tags attached.
patch vtk-install.patch (770) 2013-06-28 18:31
https://www.vtk.org/Bug/file/9473/vtk-install.patch
patch vtk-6.1.0.patch (15,817) 2014-03-08 18:53
https://www.vtk.org/Bug/file/9624/vtk-6.1.0.patch
patch paraview-4.1.0.patch (26,251) 2014-03-08 18:53
https://www.vtk.org/Bug/file/9625/paraview-4.1.0.patch
patch paraview-4.1.0-v2.patch (26,151) 2014-03-08 19:07
https://www.vtk.org/Bug/file/9626/paraview-4.1.0-v2.patch
Issue History
2013-06-28 18:31Orion PoplawskiNew Issue
2013-06-28 18:31Orion PoplawskiFile Added: vtk-install.patch
2013-12-17 21:51Dave DeMarleTarget Version => 6.2.0
2014-02-17 00:37Orion PoplawskiNote Added: 0032340
2014-03-08 18:52efferre79Note Added: 0032460
2014-03-08 18:53efferre79File Added: vtk-6.1.0.patch
2014-03-08 18:53efferre79File Added: paraview-4.1.0.patch
2014-03-08 19:07efferre79File Added: paraview-4.1.0-v2.patch
2014-10-02 11:02Berk GeveciProjectVTK => ParaView
2016-08-12 09:59Kitware RobotNote Added: 0038417
2016-08-12 09:59Kitware RobotStatusbacklog => closed
2016-08-12 09:59Kitware RobotResolutionopen => moved
2016-08-12 09:59Kitware RobotAssigned To => Kitware Robot

Notes
(0032340)
Orion Poplawski   
2014-02-17 00:37   
Trying again with VTK 6.1.0 and ParaView 4.1.0, get:

CMake Error at CMake/ParaViewModuleTop.cmake:283 (add_subdirectory):
  add_subdirectory not given a binary directory but the given source
  directory "/builddir/build/BUILD/ParaView-v4.1.0" is not a subdirectory of
  "/builddir/build/BUILD/ParaView-v4.1.0". When specifying an out-of-tree
  source a binary directory must be explicitly specified.
Call Stack (most recent call first):
  CMakeLists.txt:570 (include)
CMake Error at /usr/lib64/cmake/vtk/vtkModuleAPI.cmake:53 (message):
  No such module: "vtkPythonInterpreter"
Call Stack (most recent call first):
  /usr/lib64/cmake/vtk/vtkModuleAPI.cmake:15 (vtk_module_load)
  /usr/lib64/cmake/vtk/vtkModuleAPI.cmake:132 (_vtk_module_config_recurse)
  /usr/lib64/cmake/vtk/vtkModuleMacros.cmake:136 (vtk_module_config)
  /usr/lib64/cmake/vtk/vtkModuleMacros.cmake:480 (vtk_module_impl)
  ParaViewCore/ClientServerStream/CMakeLists.txt:48 (vtk_module_library)
(0032460)
efferre79   
2014-03-08 18:52   
I have started from VTK-6.1.0 and ParaView-4.1.0 sources and created two patches. In this way I'm able to compile ParaView against the external installed VTK.

This is just a try (there are a few hacks that require a better approach improving and fixing the build system) but at the same time many hunks in the patches fix real errors.

Looking forward to see integrated this kind of functionality in the next versions of VTK and Paraview:

- less disk space with only one installed VTK version
- reduced maintenance effort, just require a specific external version of VTK to compile against
(0038417)
Kitware Robot   
2016-08-12 09:59   
Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current ParaView Issues page linked in the banner at the top of this page.