glgsg error

Return to Compiling or Editing the Panda Source

glgsg error

Postby gaminggeek » Thu May 26, 2005 12:08 am

In file included from panda/src/glstuff/glstuff_src.cxx:29,
from panda/src/glgsg/glgsg.cxx:24:
panda/src/glstuff/glGraphicsStateGuardian_src.cxx: In member function `virtual
void GLGraphicsStateGuardian::reset()':
panda/src/glstuff/glGraphicsStateGuardian_src.cxx:404: error: `
GL_MIRROR_CLAMP_EXT' undeclared (first use this function)
panda/src/glstuff/glGraphicsStateGuardian_src.cxx:404: error: (Each undeclared
identifier is reported only once for each function it appears in.)
panda/src/glstuff/glGraphicsStateGuardian_src.cxx:405: error: `
GL_MIRROR_CLAMP_TO_EDGE_EXT' undeclared (first use this function)
panda/src/glstuff/glGraphicsStateGuardian_src.cxx:406: error: `
GL_MIRROR_CLAMP_TO_BORDER_EXT' undeclared (first use this function)


Help :cry:

Gaminggeek
gaminggeek
 

Postby drwr » Thu May 26, 2005 7:24 am

Hmm. What kind of system are you building on? By chance, is there a file called glext.h somewhere already installed on your system, outside of the panda sources?

David
drwr
 
Posts: 11425
Joined: Fri Feb 13, 2004 12:42 pm
Location: Glendale, CA

idea...

Postby Josh Yelon » Thu May 26, 2005 9:06 am

You know, this isn't the first time we've had this problem.

Why don't we rename "glext.h" to "panda-glext.h" and include that instead?

- Josh
Josh Yelon, Teacher, Carnegie Mellon Entertainment Technology Center
Josh Yelon
 
Posts: 1360
Joined: Wed Mar 30, 2005 8:30 pm

Postby drwr » Thu May 26, 2005 9:29 am

That's what I was thinking we should do. But I'd like to first confirm that this is indeed the problem experienced by this particular user.

David
drwr
 
Posts: 11425
Joined: Fri Feb 13, 2004 12:42 pm
Location: Glendale, CA

Postby Guest » Fri May 27, 2005 9:39 pm

caleb@cbb caleb $ locate glext.h
/mnt/win/Dev-Cpp/include/gl/glext.h
/mnt/win/Doom3/src/renderer/glext.h
/usr/lib/opengl/xorg-x11/include/glext.h
/usr/lib/opengl/global/include/glext.h
/usr/lib/opengl/nvidia/include/glext.h
/usr/include/GL/glext.h
/usr/include/gtkglext-1.0/gdk/gdkglglext.h
/usr/include/gtkglext-1.0/gdk/glext/wglext.h
/usr/include/gtkglext-1.0/gdk/glext/glext.h
/usr/include/panda3d/wglext.h
/usr/include/panda3d/glext.h
/usr/portage/distfiles/glext.h-20040830.bz2
/usr/portage/distfiles/glext.h-26.bz2
/home/caleb/panda3d-1.0.4/built/include/wglext.h
/home/caleb/panda3d-1.0.4/built/include/glext.h
/home/caleb/panda3d-1.0.4/panda/src/wgldisplay/wglext.h
/home/caleb/panda3d-1.0.4/panda/src/glstuff/glext.h
caleb@cbb caleb $


yes quite a few :lol:
Guest
 

Postby drwr » Sat May 28, 2005 1:15 am

Egad.

As a short-term workaround, you can put the following lines somewhere in the beginning of glGraphicsStateGuardian_src.cxx:
Code: Select all
#define GL_MIRROR_CLAMP_EXT               0x8742
#define GL_MIRROR_CLAMP_TO_EDGE_EXT       0x8743
#define GL_MIRROR_CLAMP_TO_BORDER_EXT     0x8912


David
drwr
 
Posts: 11425
Joined: Fri Feb 13, 2004 12:42 pm
Location: Glendale, CA


Return to Compiling or Editing the Panda Source

Who is online

Users browsing this forum: No registered users and 0 guests