[vtkusers] Problem with python wrapping

David Gobbi david.gobbi at gmail.com
Wed Mar 25 08:46:05 EDT 2015


On Wed, Mar 25, 2015 at 6:23 AM, AI <odre_89 at hotmail.com> wrote:

> Hello,
>
> I need to wrap a vtk filter in python.
>
> I compiled VTK with the option pyhon_wrapping ON. I also set the variable
> PYTHON_PATH in my .bashrc :
> export PYTHONPATH=~/software/vtk/VTK-6.1.0/Wrapping/Python:$VTK_DIR/lib
>
> When I try to run cmake for my project, I get the following error :
> Unknown CMake command "VTK_WRAP_PYTHON3"
>

Add this to your cmake file before you call vtk_wrap_python3:

  set(VTK_WRAP_PYTHON_FIND_LIBS ON)
  include(${VTK_CMAKE_DIR}/vtkWrapPython.cmake)

 - David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20150325/598ffe5a/attachment.html>


More information about the vtkusers mailing list