[vtkusers] Errors Building VTK on OS X--with vtkRendering
Neil Gajare
nerajag at gmail.com
Fri Jun 1 17:51:09 EDT 2007
Hi,
I am attempting to build VTK on my powerpc, and am having trouble with
the following errors. They seem to be related to vtkRendering. My
CMAKE configuration was set to the following parameters:
USE_X on
USE_CARBON off
USE_COCOA off
USE_PYTHON on
I checked, and the OpenGL library directory was correctly set in the
CMAKE parameters.
The errors were as such...
In file included from
/Users/neil/local/tk/vtk/Rendering/vtkOpenGLPolyDataMapper.h:26,
from
/Users/neil/local/tk/vtk/Rendering/vtkGraphicsFactory.cxx:28:
/Users/neil/local/tk/vtk/Rendering/vtkOpenGL.h:24:43: error: GL/gl.h:
No such file or directory
/Users/neil/local/tk/vtk/Rendering/vtkOpenGLPolyDataMapper.h:87:
error: 'GLenum' has not been declared
/Users/neil/local/tk/vtk/Rendering/vtkOpenGLPolyDataMapper.h:98:
error: 'GLenum' has not been declared
/Users/neil/local/tk/vtk/Rendering/vtkOpenGLRenderWindow.h:101: error:
'GLuint' has not been declared
make[2]: *** [Rendering/CMakeFiles/vtkRendering.dir/vtkGraphicsFactory.o]
Error 1
make[1]: *** [Rendering/CMakeFiles/vtkRendering.dir/all] Error 2
make: *** [all] Error 2
Previously, I tried to build with USE_COCOA ON and many more errors
with vtkRendering occured. These errors were specifically related to
vtkgl.h. Some examples follow:
.../Rendering/vtkgl.h error: 'Display' was not declared in this scope
.../Rendering/vtkgl.h error: 'dpy' was not declared in this scope
.../Rendering/vtkgl.h error: expected primary-expression before "drawable"
.../Rendering/vtkgl.h error: expected primary-expression before "target_sbc"
I hope that someone familiar with Macs can shed some light on these errors.
Regards,
Neil Gajare
More information about the vtkusers
mailing list