Incorrect installation of Python wrappers with MinGW build
This issue was created automatically from an original Mantis Issue. Further discussion may take place here.
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.