From: Matthew PATTISON Date: 2001-04-28T22:32:19+09:00 Subject: [ruby-talk:14378] Ruby OpenGL question Reply-To: I have a question about Yoshi's recently updated OpenGL interface module. The README file for the module seemed to be in Japanese, so my installation procedure was pretty off the cuff. (I haven't installed any extra modules before) It was: copy the file rbogl-0.32.tgz to /usr/lib/ruby/ext (this is where other extension modules seem to be kept) type: 'tar zxvf rbogl-0.32.tgz' 'cd opengl' 'ruby extconf.rb' during which I get the following error message: checking for glClear() in -lGL... no checking for glClear() in -lMesaGL... no "can't create OpenGL module!" I seemed to get around this by adding: $CFLAGS += " -I/usr/X11R6/include/" $CFLAGS += " -L/usr/X11R6/lib" which represent where the OpenGL libraries and include files can be found. now 'ruby extconf.rb' succeeds, but 'make' fails with the errors: ... glut.c: In function `glut_KeyboardFunc': glut.c:147: warning: passing arg1 of `glutKeyboardFunc' from incompatible pointer type ... gcc -shared -o glut.so glut.o -lglut -lXmu -lXext -lXi -lGLU -lGL -lX11 -lXmu -lc /usr/bin/ld: cannot find -lglut collect2: ld returned 1 exit status make[1]: ***[glut.so] Error 1 ... Here I am stuck. Please someone explain to me where I've gone wrong, or what the correct procedure is. Matt