View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0014157ParaView(No Category)public2013-06-28 18:312016-08-12 09:59
ReporterOrion Poplawski 
Assigned ToKitware Robot 
PrioritynormalSeverityminorReproducibilityhave not tried
StatusclosedResolutionmoved 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0014157: Allow compilation of ParaView with external VTK
DescriptionWe 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.
TagsNo tags attached.
ProjectTBD
Topic Name
Typeincorrect functionality
Attached Filespatch file icon vtk-install.patch [^] (770 bytes) 2013-06-28 18:31 [Show Content]
patch file icon vtk-6.1.0.patch [^] (15,817 bytes) 2014-03-08 18:53 [Show Content]
patch file icon paraview-4.1.0.patch [^] (26,251 bytes) 2014-03-08 18:53 [Show Content]
patch file icon paraview-4.1.0-v2.patch [^] (26,151 bytes) 2014-03-08 19:07 [Show Content]

 Relationships

  Notes
(0032340)
Orion Poplawski (reporter)
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 (reporter)
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 (administrator)
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.

 Issue History
Date Modified Username Field Change
2013-06-28 18:31 Orion Poplawski New Issue
2013-06-28 18:31 Orion Poplawski File Added: vtk-install.patch
2013-12-17 21:51 Dave DeMarle Target Version => 6.2.0
2014-02-17 00:37 Orion Poplawski Note Added: 0032340
2014-03-08 18:52 efferre79 Note Added: 0032460
2014-03-08 18:53 efferre79 File Added: vtk-6.1.0.patch
2014-03-08 18:53 efferre79 File Added: paraview-4.1.0.patch
2014-03-08 19:07 efferre79 File Added: paraview-4.1.0-v2.patch
2014-10-02 11:02 Berk Geveci Project VTK => ParaView
2016-08-12 09:59 Kitware Robot Note Added: 0038417
2016-08-12 09:59 Kitware Robot Status backlog => closed
2016-08-12 09:59 Kitware Robot Resolution open => moved
2016-08-12 09:59 Kitware Robot Assigned To => Kitware Robot


Copyright © 2000 - 2018 MantisBT Team