[vtkusers] Hybrid Build Returning Errors
David Gobbi
dgobbi at irus.rri.ca
Thu May 2 11:13:59 EDT 2002
On Thu, 2 May 2002, Prabhu Ramachandran wrote:
> Come to think of it why is it that the Python modules need to link to
> the other Python modules? i.e. why is it that libvtkHybridPython
> needs to link to libvtkRenderingPython or any other *Python.so? This
> is true on all unices but why? This does not appear to be true under
> Win32 (which is why you dont need to put the vtk*Python.dlls in the
> PATH).
On Win32, the PATH that a DLL uses to load other DLLs includes the
directory where that DLL is located. So having all the Python DLLs in
the same directory is enough to ensure that they can load each other.
The dependency of the libvtk*Python.so's need only be back to
libvtkCommonPython.so, because the vtkPythonUtils class (that contains
some C++ methods used by all the modules) is stored in there.
It might be possible to force dynamic linkage of these methods at
run-time using Python's own low-level dynamic loading functions.
- David
>
More information about the vtkusers
mailing list