[vtk-developers] [VTK 0011835]: vtkLocal and vtkMy examples do not build against VTK with Python wrapping
Mantis Bug Tracker
mantis at public.kitware.com
Thu Feb 10 03:18:42 EST 2011
The following issue has been SUBMITTED.
======================================================================
http://vtk.org/Bug/view.php?id=11835
======================================================================
Reported By: Takuya OSHIMA
Assigned To:
======================================================================
Project: VTK
Issue ID: 11835
Category: Development
Reproducibility: always
Severity: minor
Priority: normal
Status: new
======================================================================
Date Submitted: 2011-02-10 03:18 EST
Last Modified: 2011-02-10 03:18 EST
======================================================================
Summary: vtkLocal and vtkMy examples do not build against VTK
with Python wrapping
Description:
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.
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2011-02-10 03:18 Takuya OSHIMA New Issue
======================================================================
More information about the vtk-developers
mailing list