2008-03-24 19:42:15 Getting VTK 5 to build on Leopard
In order to build 5.0.4 from source on my 10.5 / Leopard machine, I found a had to edit the file Rendering/vtkCocoaRenderWindow.mm in three places, because GLint is not a long int. So just change:
( c )
  1  float pfd;

( c )
  1  GLint pfd;

(on lines 223, 268 and 287) and it builds successfully from there.

Use ccmake instead of cmake (also avoiding needing to install cmake), since it gives a nice menu driven way to set things up (and making it easy to turn on things like Python integration, parallelization, and remember to turn off CARBON support and turn on COCOA).

To finally get the example VTK stuff to work, I had to add /usr/local/lib/python2.5/site-packages to my PYTHONPATH, making the whole thing, in my case:
  1  setenv PYTHONPATH "/usr/local/lib/python2.5/site-packages"

in tcsh-talk. From there a simple "from vtk import *" and you're ready to explore.
  • Carlos (Sun, July 13th, 2008, 7:16pm UTC)
    Helpful comment. In my case I changed int pdf; for GLint pdf; and it worked great!

Leave a comment