[ruby-opengl-devel] Fix to get it working on my system:

John Gabriele jmg3000 at gmail.com
Thu Aug 31 02:10:53 EDT 2006


On 8/29/06, John Gabriele <jmg3000 at gmail.com> wrote:
> On 8/29/06, John Gabriele <jmg3000 at gmail.com> wrote:
> > On 8/29/06, minh thu <noteed at gmail.com> wrote:
> > > hi,
> > > here is my diff (i send it earlier to Peter).
> > >
> > > Index: trunk/ext/glut/glut.i
> > > ===================================
> > > --- trunk/ext/glut/glut.i       (revision 20)
> > > +++ trunk/ext/glut/glut.i       (working copy)
> > > @@ -22,7 +22,7 @@
> > >  %}
> > >  #else
> > >  %header %{
> > > -#include <GL/glut.h>
> > > +#include <GL/freeglut_std.h>
> > >  %}
> > >  #endif
> > >
> > > [snip]
> >
> > Hi Thu,
> >
> > Thank you, but note, I think on most *nix systems, glut.h simply
> > #includes freeglut_std.h. It does on mine.
> >
>
> Ah. I see what you were getting at: doesn't build when you just
> specify glut.h, but works when you have "freeglut_std.h" in there. I
> get the same thing. Peter suggested to me that this may have something
> to do with how swig deals with includes (i.e., "%include vs #include,
> and the --includeall flag"). Will have to read up on that.

Ok. For now, I changed that include to freeglut_std.h.

---John


More information about the ruby-opengl-devel mailing list