MantisBT - VTK
View Issue Details
0006272VTK(No Category)public2008-01-24 08:552016-08-12 09:54
Paul Melis 
Kitware Robot 
normalminoralways
closedmoved 
 
 
0006272: Incorrect installation of Python wrappers with MinGW build
When building VTK (CVS of 24/1/08) with MinGW on Windows XP compilation succeeds. A "make install" also seems to work o.k., except that part of the Python wrappers is not installed.

I set CMAKE_INSTALL_PREFIX to "C:\Program Files\VTK" and after "make install" running Python and importing the "vtk" module fails because the "vtkCommonPython" module can't be found. Running the "vtkpython" executable fails with a similar error.

After closer inspection of the make install output I noticed the line:
...
byte-compiling C:\Program Files\VTK\Lib\site-packages\vtk\wx\wxVTKRenderWindow.p
y to wxVTKRenderWindow.pyc
error: can't copy 'C:\Paul\vtkbuild\bin\vtkCommonPython.pyd': doesn't exist or n
ot a regular file
...

Checking the build directory I indeed don't see vtkCommonPython.pyd, but DO see libvtkCommonPython.pyd and friends. When I copy these to C:\Program Files\VTK and strip off the "lib" prefix the Python wrappers seems to work fine.
Relevant CMake settings used:

CMAKE_INSTALL_PREFIX = "C:\Program Files\VTK"
CMAKE_BUILD_TYPE = "Release"
BUILD_SHARED_LIBS = ON
VTK_WRAP_PYTHON = ON
Source dir: C:\Paul\VTK
Binaries dir: C:\Paul\vtkbuild

PS I set the build type to Release, but in the (freshly created) installation bin/ directory I do see libvtkCommonPythonD.dll and friends, suggesting these are part of a Debug build. Is this correct?
No tags attached.
Issue History
2008-01-24 08:55Paul MelisNew Issue
2011-06-16 13:11Zack GalbreathCategory => (No Category)
2016-08-12 09:54Kitware RobotNote Added: 0036946
2016-08-12 09:54Kitware RobotStatusexpired => closed
2016-08-12 09:54Kitware RobotResolutionopen => moved
2016-08-12 09:54Kitware RobotAssigned To => Kitware Robot

Notes
(0036946)
Kitware Robot   
2016-08-12 09:54   
Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current VTK Issues page linked in the banner at the top of this page.