Build for Python fails for MSVC7.1 (version 2.3/2.4)
This issue was created automatically from an original Mantis Issue. Further discussion may take place here.
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.