[vtkusers] Ask help on Mangled Mesa

Fucang Jia jiafucang at hotmail.com
Mon Mar 31 00:23:32 EST 2003


Hi everyone,

I want to do animation using OffScreenRendering by MangledMesa. I compiled 
Mesa-5.0.1 by "configure;make" and then compile vtk, compiler says:

...............
Building executable /data2/vtk421/VTK421-bin/bin/vtk...
/data2/vtk421/VTK421-bin/bin/libvtkRendering.so: undefined reference to 
`mglLightModelfv'
/data2/vtk421/VTK421-bin/bin/libvtkRendering.so: undefined reference to 
`mglXCreateContext'
/data2/vtk421/VTK421-bin/bin/libvtkRendering.so: undefined reference to 
`mglColor3f'
/data2/vtk421/VTK421-bin/bin/libvtkRendering.so: undefined reference to 
`mglRasterPos2f'
/data2/vtk421/VTK421-bin/bin/libvtkRendering.so: undefined reference to 
`mglCullFace'
/data2/vtk421/VTK421-bin/bin/libvtkRendering.so: undefined reference to 
`mglLineWidth'
/data2/vtk421/VTK421-bin/bin/libvtkRendering.so: undefined reference to 
`mglGetString'
/data2/vtk421/VTK421-bin/bin/libvtkRendering.so: undefined reference to 
`mglReadBuffer'
/data2/vtk421/VTK421-bin/bin/libvtkftgl.so: undefined reference to 
`mglPopClientAttrib'
/data2/vtk421/VTK421-bin/bin/libvtkRendering.so: undefined reference to 
`mglOrtho'
----snipped-----

I think this is because Mesa bluid into libGL.so(a), but no libMGL.a as 
described in Examples/MangledMesa/README
Berk once said that there needs a special option to build mangled mesa. But 
I do not know.

Which option should be used to build mangled mesa?

I am working on Redhat Linux 8.0, gcc 3.2, Mesa-5.0.1, 
VTK-4.2.1-latest.tar.gz.

Thank you very much!

Regards,

Fucang

_________________________________________________________________
The new MSN 8: smart spam protection and 2 months FREE*  
http://join.msn.com/?page=features/junkmail




More information about the vtkusers mailing list