View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0006272VTK(No Category)public2008-01-24 08:552016-08-12 09:54
ReporterPaul Melis 
Assigned ToKitware Robot 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionmoved 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0006272: Incorrect installation of Python wrappers with MinGW build
DescriptionWhen 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.
Additional InformationRelevant 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?
TagsNo tags attached.
Project
Type
Attached Files

 Relationships

  Notes
(0036946)
Kitware Robot (administrator)
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.

 Issue History
Date Modified Username Field Change
2008-01-24 08:55 Paul Melis New Issue
2011-06-16 13:11 Zack Galbreath Category => (No Category)
2016-08-12 09:54 Kitware Robot Note Added: 0036946
2016-08-12 09:54 Kitware Robot Status expired => closed
2016-08-12 09:54 Kitware Robot Resolution open => moved
2016-08-12 09:54 Kitware Robot Assigned To => Kitware Robot


Copyright © 2000 - 2018 MantisBT Team