MantisBT - VTK
View Issue Details
0001931VTK(No Category)public2005-06-13 19:212013-04-05 19:59
Andrew Maclean 
Will Schroeder 
urgentmajoralways
closedno change required 
 
 
0001931: Build for Python fails for MSVC7.1 (version 2.3/2.4)
The build for Python fails because the python library is not found.

It occurs because the VTKWrapPython project needs the python library. It can be fixed, for example, by adding C:\Python24\libs\python24.lib to the additional dependencies in the project properties for the linker.

Can CMakeLists.txt be edited to add in this? It is present for all of the other projects in the VS7.1 solution.

Also, is there a reason why vtkCommonPython.dll etc live in C:\Program Files\VTK\lib\vtk and not C:\Program Files\VTK\bin where the rest of the dlls live after running install? It they lived there then PYTHONPATH=C:\Program Files\VTK\bin instead of the current PYTHONPATH=C:\Program Files\VTK\bin;C:\Program Files\VTK\lib\vtk (of course you need to add in: C:\vtk\VTK\Wrapping\Python;C:\vtk\VTK\Wrapping\Python\vtk; if you are using Python directly instead of vtkpython).

While you are editing the CMakeLists.txt files, can you also fix up the help on PYTHON_LIBRARY to read something like this: "Path to the library files e.g. python24.lib, etc.". I was a little confused because the dlls shouldn't be mentioned here.

Thanks Andrew.
No tags attached.
Issue History
2010-11-30 23:20David PartykaNote Added: 0023630
2010-11-30 23:20David PartykaStatustabled => @80@
2010-11-30 23:20David PartykaResolutionfixed => no change required
2011-06-16 13:11Zack GalbreathCategory => (No Category)
2013-04-05 19:59Berk GeveciStatuscustomer review => closed

Notes
(0002494)
Andrew Maclean   
2005-06-14 00:45   
Upon further investigation, none of the *Python.lib files are copied into C:\Program Files\VTK\lib\vtk

I think I know what has happened: the install command does not copy the DLLS to the bin directory or copy the lib files to the C:\Program Files\VTK\lib\vtk I think INSTALL_TARGETS ... RUNTIME_DIRECTORY needs to be set in the Python section of the install process.

I hope this helps

   Andrew
(0002741)
Andrew Maclean   
2005-07-28 19:35   
Seems to be fixed in the most recent CVS.
(0023630)
David Partyka   
2010-11-30 23:20   
Closing really old bug.