[vtkusers] More on: What version to use with redhat 7.0 and VTK3.1.2?

Berk Geveci berk.geveci at kitware.com
Tue Oct 3 13:59:01 EDT 2000


	I don't think this has anything to do with Redhat. For some reason,
	MESA is not defined (look at lines 76-78 in vtkMesaRenderWindow.h,
	the instance variable OffScreenContextId is surrounded by ifdefs).
	There are three possible solutions:
	1) Obtain the mesa you were using before,
	2) Try to compile without VTK_USE_MESA (configure without --with-mesa).
	If you have the GL include files in /usr/include or /usr/X11R6/include
	directory, you will have a vanilla opengl configuration and that
	might work,
	3) Obtain a nightly release, in the version (from the cvs tree) I am
using,
	the relevant lines in vtkMesaRenderWindow.h look like this:

	// If mesa is not defined it means that vtk was configured with-mesa
	// but found non-mesa header files, so define OffScreenContextId as
	// a void*, so this class will compile anyway.
	#ifdef MESA
	  OSMesaContext OffScreenContextId;
	#else
	  void* OffScreenContextId;
	#endif
	
	Good luck.
	

Miguel Angel Martin Fernandez wrote:
> 
> I'm thinking you're right with the information about redhat 7.0.
> 
> I've been trying to compile VTK 3.1 with tcl/tk 8.0.5 and the version of
> Mesa with redhat 7.0, that is 3.3.5 (I think it isn't stable), and I
> obtain this error:
> 
> c++  -g -O2 -fPIC -DVTK_USE_PTHREADS -D_HP_NO_FAST_MACROS -DHAVE_LIMITS_H
> -DHAVE
> _UNISTD_H -I.  -I. -I./../graphics -DVTK_USE_GRAPHICS -I./../imaging
> -DVTK_USE_I
> MAGING -I./../patented -DVTK_USE_PATENTED -I./../contrib -DVTK_USE_CONTRIB
> -I/u
> sr/include -DVTK_USE_MESA   -I/usr/X11R6/include  -I./../common
> -I/usr/local/tk8
> .0.5/generic -I/usr/local/tcl8.0.5/generic   -c vtkMesaRenderWindow.cxx -o
> vtkMe
> saRenderWindow.o
> vtkMesaRenderWindow.cxx: In method
> `vtkMesaRenderWindow::vtkMesaRenderWindow ()':
> vtkMesaRenderWindow.cxx:159: `class vtkMesaRenderWindow' has no member
> named `OffScreenContextId'
> vtkMesaRenderWindow.cxx: In method
> `vtkMesaRenderWindow::~vtkMesaRenderWindow ()':
> vtkMesaRenderWindow.cxx:184: `class vtkMesaRenderWindow' has no member
> named `OffScreenContextId'
> vtkMesaRenderWindow.cxx:229: `class vtkMesaRenderWindow' has no member
> named `OffScreenContextId'
> vtkMesaRenderWindow.cxx: In method `void vtkMesaRenderWindow::Start
> ()':
> vtkMesaRenderWindow.cxx:253: `class vtkMesaRenderWindow' has no member
> named `OffScreenContextId'
> vtkMesaRenderWindow.cxx: In method `void
> vtkMesaRenderWindow::Initialize ()':
> vtkMesaRenderWindow.cxx:518: `class vtkMesaRenderWindow' has no member
> named `OffScreenContextId'
> vtkMesaRenderWindow.cxx: In method `void
> vtkMesaRenderWindow::WindowRemap ()':
> vtkMesaRenderWindow.cxx:635: `class vtkMesaRenderWindow' has no member
> named `OffScreenContextId'
> vtkMesaRenderWindow.cxx: In method `void vtkMesaRenderWindow::SetSize
> (int, int)':
> vtkMesaRenderWindow.cxx:676: `class vtkMesaRenderWindow' has no member
> named `OffScreenContextId'
> vtkMesaRenderWindow.cxx: In method `void vtkMesaRenderWindow::PrintSelf
> (ostream &, vtkIndent)':
> vtkMesaRenderWindow.cxx:758: `class vtkMesaRenderWindow' has no member
> named `OffScreenContextId'
> vtkMesaRenderWindow.cxx: In method `void
> vtkMesaRenderWindow::MakeCurrent ()':
> vtkMesaRenderWindow.cxx:1181: `class vtkMesaRenderWindow' has no member
> named `OffScreenContextId'
> vtkMesaRenderWindow.cxx: In method `void
> *vtkMesaRenderWindow::GetGenericContext ()':
> vtkMesaRenderWindow.cxx:1252: `class vtkMesaRenderWindow' has no member
> named `OffScreenContextId'
> make[1]: *** [vtkMesaRenderWindow.o] Error 1
> make[1]: Leaving directory `/usr/local/vtk31/graphics'
> make: *** [build_graphics] Error 2
> 
>




More information about the vtkusers mailing list