[vtkusers] VTK 4.0 and Python 2.2

David Gobbi dgobbi at irus.rri.ca
Tue Feb 5 10:49:38 EST 2002


On Tue, 5 Feb 2002, shock8 wrote:

> by rebuilding stuffs from source i got vtk40 work with python
>
> steps shall be
> 1, download vtksource
> 2, download and install cmake
> 3, run cmake
> 4, turn BUILD_SHARED_LIBS, VTK_WRAP_PYTHON on
> 5, show advanced values, and set other switches you need
> 6, push configure button, push
> 7, check paths are correctly set
> 8, push ok
> 9, open vtk.dsw in target directory
> 10, batch build
> 11, w...a...i...t....

All of this is fine.  Thanks for posting this.

> 12, set PYTHONPATH=c:/vtk40/wrapping/python
> 13, copy dll's to PYTHONPATH

I recommend that you leave the DLLs where they are,
and set the paths as follows:

12. set PYTHONPATH=C:/vtk40/Wrapping/Python;C:/vtkbin/bin/RelWithDebInfo/
13. set PATH=%PATH%;C:\vtkbin\bin\RelWithDebInfo\

where "C:\vtkbin\bin\RelWithDebInfo\" should be the path to the VTK DLLs.
The nice thing about doing it this way is that you don't have to re-copy
any files when you rebuild.

 - David




More information about the vtkusers mailing list