[vtkusers] Can't compile VTK 4.4 on Mac OS X: vtkOpenGLRenderWindow.h:104: parse error before `)'
Gordon Kindlmann
gk at cs.utah.edu
Sat Jan 17 16:20:14 EST 2004
hi,
Here's what I tried:
Got Cmake 1.8.3:
<http://www.cmake.org/files/v1.8/cmake-1.8.3-osx.dmg>
Got a tarball CVS release tag 4.4:
<http://www.vtk.org/cgi-bin/viewcvs.cgi/
?cvsroot=VTK&only_with_tag=release-4-4>
and clicked on "Download Tarball"
In a shell:
setenv PATH
/bin:/sbin:/usr/bin:/usr/sbin:/usr/X11R6/bin:/usr/local/bin
gunzip -c cvs_root.tar.gz | tar xvf -
cd VTK
ccmake .
Then typed "c", and set things up as follows:
BUILD_EXAMPLES *OFF
BUILD_SHARED_LIBS *OFF
CMAKE_BUILD_TYPE *
CMAKE_INSTALL_PREFIX */usr/local
VTK_DATA_ROOT *VTK_DATA_ROOT-NOTFOUND
VTK_USE_CARBON *OFF
VTK_USE_COCOA *OFF
VTK_USE_HYBRID *OFF
VTK_USE_PARALLEL *OFF
VTK_USE_PATENTED *ON
VTK_USE_RENDERING *ON
VTK_USE_X *ON
VTK_WRAP_JAVA *OFF
VTK_WRAP_PYTHON *OFF
VTK_WRAP_TCL *ON
CMAKE_BACKWARDS_COMPATIBILITY 1.8
and then typed "t" to set:
CMAKE_VERBOSE_MAKEFILE *ON
and then typed, "t", "c", at which point I got this error:
CMake Error: This project requires some variables to be set,
and cmake can not find them.
Please set the following variables:
OPENGL_INCLUDE_DIR (ADVANCED)
so based on what I found at:
<http://public.kitware.com/pipermail/vtkusers/2003-November/021051.html>
I set:
OPENGL_INCLUDE_DIR /usr/X11R6/include
and then typed, "t", "c", "g", and then, "make". Some time later:
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
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:104: `GLuint' was
not
declared in this scope
/Users/gk/vtk/VTK/Rendering/vtkOpenGLRenderWindow.h:104: parse error
before `)'
token
make[3]: *** [vtkGraphicsFactory.o] Error 1
make[2]: *** [default_target] Error 2
make[1]: *** [default_target_Rendering] Error 2
make: *** [default_target] Error 2
Gordon
More information about the vtkusers
mailing list