[vtk-developers] vtkpython executable: linking woes.

Prabhu Ramachandran prabhu at aero.iitm.ernet.in
Thu Jun 13 12:53:27 EDT 2002


hi,

As reported earlier by someone else the vtkpython executable does not
build cleanly under Linux without a PYTHON_LIBRARY:FILEPATH set to
libpythonX.Y.  setting in CMakeCache.txt.  The trouble with this is
that the libvtk*Python.so also gets linked against this.  This
(atleast under Linux) is unnecessary and is a pain.  I'm lucky to have
a libpython*.so.  David said that there isnt a shared python library
under Redhat.  Basically the vtkpython executable needs the extra
-lpythonx.y and the libvtk*Python*.so do not.

So, my question is can the CMakeLists.txt be modified so that the
PYTHON_LIBRARY is not used when creating the libvtk*Python* libraries?
Or, is this correct only under unix and wrong under win32?

Feedback appreciated.

Thanks.
prabhu



More information about the vtk-developers mailing list