Manta Interactive Ray Tracer Development Mailing List

Text archives Help


Re: [MANTA] Re: Problems compiling Manta on the SGI Prism


Chronological Thread 
  • From: Shreekanth Pavar <shreekanth.pavar@ucl.ac.uk>
  • To: Abe Stephens <abe@sci.utah.edu>
  • Cc: manta@sci.utah.edu, Steven Manos <s.manos@ucl.ac.uk>
  • Subject: Re: [MANTA] Re: Problems compiling Manta on the SGI Prism
  • Date: Tue, 20 Feb 2007 15:31:32 +0000

Quoting Abe Stephens <abe@sci.utah.edu>:

Here's how our system is setup:

$ ls -l /usr/lib/libGL.so
lrwxrwxrwx    1 root     root           31 Jan 31  2005
/usr/lib/libGL.so -> /usr/X11R6/lib/libGL.so.1.2.vsl
$ rpm -qf /usr/X11R6/lib/libGL.so.1.2.vsl
fglrx-4.3.0-sgi304r1.2.9.1
$ rpm -qf /usr/include/GL/gl.h
XFree86-devel-4.3.0-78.ELsgi304r2

So the headers are supplied by X, and the library libGL.so is
symlinked to a file provided by fglrx.

In our case libGL.so is incorrectly symlinked. When our fglrx package was
installed it modified libGL.so.1 (symlink) to point at libGL.so.1.2.vsl but
didn't change libGL.so (symlink) at all, which is currently pointing at
libGL.so.1.2 ( which does not support the extension).


There are a few different possibilities:

 * The extensions are present (check with glxinfo / fglrxinfo), but
the correct library isn't used by the linker (check symlink setup).

 * The extensions aren't present but the header symbol is defined to
zero instead of being undefined. (Problem with code.)

 * The extensions aren't present but the header symbol is defined to
one so the code compiles and then the linker fails. (Problem with
header or code, depending on how you look at it.)


The compiler only hit #error AFTER I changed #ifndef GL_ARB_pixel_buffer_object
to #if 1, which means GL_ARB_pixel_buffer_object is being defined in the
headers as the compiler confirmed:

PureOpenGLDisplay.cc:184:1: warning: "GL_ARB_pixel_buffer_object" redefined
/usr/include/GL/glext.h:4161:1: warning: this is the location of the previous
definition

However, at least the build now completes !

Many thanks for helping me get to the root of this problem :)







Archive powered by MHonArc 2.6.16.

Top of page