[vtkusers] Installing VTK with X11 and Python wrapping on OS X Leopard
preet.desai at gmail.com
Wed Mar 4 15:51:04 EST 2009
I'm sorry to keep bringing this up, but I haven't been able to solve the
problem. Does any one have any ideas?
On Fri, Feb 27, 2009 at 10:47 AM, Preet <preet.desai at gmail.com> wrote:
> I'm trying to use the toolkit found at this site:http://www.vmtk.org
> It requires X11, with carbon and cocoa disabled. I'm prepared to deal with
> shoddy performance... Id just like to get it working first =)
> On Fri, Feb 27, 2009 at 10:11 AM, Michael Jackson <
> mike.jackson at bluequartz.net> wrote:
>> I am curios as to why you are using X11 on OS X? I know everyone has their
>> reasons.. Existing toolkits, existing code base.. But if you are doing
>> python and vtk together you probably really want a carbon build as it will
>> most likely render a bit quicker and the Apple supplied X11 is morbidly slow
>> since they upgraded to a x.org.
>> If you continue to use X11 on OS X Leopard I would suggest you download
>> and install the http://xquartz.macosforge.org/downloads/X11-2.3.2.dmg
>> Release notes are here:
>> And the Apple X11 list can be found here.
>> Mike Jackson mike.jackson at bluequartz.net
>> BlueQuartz Software www.bluequartz.net
>> Principal Software Engineer Dayton, Ohio
>> On Feb 27, 2009, at 8:57 AM, Preet wrote:
>> 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
>>> 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:
>>> 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?
>>> Powered by www.kitware.com
>>> Visit other Kitware open-source projects at
>>> Please keep messages on-topic and check the VTK FAQ at:
>>> Follow this link to subscribe/unsubscribe:
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the vtkusers