[vtkusers] cocoa sample program

Ryan Glover prionscientific at gmail.com
Fri Jan 6 01:24:36 EST 2006


Hello,

I have been trying to get this sample cocoa vtk app to work (available
at this bug http://www.vtk.org/Bug/bug.php?op=show&bugid=2596&pos=15 )
and I can't seem to make it happen.  I am using xcode2.2 and i have
vtk5.0.1 and i have the dynamic libraries and the headers copied over.
 I also changed User Header Search Paths and Library Search Paths as
instructed in the comment at the bottom of the page.  When I build I
still raise 52 errors.  49 of them seem to be related to the classes
created for the example, so I assume that something isn't being wired
up properly.

Any advice?  Sorry for these noob questions.

Many thanks,
Rg



Here are the errors:

vtkCocoaGLView.h:34: error: forward declaration of 'struct
vtkCocoaRenderWindowInteractor'
vtkCocoaRenderWindow.h:39: error: invalid function declaration
vtkCocoaRenderWindowInteractor.h:32: error: invalid function declaration
VTKView.h:22: error: expected `;' before '*' token
VTKView.h:22: error: ISO C++ forbids declaration of 'vtkRenderWindow'
with no type
VTKView.h:23: error: ISO C++ forbids declaration of 'vtkRenderer' with no type
VTKView.h:23: error: expected `;' before '*' token
VTKView.h:24: error: ISO C++ forbids declaration of
'vtkRenderWindowInteractor' with no type
VTKView.h:24: error: expected `;' before '*' token
VTKView.h:50: error: expected `;' before '*' token
VTKView.h:50: error: expected type-specifier before 'vtkRenderer'
VTKView.h:50: error: expected `)' before 'vtkRenderer'
VTKView.mm:10: error: vtkProperty.h: No such file or directory
VTKView.mm:11: error: vtkActor.h: No such file or directory
VTKView.mm:12: error: vtkPolyData.h: No such file or directory
VTKView.mm:13: error: vtkPolyDataMapper.h: No such file or directory
VTKView.mm:14: error: vtkInteractorStyleTrackballCamera.h: No such
file or directory
VTKView.mm:15: error: vtkRenderWindowInteractor.h: No such file or directory
VTKView.mm:16: error: vtkRenderer.h: No such file or directory
VTKView.mm:17: error: vtkOpenGLRenderWindow.h: No such file or directory
VTKView.mm:18: error: vtkCommand.h: No such file or directory
VTKView.mm:19: error: vtkCamera.h: No such file or directory
VTKView.mm:23: error: vtkRenderWindow.h: No such file or directory
VTKView.mm:30: error: '_renderer' was not declared in this scope
VTKView.mm:30: error: 'New' was not declared in this scope
VTKView.mm:30: error: 'vtkRenderer' has not been declared
VTKView.mm:31: error: 'vtkRenderWindow' has not been declared
VTKView.mm:31: error: '_cocoaRenderWindow' was not declared in this scope
VTKView.mm:32: error: '_interactor' was not declared in this scope
VTKView.mm:32: error: 'vtkRenderWindowInteractor' has not been declared
VTKView.mm:48: error: '_interactor' was not declared in this scope
VTKView.mm:51: error: 'New' was not declared in this scope
VTKView.mm:51: error: 'vtkInteractorStyleTrackballCamera' is not a
class or namespace
VTKView.mm:51: error: 'trackball' was not declared in this scope
VTKView.mm:51: error: 'vtkInteractorStyleTrackballCamera' was not
declared in this scope
VTKView.mm:52: error: invalid use of undefined type 'struct
vtkCocoaRenderWindowInteractor'
VTKView.mm:60: error: '_interactor' was not declared in this scope
VTKView.mm:61: error: '_renderer' was not declared in this scope
VTKView.mm:62: error: '_cocoaRenderWindow' was not declared in this scope
VTKView.mm:67: error: expected `{' before '*' token
VTKView.mm:67: error: expected `)' before 'vtkRenderer'
VTKView.mm:67: error: expected `;' before ')' token
VTKView.mm:67: error: expected primary-expression before ')' token
VTKView.mm:67: error: expected type-specifier before 'vtkRenderer'
VTKView.mm:67: error: return type '<type error>' is incomplete
VTKView.mm:71: error: expected `;' before '{' token
VTKView.mm:71: error: 'removeAllActors' was not declared in this scope
VTKView.mm:81: error: expected `;' before ':' token
VTKView.mm:81: error: 'rightMouseDown' was not declared in this scope
VTKView.mm:121: error: expected `;' before ':' token
VTKView.mm:121: error: 'scrollWheel' was not declared in this scope
VTKView.mm:142: warning: control reaches end of non-void function
VTKView.mm:142: warning: method definition for '-removeAllActors' not found
VTKView.mm:142: warning: incomplete implementation of class 'VTKView'
VTKView.mm:142: error: expected `}' before 'end'



More information about the vtkusers mailing list