[vtkusers] Can't compile VTK 4.4 on Mac OS X: vtkOpenGLRenderWindow.h:104: parse error before `)'

Chris Scharver scharver at evl.uic.edu
Sat Jan 17 17:39:10 EST 2004


On Jan 17, 2004, at 3:20 PM, Gordon Kindlmann wrote:

> Building object file vtkGraphicsFactory.o...
> c++ -o vtkGraphicsFactory.o    -Wno-deprecated -no-cpp-precomp 
> -I/usr/X11R6/include -I/Users/gk/vtk/VTK/Rendering -I/Users/gk/vtk/VTK 
> -I/Users/gk/vtk/VTK/Patented -I/Users/gk/vtk/VTK/Rendering 
> -I/Users/gk/vtk/VTK/IO -I/Users/gk/vtk/VTK/Imaging 
> -I/Users/gk/vtk/VTK/Graphics -I/Users/gk/vtk/VTK/Filtering 
> -I/Users/gk/vtk/VTK/Common -I/Users/gk/vtk/VTK/Common/Testing/Cxx 
> -I/Users/gk/vtk/VTK/Utilities/zlib -I/Users/gk/vtk/VTK/Utilities/jpeg 
> -I/Users/gk/vtk/VTK/Utilities/png -I/Users/gk/vtk/VTK/Utilities/tiff 
> -I/Users/gk/vtk/VTK/Utilities/expat 
> -I/Users/gk/vtk/VTK/Utilities/DICOMParser 
> -I/Users/gk/vtk/VTK/Utilities/freetype/include 
> -I/Users/gk/vtk/VTK/Utilities/freetype 
> -I/Users/gk/vtk/VTK/Utilities/ftgl/src 
> -I/Users/gk/vtk/VTK/Utilities/ftgl 
> -I/Users/gk/vtk/VTK/Rendering/tkInternals/tk84OSX -I/usr/X11R6/include 
> -I/Library/Frameworks/Tcl.framework/Versions/8.4/Headers 
> -I/Library/Frameworks/Tk.framework/Versions/8.4/Headers   
> -I/usr/X11R6/include  -c 
> /Users/gk/vtk/VTK/Rendering/vtkGraphicsFactory.cxx
> In file included from 
> /Users/gk/vtk/VTK/Rendering/vtkXOpenGLRenderWindow.h:25,
>                  from 
> /Users/gk/vtk/VTK/Rendering/vtkGraphicsFactory.cxx:61:
> /Users/gk/vtk/VTK/Rendering/vtkOpenGLRenderWindow.h:30:40: GL/gl.h: No 
> such file or directory

This looks like you may not have the X11 headers installed. The 
compiler cannot find gl.h, and it should be in 
/usr/X11R6/include/GL/gl.h. Can you check in /usr/X11R6/include to make 
sure that it's there? There is a separate installer to install the X11 
SDK and Headers. You'll need to make sure that both X11 and the X11 SDK 
are installed. You said that you're running 10.2.6, so I'm not sure if 
you can still download Apple's X11 beta. Otherwise you'll have to use 
something like fink to install XFree86.

Chris

--
Chris Scharver
Electronic Visualization Laboratory
The University of Illinois at Chicago
Ph: 312-996-3002   FAX: 312-413-7585
<http://www.evl.uic.edu/scharver/>




More information about the vtkusers mailing list