Hey all,<div><br></div><div>I've had a lot of trouble installing VTK with X11 (no cocoa or carbon) and python wrapping on OS X Leopard.</div><div><br></div><div>Here's what I change from defaults in CMakeCache.txt:</div>
<div><br></div><div>VTK_SHARED_LIBS: ON</div><div><br></div><div>VTK_USE_COCOA: OFF</div><div>VTK_USE_CARBON: OFF</div><div>VTK_USE_X: ON</div><div>VTK_USE_GUISUPPORT: ON</div><div>VTK_WRAP_PYTHON: OFF</div><div><span style="font-size: 10pt; "><span class="Apple-style-span" style="font-family: arial, helvetica, sans-serif;">CMAKE_INSTALL_PREFIX=/Users/preet/Development/VTKBin</span></span></div>
<div>OPENGL_gl_LIBRARY:FILEPATH=/usr/X11R6/lib/libGL.dylib<br></div><div>OPENGL_INCLUDE_DIR:PATH=/usr/X11R6/include<br></div><div><br></div><div>After compiling I open up terminal and try the following using a python interpreter:</div>
<div><br></div><div>import vtk</div><div><br></div><div>Here's what I get:</div><div><br></div><div><div>Python 2.5.1 (r251:54863, Nov 11 2008, 17:46:48) </div><div>[GCC 4.0.1 (Apple Inc. build 5465)] on darwin</div><div>
Type "help", "copyright", "credits" or "license" for more information.</div><div>>>> import vtk</div><div>Traceback (most recent call last):</div><div> File "<stdin>", line 1, in <module></div>
<div> File "/Library/Python/2.5/site-packages/VTK-5.2.1-py2.5.egg/vtk/__init__.py", line 41, in <module></div><div> from common import *</div><div> File "/Library/Python/2.5/site-packages/VTK-5.2.1-py2.5.egg/vtk/common.py", line 7, in <module></div>
<div> from libvtkCommonPython import *</div><div>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</div><div> Referenced from: /Library/Python/2.5/site-packages/VTK-5.2.1-py2.5.egg/vtk/libvtkCommonPython.so</div>
<div> Reason: image not found</div><div><br></div><div><br></div><div>I'd appreciate any advice... </div><div><br></div><div><br></div><div>Regards,</div><div><br></div><div>-Preet</div></div><div><div><br></div><div>
<br></div></div><div><br></div>