[vtkusers] Installing VTK with X11 and Python wrapping on OS X Leopard
Preet
preet.desai at gmail.com
Fri Feb 27 08:57:58 EST 2009
I had posted some trouble I was having with getting VTK with Python wrapping
working correctly in OS X Leopard (on pretty much a clean install of the
OS).After compiling with the following options:
VTK_SHARED_LIBS: ON
VTK_USE_COCOA: OFF
VTK_USE_CARBON: OFF
VTK_USE_X: ON
VTK_USE_GUISUPPORT: ON
VTK_WRAP_PYTHON: ON
CMAKE_INSTALL_PREFIX=/Users/preet/Development/VTKBin
OPENGL_gl_LIBRARY:FILEPATH=/usr/X11R6/lib/libGL.dylib
OPENGL_INCLUDE_DIR:PATH=/usr/X11R6/include
I needed to set the environment variable DYLD_FALLBACK_LIBRARY_PATH since it
was not pointing in the right location. I set the directory with:
export
DYLD_FALLBACK_LIBRARY_PATH=$DYLD_FALLBACK_LIBRARY_PATH:/my/path/to/vtkinstall/lib/vtk-5.2
Doing this let the files resolve correctly and I'm able to type in 'import
vtk' at a python interpreter with no issues. I tried to download a sample
python file that displays a basic cube but I get the following error:
ircci-macpro12:vtk preetdesai$ python cube.py
Traceback (most recent call last):
File "cube.py", line 15, in <module>
mapper = vtk.vtkPolyDataMapper()
AttributeError: 'module' object has no attribute 'vtkPolyDataMapper'
I can confirm this file works fine on a similar linux (Ubuntu) install. Are
there more things I need to set / change to get this working?
Regards,
-Preet
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20090227/0902b42b/attachment.htm>
More information about the vtkusers
mailing list