yamakawa wrote:bob_111 wrote:I get the following error upon compiling xgl:
Code: Select all
X_GLvop_GenRenderbuffersEXT' undeclared (first use in this function)
glxcmds.c:2355: error: `X_GLvop_GetRenderbufferParameterivEXT' undeclared (first use in this function)
glxcmds.c:2357: error: `X_GLvop_IsFramebufferEXT' undeclared (first use in this function)
glxcmds.c:2359: error: `X_GLvop_GenFramebuffersEXT' undeclared (first use in this function)
glxcmds.c:2361: error: `X_GLvop_CheckFramebufferStatusEXT' undeclared (first use in this function)
glxcmds.c:2363: error: `X_GLvop_GetFramebufferAttachmentParameterivEXT' undeclared (first use in this
Using the latest SVN ebuilds.
- bob_111
I have the same error with svn 23 & 24, the latest.

Ok, the patches are posted on the xorg mailing list, its probably going to be commited soon but heres the patches anyway:
First, cp x11-proto/glproto to any overlay, heres the patch for it (put in glproto's files dir):
Code: Select all
--- glxproto.h 2006-02-23 10:53:15.429677888 -0500
+++ glxproto.h.new 2006-02-23 10:54:01.177723128 -0500
@@ -2515,4 +2515,13 @@
/* 299. GL_EXT_blend_equation_separate */
#define X_GLrop_BlendEquationSeparateEXT 4228
+/* 310. GL_EXT_framebuffer_object */
+#define X_GLvop_IsRenderbufferEXT 1422
+#define X_GLvop_GenRenderbuffersEXT 1423
+#define X_GLvop_GetRenderbufferParameterivEXT 1424
+#define X_GLvop_IsFramebufferEXT 1425
+#define X_GLvop_GenFramebuffersEXT 1426
+#define X_GLvop_CheckFramebufferStatusEXT 1427
+#define X_GLvop_GetFramebufferAttachmentParameterivEXT 1428
+
#endif /* _GLX_glxproto_h_ */
add this to the ebuild before src_install and redigest:
Code: Select all
src_unpack() {
unpack ${A} || die "unpack failed"
cd ${WORKDIR}/glproto-1.4.5
epatch ${FILESDIR}/xgl_indirect_glproto.patch
}
Heres the patches for both xgl and mesa (put the 2 patches in BOTH packages files dir):
mesa-glproto-indirect-fbo.patch
Code: Select all
--- src/glx/x11/glxextensions.c 2006-02-23 11:07:40.934101216 -0500
+++ src/glx/x11/glxextensions.c.new 2006-02-23 11:09:43.971396704 -0500
@@ -183,6 +183,7 @@
{ GL(EXT_texture_object), VER(1,1), Y, N, N, N },
{ GL(EXT_texture_rectangle), VER(0,0), Y, N, N, N },
{ GL(EXT_vertex_array), VER(0,0), Y, N, N, N },
+ { GL(EXT_framebuffer_object), VER(1,1), Y, N, N, N },
{ GL(3DFX_texture_compression_FXT1), VER(0,0), Y, N, N, N },
{ GL(APPLE_packed_pixels), VER(1,2), Y, N, N, N },
{ GL(APPLE_ycbcr_422), VER(0,0), Y, N, N, N },
mesa-glproto-indirect-fbo-header.patch
Code: Select all
--- src/glx/x11/glxextensions.h 2006-02-23 11:07:40.983093768 -0500
+++ src/glx/x11/glxextensions.h.new 2006-02-23 11:10:12.532054824 -0500
@@ -142,6 +142,7 @@
GL_EXT_texture_mirror_clamp_bit,
GL_EXT_texture_object_bit,
GL_EXT_vertex_array_bit,
+ GL_EXT_framebuffer_object_bit,
GL_3DFX_texture_compression_FXT1_bit,
GL_APPLE_packed_pixels_bit,
GL_APPLE_ycbcr_422_bit,
add appropriate epatch lines
epatch ${FILESDIR}/mesa-glproto-indirect-fbo-header.patch
epatch ${FILESDIR}/mesa-glproto-indirect-fbo.patch
to both mesa ebuild and xgl ebuild (in xgl make sure your in ${WORKDIR}/Mesa
EDIT: IMPORTANT - you wont get a Xgl binary linked in the xgl merge unless you have glitz >= 0.5.4 ... (a cvs build from fluidportage worked for me). You'll notice during the config that the xgl DDX module fails to get built if your using <= 0.5.3 ... but it doesnt throw an error.
EDIT 2: you can find all the ebuilds and the 3 required patches here:
http://tripthelight.net/gentoo/
EDIT 3: you can checkout my entire overlay
cd /usr/local
svn co
http://www.tripthelight.net/xgloverlay