[vtkusers] building VTK with MesaGL

Stanton, Eric T etstant at sandia.gov
Wed Dec 3 10:21:17 EST 2003


I want to enable software rendering for ParaView/VTK so that they can be
executed remotely and rendered on the remote machine. 

I installed MesaGL on my Solaris 8 computer but when I try to compile VTK I
receive the following error. I found a similar posting in the email archive
but could not find an answer to it. If you have run into this or know what
my problem is please let me know. Thanks a lot.

Eric 




# make
.
.
.
.

`cmake.check_depends' is up to date.
`cmake.depends' is up to date.
/usr/local/src/VTK/Rendering: building default_target
`cmake.depends' is up to date.
`cmake.check_depends' is up to date.
`cmake.depends' is up to date.
Building object file vtkXOpenGLRenderWindow.o...
In file included from
/usr/local/src/VTK/Rendering/vtkXOpenGLRenderWindow.cxx:36:
/usr/local/src/Mesa-5.0.2/include/GL/osmesa.h:119: error: syntax error
before `
   GLAPIENTRY'
/usr/local/src/Mesa-5.0.2/include/GL/osmesa.h:132: error: syntax error
before `
   GLAPIENTRY'
/usr/local/src/Mesa-5.0.2/include/GL/osmesa.h:142: error: syntax error
before `
   void'
/usr/local/src/Mesa-5.0.2/include/GL/osmesa.h:174: error: syntax error
before `
   GLAPIENTRY'
/usr/local/src/Mesa-5.0.2/include/GL/osmesa.h:184: error: syntax error
before `
   GLAPIENTRY'
/usr/local/src/Mesa-5.0.2/include/GL/osmesa.h:202: error: syntax error
before `
   void'
/usr/local/src/Mesa-5.0.2/include/GL/osmesa.h:218: error: syntax error
before `
   void'
/usr/local/src/Mesa-5.0.2/include/GL/osmesa.h:233: error: syntax error
before `
   GLAPIENTRY'
/usr/local/src/Mesa-5.0.2/include/GL/osmesa.h:249: error: syntax error
before `
   GLAPIENTRY'
/usr/local/src/Mesa-5.0.2/include/GL/osmesa.h:260: error: syntax error
before `
   void'
/usr/local/src/VTK/Rendering/vtkXOpenGLRenderWindow.cxx: In member function
`
   virtual void vtkXOpenGLRenderWindow::WindowInitialize()':
/usr/local/src/VTK/Rendering/vtkXOpenGLRenderWindow.cxx:453: error: `
   OSMesaCreateContext' undeclared (first use this function)
/usr/local/src/VTK/Rendering/vtkXOpenGLRenderWindow.cxx:453: error: (Each 
   undeclared identifier is reported only once for each function it appears 
   in.)
/usr/local/src/VTK/Rendering/vtkXOpenGLRenderWindow.cxx: In member function
`
   virtual void vtkXOpenGLRenderWindow::Finalize()':
/usr/local/src/VTK/Rendering/vtkXOpenGLRenderWindow.cxx:599: error: `
   OSMesaDestroyContext' undeclared (first use this function)
/usr/local/src/VTK/Rendering/vtkXOpenGLRenderWindow.cxx: In member function
`
   virtual void vtkXOpenGLRenderWindow::SetSize(int, int)':
/usr/local/src/VTK/Rendering/vtkXOpenGLRenderWindow.cxx:786: error: `
   OSMesaDestroyContext' undeclared (first use this function)
/usr/local/src/VTK/Rendering/vtkXOpenGLRenderWindow.cxx: In member function
`
   virtual void vtkXOpenGLRenderWindow::MakeCurrent()':
/usr/local/src/VTK/Rendering/vtkXOpenGLRenderWindow.cxx:915: error: `
   OSMesaMakeCurrent' undeclared (first use this function)
/usr/local/src/VTK/Rendering/vtkXOpenGLRenderWindow.cxx: In member function
`
   virtual void vtkXOpenGLRenderWindow::SetOffScreenRendering(int)':
/usr/local/src/VTK/Rendering/vtkXOpenGLRenderWindow.cxx:1423: error: `
   OSMesaDestroyContext' undeclared (first use this function)
*** Error code 1
The following command caused the error:
/usr/local/bin/g++ -o vtkXOpenGLRenderWindow.o -DvtkRendering_EXPORTS
-Wno-deprecated -I/usr/openwin/share/include -fPIC
-I/usr/local/src/VTK/Rendering -I/usr/local/src/VTK
-I/usr/local/src/VTK/Parallel -I/usr/local/src/VTK/Hybrid
-I/usr/local/src/VTK/Rendering -I/usr/local/src/VTK/IO
-I/usr/local/src/VTK/Imaging -I/usr/local/src/VTK/Graphics
-I/usr/local/src/VTK/Filtering -I/usr/local/src/VTK/Common
-I/usr/local/src/VTK/Common/Testing/Cxx -I/usr/local/src/VTK/Utilities/zlib
-I/usr/local/src/VTK/Utilities/jpeg -I/usr/local/src/VTK/Utilities/png
-I/usr/local/src/VTK/Utilities/tiff -I/usr/local/src/VTK/Utilities/expat
-I/usr/local/src/VTK/Utilities/DICOMParser
-I/usr/local/src/VTK/Utilities/freetype/include
-I/usr/local/src/VTK/Utilities/freetype
-I/usr/local/src/VTK/Utilities/ftgl/src -I/usr/local/src/VTK/Utilities/ftgl
-I/usr/local/src/Mesa-5.0.2/include -I/usr/local/include
-I/usr/openwin/share/include  -c
/usr/local/src/VTK/Rendering/vtkXOpenGLRenderWindow.cxx
make: Fatal error: Command failed for target `vtkXOpenGLRenderWindow.o'
Current working directory /usr/local/src/VTK/Rendering
*** Error code 1
The following command caused the error:
make  all
make: Fatal error: Command failed for target `default_target'
Current working directory /usr/local/src/VTK/Rendering
*** Error code 1
The following command caused the error:
cd /usr/local/src/VTK/Rendering; make default_target
make: Fatal error: Command failed for target `default_target_Rendering'
Current working directory /usr/local/src/VTK
*** Error code 1
The following command caused the error:
make  all
make: Fatal error: Command failed for target `default_target'
# 




More information about the vtkusers mailing list