[vtkusers] vtk4.2 compile problem with VTK_OPENGL_HAS_OSMESA

Koichiro Suzuki suz at mito.ssd.ssg.fujitsu.com
Tue Aug 2 09:51:28 EDT 2005


Hello, all

 I'm trying to make VTK4.2 with VTK_OPEN_GL_HAS_OSMESA option.
 But the following error occurres.

In file included from /home/suz/paraview-2.0.3/VTK/Rendering/vtkXOpenGLRenderWindow.cxx:33:^M
/usr/include/GL/osmesa.h:120: error: syntax error before `(' token^M
/usr/include/GL/osmesa.h:133: error: syntax error before `(' token^M
/usr/include/GL/osmesa.h:143: error: syntax error before `(' token^M
/usr/include/GL/osmesa.h:175: error: syntax error before `(' token^M
/usr/include/GL/osmesa.h:185: error: syntax error before `(' token^M
/usr/include/GL/osmesa.h:203: error: syntax error before `(' token^M
/usr/include/GL/osmesa.h:219: error: syntax error before `(' token^M
/usr/include/GL/osmesa.h:234: error: syntax error before `(' token^M
/usr/include/GL/osmesa.h:250: error: syntax error before `(' token^M
/usr/include/GL/osmesa.h:261: error: syntax error before `(' token^M

 ccmake's flags are following..

 OPENGL_INCLUDE_DIR               /usr/share/doc/NVIDIA_GLX-1.0/include
 OPENGL_gl_LIBRARY                /usr/lib64/libMesaGL.so
 OPENGL_glu_LIBRARY               /usr/lib64/libMesaGLU.so
 OPENGL_xmesa_INCLUDE_DIR         /usr/include
 OSMESA_INCLUDE_DIR               /usr/include
 OSMESA_LIBRARY                   /usr/lib64/libOSMesa.so

 When the following flags are specified, the same error occurrs
 
 OPENGL_INCLUDE_DIR               /usr/share/doc/NVIDIA_GLX-1.0/include
 OPENGL_gl_LIBRARY                /usr/lib64/libMesaGL.so
 OPENGL_glu_LIBRARY               /usr/lib64/libMesaGLU.so
 OPENGL_xmesa_INCLUDE_DIR         /usr/local/Mesa-6.3/include
 OSMESA_INCLUDE_DIR               /usr/local/Mesa-6.3/include
 OSMESA_LIBRARY                   /usr/local/Mesa-6.3/lib64/libOSMesa.so

 My machine is SuSE9.3(AMD64).

 I want to use VTK with OffScreen-mode.
 If anyone knows good ideas, please tell me.

 Best regards..

---
 Koichiro Suzuki
 suz at mito.ssd.ssg.fujitsu.com





More information about the vtkusers mailing list