[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:

Variable Name: OPENGL_INCLUDE_PATH
Description:   What is the path where the file GL/gl.h can be found
Current Value: 
/System/Library/Frameworks/OpenGL.framework/Versions/A/Headers
New Value (Enter to keep current value):

Variable Name: OPENGL_LIBRARY
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:

./Mace
pure virtual method called
Abort

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

Thanks,

Raphael Sebbe

#0  0x7001a70c in kill ()
#1  0x7006f990 in abort ()
#2  0x03c9caa8 in __terminate () at 
/Users/raf/Desktop/VTK/VTK/Rendering/vtkRenderingInstantiator8.cxx:15
#3  0x03c9a120 in __pure_virtual () at 
/Users/raf/Desktop/VTK/VTK/Rendering/vtkRenderingInstantiator8.cxx:15
#4  0x03c7cfd4 in vtkOpenGLPolyDataMapper::ReleaseGraphicsResources 
(this=0x19d070, win=0x0) at 
/Users/raf/Desktop/VTK/VTK/Rendering/vtkOpenGLPolyDataMapper.cxx:69
#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 
/Users/raf/Desktop/VTK/VTK/Rendering/vtkOpenGLRenderer.cxx:334
#9  0x00c42248 in vtkObject::UnRegister (this=0x1995f0, o=0x1999f0) at 
/Users/raf/Desktop/VTK/VTK/Common/vtkObject.cxx:253
#10 0x00bac4a8 in vtkCollection::DeleteElement (this=0x0, e=0x1976b0) at 
/Users/raf/Desktop/VTK/VTK/Common/vtkCollection.cxx:57
#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 
/Users/raf/Desktop/VTK/VTK/Rendering/vtkRendererCollection.h:57
#13 0x00c42248 in vtkObject::UnRegister (this=0x1999f0, o=0x0) at 
/Users/raf/Desktop/VTK/VTK/Common/vtkObject.cxx:253
#14 0x00c41190 in vtkObject::Delete (this=0x0) at 
/Users/raf/Desktop/VTK/VTK/Common/vtkObject.cxx:125
#15 0x03c09f0c in vtkRenderWindow::~vtkRenderWindow (this=0x1998a0, 
__in_chrg=3) at 
/Users/raf/Desktop/VTK/VTK/Rendering/vtkRenderWindow.cxx:91
#16 0x03c8f37c in _._21vtkQuartzRenderWindow (this=0x1998a0, 
__in_chrg=3) at 
/Users/raf/Desktop/VTK/VTK/Rendering/vtkQuartzRenderWindow.mm:98
#17 0x00c42248 in vtkObject::UnRegister (this=0x1998a0, o=0x199a80) at 
/Users/raf/Desktop/VTK/VTK/Common/vtkObject.cxx:253
#18 0x03c0cf8c in vtkRenderWindow::UnRegister (this=0x1998a0, 
o=0x199a80) at 
/Users/raf/Desktop/VTK/VTK/Rendering/vtkRenderWindow.cxx:1013
#19 0x03c1345c in vtkRenderWindowInteractor::SetRenderWindow 
(this=0x199a80, aren=0x0) at 
/Users/raf/Desktop/VTK/VTK/Rendering/vtkRenderWindowInteractor.cxx:125
#20 0x03c133f8 in vtkRenderWindowInteractor::UnRegister (this=0x199a80, 
o=0x0) at 
/Users/raf/Desktop/VTK/VTK/Rendering/vtkRenderWindowInteractor.cxx:109
#21 0x00c41190 in vtkObject::Delete (this=0x0) at 
/Users/raf/Desktop/VTK/VTK/Common/vtkObject.cxx:125
#22 0x000038d4 in main (argc=1, argv=0xbffff938) at 
/Users/raf/Desktop/VTK/VTK/Graphics/Testing/Cxx/Mace.cxx:81
#23 0x00002b70 in _start ()
#24 0x000029a0 in start ()




More information about the vtkusers mailing list