On Tue, 2005-01-04 at 21:54 +0000, Krystian Samp wrote:
Hi Krystian,
> I've found also that during build process when compiling some sources
> there is cc parameter:
>
> -I/usr/X11R6/include/GL
>
> should be:
>
> -I/usr/X11R6/include
>
> beceuse sources always include Gl/gl.h etc. I couldn't fix it in good
> manner so i just made another copy of OpenGL files in
> /usr/X11R6/include/GL/GL. it worked well...
Ah, this patch should fix that. I initially didn't see it in my tests
because my local repository has split src/OpenGL.xs into its own file.
At the expense of a slightly more involved configuration process, I
think separate shared XS files is the way to go; it's more modular and a
lot cheaper in terms of memory if you don't need everything.
-- c
Index: build_lib/SDL/Build.pm
===================================================================
--- build_lib/SDL/Build.pm (revision 652)
+++ build_lib/SDL/Build.pm (working copy)
@@ -126,11 +126,11 @@
},
GL => {
define => 'HAVE_GL',
- header => 'gl.h'
+ header => catfile(qw( GL gl.h )),
},
GLU => {
define => 'HAVE_GLU',
- header => 'glu.h'
+ header => catfile(qw( GL glu.h )),
},
};
}