Solutions: Compiling VTK 3.1 on new Linuscies

Maneesh Yadav 97yadavm at scar.utoronto.ca
Thu Apr 27 15:55:47 EDT 2000


There have been many postings regarding compiling vtk3.1 on a newer linux
distro, I've got it done and (I don't know if this is common knowledge)
but I decided to post what I did, as I haven't seen many replies (I may
have missed some):

Assuming you have a newer linux distro (RH 6.2), the compile errors are
due to the new Mesa (3.2) and the '#define MESA' related statments

It's really quite trivial (this is kinda a kludge, and there may be an
easier way by defining macros from the command line, but I think this is 
simple enough; if you want to be really safe, save the header files,
compile vtk and then restore them),

in 'gl.h'
uncomment the '#define MESA"

in 'glx.h'
there is a '#ifdef' MESA clause that is used to define some typdefs
(around line 198 in Mesa 3.2), comment out the conditional directives
(#ifdef, #else, #endif) and the line that says, 
'typedef XMesaContext GLXContext'

Run your ./configure and make, and that shold be all your need.
Note to VTK authours, perhaps dependacies on the MESA macro should be
removed, as the note in the new MESA says those #defines will be gone.

--------------------------------------------------------------------
This is the private VTK discussion list. Please keep messages on-topic.
Check the FAQ at: <http://public.kitware.com/cgi-bin/vtkfaq>
To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to
<majordomo at public.kitware.com>. For help, send message body containing
"info vtkusers" to the same address.
--------------------------------------------------------------------



More information about the vtkusers mailing list