[vtkusers] VTK current dev, Mesa 7.5, OS X 10.6.3
Matthew Dillon
jotimaz at gmail.com
Tue May 18 19:16:08 EDT 2010
I am trying to build VTK for offscreen rendering on osx 10.6.3. I built mesa 7.5, and everything seems a-o-k with the install. When I build VTK with the following options:
if [ `uname -s` = Darwin ] ; then
LIB_SUFFIX=dylib
fi
cmake -DBUILD_SHARED_LIBS:BOOL=ON \
-DVTK_WRAP_PYTHON:BOOL=ON \
-DPYTHON_EXECUTABLE:FILEPATH=$SAGE_LOCAL/bin/python \
-DPYTHON_INCLUDE_PATH:PATH=$SAGE_LOCAL/include/python2.6 \
-DPYTHON_LIBRARY:FILEPATH=$SAGE_LOCAL/lib/python2.6/config/libpython2.6.$PY_LIB_SUFFIX \
-DPYTHON_SETUP_ARGS:STRING=--prefix=${CMAKE_INSTALL_PREFIX} \
-DVTK_USE_GUISUPPORT:BOOL=ON \
-DVTK_USE_DISPLAY:BOOL=ON \
-DVTK_USE_GL2PS:BOOL=ON \
-DVTK_USE_X:BOOL=ON \
-DVTK_USE_TK:BOOL=OFF \
-DBUILD_TESTING:BOOL=OFF \
-DCMAKE_INSTALL_PREFIX:PATH=$SAGE_LOCAL \
-DCMAKE_USE_RELATIVE_PATHS:BOOL=OFF \
-DVTK_USE_RPATH:BOOL=OFF \
-DVTK_OPENGL_HAS_OSMESA:BOOL=ON \
-DOSMESA_INCLUDE_DIR=$SAGE_LOCAL \
-DOSMESA_LIBRARY=$SAGE_LOCAL/lib/libOSMesa.7.5.$LIB_SUFFIX \
-DOPENGL_INCLUDE_DIR=$SAGE_LOCAL/include \
-DOPENGL_gl_LIBRARY=$SAGE_LOCAL/lib/libGL.1.5.$LIB_SUFFIX \
-DOPENGL_glu_LIBRARY=$SAGE_LOCAL/lib/libGLU.1.3.$LIB_SUFFIX \
-DVTK_USE_OFFSCREEN:BOOL=ON \
..
I get the following error at ~70% through the build process:
In file included from /Volumes/Users/matthew/src/femhub-mrd/spkg/standard/vtk-5.4.2.mrd.1/src/VTK/Rendering/vtkXOpenGLRenderWindow.cxx:41:
/Volumes/Users/matthew/src/femhub-mrd/local/include/GL/osmesa.h:120: error: expected initializer before ‘OSMesaCreateContext’
/Volumes/Users/matthew/src/femhub-mrd/local/include/GL/osmesa.h:133: error: expected initializer before ‘OSMesaCreateContextExt’
/Volumes/Users/matthew/src/femhub-mrd/local/include/GL/osmesa.h:143: error: expected initializer before ‘OSMesaDestroyContext’
/Volumes/Users/matthew/src/femhub-mrd/local/include/GL/osmesa.h:175: error: expected initializer before ‘OSMesaMakeCurrent’
/Volumes/Users/matthew/src/femhub-mrd/local/include/GL/osmesa.h:185: error: expected initializer before ‘OSMesaGetCurrentContext’
/Volumes/Users/matthew/src/femhub-mrd/local/include/GL/osmesa.h:203: error: expected initializer before ‘OSMesaPixelStore’
/Volumes/Users/matthew/src/femhub-mrd/local/include/GL/osmesa.h:219: error: expected initializer before ‘OSMesaGetIntegerv’
/Volumes/Users/matthew/src/femhub-mrd/local/include/GL/osmesa.h:234: error: expected initializer before ‘OSMesaGetDepthBuffer’
/Volumes/Users/matthew/src/femhub-mrd/local/include/GL/osmesa.h:250: error: expected initializer before ‘OSMesaGetColorBuffer’
/Volumes/Users/matthew/src/femhub-mrd/local/include/GL/osmesa.h:267: error: expected initializer before ‘OSMesaGetProcAddress’
/Volumes/Users/matthew/src/femhub-mrd/local/include/GL/osmesa.h:276: error: expected initializer before ‘OSMesaColorClamp’
/Volumes/Users/matthew/src/femhub-mrd/spkg/standard/vtk-5.4.2.mrd.1/src/VTK/Rendering/vtkXOpenGLRenderWindow.cxx: In member function ‘void vtkXOpenGLRenderWindow::CreateOffScreenWindow(int, int)’:
/Volumes/Users/matthew/src/femhub-mrd/spkg/standard/vtk-5.4.2.mrd.1/src/VTK/Rendering/vtkXOpenGLRenderWindow.cxx:829: error: ‘OSMesaCreateContext’ was not declared in this scope
/Volumes/Users/matthew/src/femhub-mrd/spkg/standard/vtk-5.4.2.mrd.1/src/VTK/Rendering/vtkXOpenGLRenderWindow.cxx: In member function ‘void vtkXOpenGLRenderWindow::DestroyOffScreenWindow()’:
/Volumes/Users/matthew/src/femhub-mrd/spkg/standard/vtk-5.4.2.mrd.1/src/VTK/Rendering/vtkXOpenGLRenderWindow.cxx:971: error: ‘OSMesaDestroyContext’ was not declared in this scope
/Volumes/Users/matthew/src/femhub-mrd/spkg/standard/vtk-5.4.2.mrd.1/src/VTK/Rendering/vtkXOpenGLRenderWindow.cxx: In member function ‘virtual void vtkXOpenGLRenderWindow::MakeCurrent()’:
/Volumes/Users/matthew/src/femhub-mrd/spkg/standard/vtk-5.4.2.mrd.1/src/VTK/Rendering/vtkXOpenGLRenderWindow.cxx:1320: error: ‘OSMesaMakeCurrent’ was not declared in this scope
/Volumes/Users/matthew/src/femhub-mrd/spkg/standard/vtk-5.4.2.mrd.1/src/VTK/Rendering/vtkXOpenGLRenderWindow.cxx: In member function ‘virtual bool vtkXOpenGLRenderWindow::IsCurrent()’:
/Volumes/Users/matthew/src/femhub-mrd/spkg/standard/vtk-5.4.2.mrd.1/src/VTK/Rendering/vtkXOpenGLRenderWindow.cxx:1373: error: ‘OSMesaGetCurrentContext’ was not declared in this scope
make[2]: *** [Rendering/CMakeFiles/vtkRendering.dir/vtkXOpenGLRenderWindow.cxx.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [Rendering/CMakeFiles/vtkRendering.dir/all] Error 2
make: *** [all] Error 2
Error building VTK
Is this something with VTK, or something with Mesa? I really appreciate the help, if anyone has any ideas I would be very appreciative! Thanks, have a great day.
Matthew Dillon
More information about the vtkusers
mailing list