View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0014016ParaView(No Category)public2013-04-16 18:402016-08-12 09:59
ReporterMatthew Woehlke 
Assigned ToKitware Robot 
PrioritynormalSeverityminorReproducibilityhave not tried
StatusclosedResolutionmoved 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0014016: paraview does not build against external VTK
DescriptionThe fix for issue 0013894 is either inadequate or has bitrotted.

I have run into (at least) the following problems trying to build paraview against external VTK:

- CMake/ParaViewModuleTop.cmake attempts to build non-existing VTK modules. As these have no ${_module}_SOURCE_DIR, this results in CMake errors about trying to add the top-level source directory multiple times. I was able to fix this by skipping modules for which ${_module}_SOURCE_DIR is empty, although this isn't very elegant.

- Plugins can't find VTK because the build-dir ParaviewConfig.cmake refers to Paraview_BINARY_DIR/VTK/VTKConfig.cmake which of course does not exist. This can be fixed by setting the name of the VTKConfig.cmake outside of configuring ParaViewConfig.cmake.in, to a different value depending on whether VTK is external.
TagsNo tags attached.
ProjectTBD
Topic Name
Typeincorrect functionality
Attached Files

 Relationships

  Notes
(0030607)
Matthew Woehlke (reporter)
2013-04-24 19:59

Additional problems I have found:

- Python wrapping does not work (patch below).

- Finding paraview does not work because there is no VTK module pqApplicationComponents.

I'm not sure how to handle the second. Not shoving paraview modules in VTK_FIND_COMPONENTS is a start, but then something needs to actually check for requested paraview modules. This could be done with an additional call to vtk_module_config for the paraview models, except that a: I am not sure that this function can be used for modules outside of VTK proper, and b: something needs to set the list of paraview modules that are available.

Patch for first issue:
diff --git a/Wrapping/Python/CMakeLists.txt b/Wrapping/Python/CMakeLists.txt
index 5c3ad60..7bbd3da 100644
--- a/Wrapping/Python/CMakeLists.txt
+++ b/Wrapping/Python/CMakeLists.txt
@@ -88,6 +88,26 @@ ADD_CUSTOM_COMMAND(
 ADD_CUSTOM_TARGET(paraview_pyc ALL
   DEPENDS "${PV_PYTHON_MODULE_BINARY_DIR}/pv_compile_complete")
 
+if (PARAVIEW_USING_EXTERNAL_VTK)
+ include(vtkPythonWrapping)
+
+ get_property(VTK_PYTHON_MODULES GLOBAL PROPERTY VTK_PYTHON_WRAPPED)
+
+ # Get the include directories for the module and all its dependencies.
+ macro(vtk_include_recurse module)
+ _vtk_module_config_recurse("${module}_PYTHON" ${module})
+ include_directories(${${module}_PYTHON_INCLUDE_DIRS})
+ endmacro()
+
+ # Loop through all modules that should be wrapped, and wrap them.
+ foreach(module ${VTK_PYTHON_MODULES})
+ vtk_module_load(${module})
+ vtk_module_headers_load(${module})
+ vtk_include_recurse(${module})
+ vtk_add_python_wrapping(${module})
+ endforeach()
+endif ()
+
 # Install the paraview module files.
 INSTALL(DIRECTORY ${PV_PYTHON_MODULE_BINARY_DIR}
     DESTINATION ${VTK_INSTALL_LIBRARY_DIR}/site-packages
(0038381)
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-04-16 18:40 Matthew Woehlke New Issue
2013-04-24 19:59 Matthew Woehlke Note Added: 0030607
2016-08-12 09:59 Kitware Robot Note Added: 0038381
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