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

Preet preet.desai at gmail.com
Fri Feb 27 10:47:06 EST 2009


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 =)


Regards,

-Preet

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:
>
> http://xquartz.macosforge.org/trac/wiki/X112.3.2
>
> And the Apple X11 list can be found here.
>
> http://lists.apple.com/archives/x11-users/
>
> Cheers
> _________________________________________________________
> 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
>> 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
>> _______________________________________________
>> Powered by www.kitware.com
>>
>> Visit other Kitware open-source projects at
>> http://www.kitware.com/opensource/opensource.html
>>
>> Please keep messages on-topic and check the VTK FAQ at:
>> http://www.vtk.org/Wiki/VTK_FAQ
>>
>> Follow this link to subscribe/unsubscribe:
>> http://www.vtk.org/mailman/listinfo/vtkusers
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20090227/32090ce9/attachment.htm>


More information about the vtkusers mailing list