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

Robert Krimen grin.k1tt3n at gmail.com
Mon Aug 28 16:57:10 EDT 2006


On 8/28/06, minh thu <noteed at gmail.com> wrote:
>
> one more thing : can't we add -lglut for ext/glut/rakefile, -lGL for
> ext/gl/rakefile and -lGLU for ext/glu/rakefile (later) ?


I'm not sure if it works like that, since glut still needs the GL and GLU
libraries. I think it depends on how SWIG builds the shared libraries.

on my linux box (kubuntu), the glut implementation is freeglut, what's
> on yours ?
> what other implementations are there in the linux world ?
>
> i ask this because I have to change the %include <GL/glut.h> in glut.i.


It's something the project has to keep in mind. Can you include a svn diff
of your change?

mt
>
> 2006/8/28, Robert Krimen <grin.k1tt3n at gmail.com>:
> > You're right, I'm just used to programming in glX.
> > Here is the revised patch:
> >
> > Index: rakefile
> > ===================================================================
> > --- rakefile    (revision 20)
> > +++ rakefile    (working copy)
> > @@ -23,7 +23,7 @@
> >      # Don't understand why swig doesn't define this...
> >      swig_args = "-DSWIGMAC"
> >  else
> > -    extconf_args = ""
> > +    extconf_args = "--with-ldflags='-lGL -lGLU -lglut'"
> >      swig_args = "-I/usr/include"
> >  end
> >
> >
> >
> > On 8/28/06, minh thu <noteed at gmail.com> wrote:
> > >
> > > hi,
> > >
> > > Robert,
> > > why do you add -lX11 ? glut already wrap x11 on x11 based machines.
> > >
> > > sincerly,
> > > vo minh thu
> > >
> > > 2006/8/28, Robert Krimen <grin.k1tt3n at gmail.com>:
> > > > Index: ext/glut/rakefile
> > > > ===================================================================
> > > > --- ext/glut/rakefile   (revision 20)
> > > > +++ ext/glut/rakefile   (working copy)
> > > > @@ -23,7 +23,7 @@
> > > >      # Don't understand why swig doesn't define this...
> > > >      swig_args = "-DSWIGMAC"
> > > >  else
> > > > -    extconf_args = ""
> > > > +    extconf_args = "--with-ldflags='-lX11 -lGL -lGLU -lglut'"
> > > >      swig_args = "-I/usr/include"
> > > >  end
> > > >
> > > >
> > >
> >
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/ruby-opengl-devel/attachments/20060828/ff9b9b3b/attachment.html 


More information about the ruby-opengl-devel mailing list