MantisBT - VTK
View Issue Details
0011835VTK(No Category)public2011-02-10 03:182012-12-12 12:00
Takuya OSHIMA 
David Gobbi 
normalminoralways
closedfixed 
 
 
0011835: vtkLocal and vtkMy examples do not build against VTK with Python wrapping
When trying to configure vtkLocal with CMake I got an error

 CMake Error at CMakeLists.txt:125 (INCLUDE_DIRECTORIES):
   include_directories given empty-string as include directory.

which was fixed by

--- a/Examples/Build/vtkLocal/CMakeLists.txt
+++ b/Examples/Build/vtkLocal/CMakeLists.txt
@@ -122,8 +122,9 @@ IF(VTK_FOUND)
 
   # Create Python wrappers if VTK is wrapped in Python.
   IF(VTK_WRAP_PYTHON)
- INCLUDE_DIRECTORIES("${PYTHON_INCLUDE_PATH}")
+ SET(VTK_WRAP_PYTHON_FIND_LIBS ON)
     INCLUDE(${VTK_CMAKE_DIR}/vtkWrapPython.cmake)
+ INCLUDE_DIRECTORIES("${PYTHON_INCLUDE_PATH}")
     VTK_WRAP_PYTHON3(${PROJECT_NAME}Python vtkLocalPYTHON_SRCS "${vtkLocal_SRCS}")
     ADD_LIBRARY(${PROJECT_NAME}PythonD ${vtkLocalPYTHON_SRCS})
     ADD_LIBRARY(${PROJECT_NAME}Python MODULE ${PROJECT_NAME}PythonInit.cxx)

The same applies to vtkMy.
No tags attached.
Issue History
2011-02-10 03:18Takuya OSHIMANew Issue
2011-02-10 08:13David PartykaAssigned To => David Partyka
2011-02-10 08:13David PartykaStatusbacklog => tabled
2011-02-10 11:52David GobbiAssigned ToDavid Partyka => David Gobbi
2011-02-10 12:53David GobbiNote Added: 0025378
2011-02-10 12:53David GobbiStatustabled => @40@
2011-02-18 04:18Takuya OSHIMANote Added: 0025469
2011-02-18 08:32David GobbiStatus@40@ => @80@
2011-02-18 08:32David GobbiResolutionopen => fixed
2011-06-16 13:12Zack GalbreathCategoryDevelopment => (No Category)
2012-12-12 12:00David GobbiStatuscustomer review => closed

Notes
(0025378)
David Gobbi   
2011-02-10 12:53   
I have applied the patches to the master. Can you pull from master and verify the fix?
(0025469)
Takuya OSHIMA   
2011-02-18 04:18   
Yes they build fine now for the master and the 5.8-branch. Thanks for the fast fix!