[vtkusers] Installing VTK with X11 and Python wrapping on OS X

Preet preet.desai at gmail.com
Wed Feb 25 16:27:30 EST 2009


Hey all,
I've had a lot of trouble installing VTK with X11 (no cocoa or carbon) and
python wrapping on OS X Leopard.

Here's what I change from defaults in CMakeCache.txt:

VTK_SHARED_LIBS: ON

VTK_USE_COCOA: OFF
VTK_USE_CARBON: OFF
VTK_USE_X: ON
VTK_USE_GUISUPPORT: ON
VTK_WRAP_PYTHON: OFF
CMAKE_INSTALL_PREFIX=/Users/preet/Development/VTKBin
OPENGL_gl_LIBRARY:FILEPATH=/usr/X11R6/lib/libGL.dylib
OPENGL_INCLUDE_DIR:PATH=/usr/X11R6/include

After compiling I open up terminal and try the following using a python
interpreter:

import vtk

Here's what I get:

Python 2.5.1 (r251:54863, Nov 11 2008, 17:46:48)
[GCC 4.0.1 (Apple Inc. build 5465)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import vtk
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File
"/Library/Python/2.5/site-packages/VTK-5.2.1-py2.5.egg/vtk/__init__.py",
line 41, in <module>
    from common import *
  File
"/Library/Python/2.5/site-packages/VTK-5.2.1-py2.5.egg/vtk/common.py", line
7, in <module>
    from libvtkCommonPython import *
ImportError:
dlopen(/Library/Python/2.5/site-packages/VTK-5.2.1-py2.5.egg/vtk/libvtkCommonPython.so,
10): Library not loaded: libvtkCommonPythonD.5.2.dylib
  Referenced from:
/Library/Python/2.5/site-packages/VTK-5.2.1-py2.5.egg/vtk/libvtkCommonPython.so
  Reason: image not found


I'd appreciate any advice...


Regards,

-Preet
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20090225/b7bd8229/attachment.htm>


More information about the vtkusers mailing list