[vtkusers] vtk python lib's dependency on libvtkCommonPython not set by cmake
michael edens
mike at frosty.ce.montana.edu
Fri Jun 6 18:38:18 EDT 2003
When trying to run a python script (using either vtkpython or python)
the following error is reported
Traceback (most recent call last):
File "Cylinder.py", line 6, in ?
import vtk
File
"/Users/mike/Development/vtk/VTK-4.2.2/Wrapping/Python/vtk/
__init__.py", line 8, in ?
from filtering import *
File
"/Users/mike/Development/vtk/VTK-4.2.2/Wrapping/Python/vtk/
filtering.py", line 7, in ?
from libvtkFilteringPython import *
ImportError: Failure linking new module: : dyld: python Undefined
symbols:
_PyArg_VTKParseTuple
_PyVTKClass_Check
_PyVTKClass_New
_PyVTKClass_vtkCollectionNew
_PyVTKClass_vtkDataObjectNew
_PyVTKClass_vtkImplicitFunctionNew
_PyVTKClass_vtkLocatorNew
_PyVTKClass_vtkObjectNew
_PyVTKClass_vtkPointLocatorNew
_PyVTKClass_vtkScalarsToColorsNew
_PyVTKClass_vtkSourceNew
__Z19vtkPythonCheckArrayP7_objectiPfi
__Z19vtkPythonCheckArrayP7_objectiPii
__Z29vtkPythonGetObjectFromPointerP13vtkObjectBase
__Z29vtkPythonGetPointerFromObjec
For some reason none of the python libs have libvtkCommonPython.so (or
any other libvtk""Python.so library) set as a dependency by cmake
(1.6.7). Trying to correct this in the CMakeCache file does not work.
Any suggestions.
I have built VTK-4.2.2 under OSX 10.2.6 for X11.
Here is the pertinent section of my CMakeCache file.
//Dependencies for the target
vtkCommonPython_LIB_DEPENDS:STATIC=/sw/lib/python2.3/config/
libpython2.3.dylib;vtkCommon;
//Dependencies for the target
vtkCommonTCL_LIB_DEPENDS:STATIC=/sw/lib/libtcl8.4.dylib;vtkCommon;
//Dependencies for the target
vtkCommon_LIB_DEPENDS:STATIC=-framework AppKit;-lpthread;-lm;
//Dependencies for the target
vtkFilteringPython_LIB_DEPENDS:STATIC=vtkFiltering;
//Dependencies for the target
vtkFilteringTCL_LIB_DEPENDS:STATIC=vtkCommonTCL;vtkFiltering;/sw/lib/
libtcl8.4.dylib;
//Dependencies for the target
vtkFiltering_LIB_DEPENDS:STATIC=vtkCommon;
//Dependencies for the target
vtkGraphicsPython_LIB_DEPENDS:STATIC=vtkGraphics;
//Dependencies for the target
vtkGraphicsTCL_LIB_DEPENDS:STATIC=vtkFilteringTCL;vtkGraphics;/sw/lib/
libtcl8.4.dylib;
//Dependencies for the target
vtkGraphics_LIB_DEPENDS:STATIC=vtkFiltering;
//Dependencies for the target
vtkHybridPython_LIB_DEPENDS:STATIC=-lGLU;-lGL;-lSM;-lICE;-lSM;-lICE;-
lSM;-lICE;/usr/x11R6/lib/libX11.a;/usr/x11R6/lib/libXext.a;/usr/x11R6/
lib/libX11.a;/usr/x11R6/lib/libXext.a;/usr/x11R6/lib/libX11.a;/usr/
x11R6/lib/libXext.a;vtkHybrid;
//Dependencies for the target
vtkHybridTCL_LIB_DEPENDS:STATIC=vtkHybrid;vtkRenderingTCL;vtkIOTCL;
//Dependencies for the target
vtkHybrid_LIB_DEPENDS:STATIC=vtkRendering;vtkIO;
//Dependencies for the target
vtkIOPython_LIB_DEPENDS:STATIC=vtkIO;
//Dependencies for the target
vtkIOTCL_LIB_DEPENDS:STATIC=vtkFilteringTCL;vtkIO;/sw/lib/
libtcl8.4.dylib;
//Dependencies for the target
vtkIO_LIB_DEPENDS:STATIC=vtkFiltering;/sw/lib/libpng.3.1.2.5.dylib;/
usr/lib/libz.dylib;/usr/lib/libz.dylib;/sw/lib/libjpeg.62.0.0.dylib;/
sw/lib/libtiff.3.5.7.dylib;/sw/lib/libexpat.0.4.0.dylib;
//Dependencies for the target
vtkImagingPython_LIB_DEPENDS:STATIC=vtkImaging;
//Dependencies for the target
vtkImagingTCL_LIB_DEPENDS:STATIC=vtkFilteringTCL;vtkImaging;/sw/lib/
libtcl8.4.dylib;
//Dependencies for the target
vtkImaging_LIB_DEPENDS:STATIC=vtkFiltering;
//Dependencies for the target
vtkParallelPython_LIB_DEPENDS:STATIC=-lGLU;-lGL;-lSM;-lICE;-lSM;-lICE;/
usr/x11R6/lib/libX11.a;/usr/x11R6/lib/libXext.a;/usr/x11R6/lib/
libX11.a;/usr/x11R6/lib/libXext.a;vtkParallel;
//Dependencies for the target
vtkParallelTCL_LIB_DEPENDS:STATIC=vtkParallel;vtkIOTCL;vtkRenderingTCL;
//Dependencies for the target
vtkParallel_LIB_DEPENDS:STATIC=vtkRendering;vtkIO;
//Dependencies for the target
vtkPatentedPython_LIB_DEPENDS:STATIC=vtkPatented;
//Dependencies for the target
vtkPatentedTCL_LIB_DEPENDS:STATIC=vtkPatented;vtkIOTCL;vtkGraphicsTCL;vt
kImagingTCL;
//Dependencies for the target
vtkPatented_LIB_DEPENDS:STATIC=vtkImaging;vtkGraphics;vtkIO;
//Dependencies for the target
vtkRenderingPythonTkWidgets_LIB_DEPENDS:STATIC=vtkRendering;/sw/lib/
libtcl8.4.dylib;/sw/lib/libtk8.4.dylib;
//Dependencies for the target
vtkRenderingPython_LIB_DEPENDS:STATIC=vtkRendering;
//Dependencies for the target
vtkRenderingTCL_LIB_DEPENDS:STATIC=vtkGraphicsTCL;vtkImagingTCL;vtkRende
ring;/sw/lib/libtcl8.4.dylib;/sw/lib/libtk8.4.dylib;
//Dependencies for the target
vtkRendering_LIB_DEPENDS:STATIC=vtkGraphics;vtkImaging;-lGLU;-lGL;-
lSM;-lICE;-lSM;-lICE;/usr/x11R6/lib/libX11.a;/usr/x11R6/lib/libXext.a;/
usr/x11R6/lib/libX11.a;/usr/x11R6/lib/libXext.a;vtkftgl;vtkfreetype;-
lXt;-lSM;-lICE;/usr/x11R6/lib/libX11.a;/usr/x11R6/lib/libXext.a;
More information about the vtkusers
mailing list