[vtkusers] compiling vtk 4.2 on os x 10.4.3

Sean McBride sean at rogue-research.com
Thu Jan 5 15:07:28 EST 2006


On 2006-01-05 14:55, Ryan Glover said:

>A user who has it working said he was able to get 4.2 to work so i
>tired the same.  i tried 4.4 first and also got this error.

The fixes are in 5, not 4.4.  For working on the Mac, especially Cocoa,
I strongly recommend vtk 5.

>The code for the vtk file (vtkCocoaGLView.h) is:
>
>@interface vtkCocoaGLView : NSOpenGLView
>{
>    enum NSOpenGLPixelFormatAttribute bitsPerPixel, depthSize;
>
>    @private
>    vtkCocoaRenderWindow *myVTKRenderWindow;
>    vtkCocoaRenderWindowInteractor *myVTKRenderWindowInteractor;
>}
>
>I will try changing the apple header and see what happens.  You say
>just to scrub the 'enum' from the code?

Don't change the Apple header, the bug is in vtk, change this line:

enum NSOpenGLPixelFormatAttribute bitsPerPixel, depthSize;

to

NSOpenGLPixelFormatAttribute bitsPerPixel, depthSize;

That should do it.

-- 
____________________________________________________________
Sean McBride, B. Eng                 sean at rogue-research.com
Rogue Research                        www.rogue-research.com 
Mac Software Developer              Montréal, Québec, Canada





More information about the vtkusers mailing list