[vtkusers] Running VTK on Mac OS X, II

Raphael Sebbe sebbe at multitel.be
Tue Jun 18 11:34:52 EDT 2002

Hi all,

There's some progress since my last post, but I can't still get it to 
work. Here is what I did so far:

Description:   What is the path where the file GL/gl.h can be found
Current Value: 
New Value (Enter to keep current value):

Description:   Where can the GL library be found
Current Value: -framework OpenGL -framework AppKit
New Value (Enter to keep current value):

Variable Name: VTK_USE_QUARTZ
Description:   Build classes for the Quartz window manager
Current Value: ON

When running Mace from VTK/bin, I now see a window open with 3D content 
(spiky ball, or something), but it immediately closes saying:

pure virtual method called

I give a gdb backtrace at the end of the message.

More, I saw from a previous post it was somehow possible to configure 
whether to use the Carbon or Cocoa back-end from CMakeCache.txt, but I 
only saw VTK_USE_QUARTZ:BOOL=ON in it that seems to be relevant. Could 
someone give some more specifics on this (name and value of the flag) ?


Raphael Sebbe

#0  0x7001a70c in kill ()
#1  0x7006f990 in abort ()
#2  0x03c9caa8 in __terminate () at 
#3  0x03c9a120 in __pure_virtual () at 
#4  0x03c7cfd4 in vtkOpenGLPolyDataMapper::ReleaseGraphicsResources 
(this=0x19d070, win=0x0) at 
#5  0x03b6eef0 in vtkActor::ReleaseGraphicsResources (this=0x19d2c0, 
win=0x0) at /Users/raf/Desktop/VTK/VTK/Rendering/vtkActor.cxx:221
#6  0x03c1d980 in vtkRenderer::SetRenderWindow (this=0x1995f0, 
renwin=0x0) at /Users/raf/Desktop/VTK/VTK/Rendering/vtkRenderer.cxx:901
#7  0x03c1a8c0 in vtkRenderer::~vtkRenderer (this=0x1995f0, __in_chrg=3) 
at /Users/raf/Desktop/VTK/VTK/Rendering/vtkRenderer.cxx:84
#8  0x03c86d90 in vtkOpenGLRenderer::~vtkOpenGLRenderer (this=0x1995f0, 
__in_chrg=3) at 
#9  0x00c42248 in vtkObject::UnRegister (this=0x1995f0, o=0x1999f0) at 
#10 0x00bac4a8 in vtkCollection::DeleteElement (this=0x0, e=0x1976b0) at 
#11 0x00bac43c in vtkCollection::~vtkCollection (this=0x1999f0, 
__in_chrg=3) at /Users/raf/Desktop/VTK/VTK/Common/vtkCollection.cxx:47
#12 0x03c23354 in vtkRendererCollection::~vtkRendererCollection 
(this=0x0, __in_chrg=0) at 
#13 0x00c42248 in vtkObject::UnRegister (this=0x1999f0, o=0x0) at 
#14 0x00c41190 in vtkObject::Delete (this=0x0) at 
#15 0x03c09f0c in vtkRenderWindow::~vtkRenderWindow (this=0x1998a0, 
__in_chrg=3) at 
#16 0x03c8f37c in _._21vtkQuartzRenderWindow (this=0x1998a0, 
__in_chrg=3) at 
#17 0x00c42248 in vtkObject::UnRegister (this=0x1998a0, o=0x199a80) at 
#18 0x03c0cf8c in vtkRenderWindow::UnRegister (this=0x1998a0, 
o=0x199a80) at 
#19 0x03c1345c in vtkRenderWindowInteractor::SetRenderWindow 
(this=0x199a80, aren=0x0) at 
#20 0x03c133f8 in vtkRenderWindowInteractor::UnRegister (this=0x199a80, 
o=0x0) at 
#21 0x00c41190 in vtkObject::Delete (this=0x0) at 
#22 0x000038d4 in main (argc=1, argv=0xbffff938) at 
#23 0x00002b70 in _start ()
#24 0x000029a0 in start ()

More information about the vtkusers mailing list