--Apple-Mail-1--705450096
Content-Transfer-Encoding: 7bit
Content-Type: text/plain;
	charset-ASCII;
	formatðïwed

>
> The headers didn't been find.  Do you have glut.h in
> /System/Library/Frameworks/GLUT/Headers?

hey there,
thanks for the tip. ok, i changed the patch to read 
"/System/Library/Frameworks/GLUT.framework/Headers".
i'm not sure if this is even the right way to go about using frameworks 
though, from the little i've seen of C and Obj-C
on osc x? anyway, now i get a shorter but just as ominous sounding list 
of errors:

[localhost:Ruby/trials/opengl] user% ls
ChangeLog  README.EUC glu.c      ogl.c      rbogl.c    sample
MANIFEST   extconf.rb glut.c     ogl_patch  rbogl.h

[localhost:Ruby/trials/opengl] user% patch -p0 <ogl_patch

patching file extconf.rb
patching file ogl.c
patching file glut.c
patching file glu.c
patching file rbogl.c

[localhost:Ruby/trials/opengl] user% ruby extconf.rb

checking for () in -lGL... yes
checking for () in -lGLU... yes
creating Makefile
checking for XAllowDeviceEvents() in -lXi... yes
checking for XMITMiscGetBugMode() in -lXext... yes
checking for XmuAddCloseDisplayHook() in -lXmu... yes
checking for () in -lglut... yes
creating Makefile

[localhost:Ruby/trials/opengl] user% make

Now Making glut extend module
gcc -fno-common -no-cpp-precomp -flat_namespace -pipe -no-precomp  -I. 
-I/System/Library/Frameworks/OpenGL.framework/Headers 
-I/System/Library/Frameworks/GLUT.framework/Headers -I. 
-I/usr/local/lib/ruby/1.6/powerpc-darwin5.3 -I. -I/usr/local/include    
-I/usr/X11R6/include -c -o glut.o glut.c
glut.c: In function `glut_KeyboardFunc':
glut.c:148: warning: passing arg 1 of `glutKeyboardFunc' from 
incompatible pointer type
gcc: -flat_namespace: linker input file unused since linking not done
cc -dynamic -bundle -undefined suppress -flat_namespace  
-L/usr/X11R6/lib -L/usr/local/lib/ruby/1.6/powerpc-darwin5.3 
-L/usr/local/lib -L/usr/X11R6/lib 
-L/usr/local/lib/ruby/1.6/powerpc-darwin5.3 -L/usr/local/lib  -o 
glut.bundle glut.o libruby.a -lglut -lXmu -lXext -lXi -lGLU -lGL -lX11 
-lXmu
cc: libruby.a: No such file or directory
make[1]: *** [glut.bundle] Error 1
make: *** [glut.bundle] Error 2


--Apple-Mail-1--705450096
Content-Transfer-Encoding: 7bit
Content-Type: text/enriched;
	charset-ASCII

<excerpt>

The headers didn't been find.  Do you have glut.h in

/System/Library/Frameworks/GLUT/Headers?

</excerpt> 

hey there,

thanks for the tip. ok, i changed the patch to read
"<color><param>0000,0000,DEDE</param>/System/Library/Frameworks/GLUT.framework/Headers".

i'm not sure if this is even the right way to go about using
frameworks though, from the little i've seen of C and Obj-C

on osc x? anyway, now i get a shorter but just as ominous sounding
list of errors:

</color>

[localhost:Ruby/trials/opengl] user% ls

ChangeLog  README.EUC glu.c      ogl.c      rbogl.c    sample

MANIFEST   extconf.rb glut.c     ogl_patch  rbogl.h


[localhost:Ruby/trials/opengl] user% patch -p0 <<ogl_patch 


patching file extconf.rb

patching file ogl.c

patching file glut.c

patching file glu.c

patching file rbogl.c


[localhost:Ruby/trials/opengl] user% ruby extconf.rb


checking for () in -lGL... yes

checking for () in -lGLU... yes

creating Makefile

checking for XAllowDeviceEvents() in -lXi... yes

checking for XMITMiscGetBugMode() in -lXext... yes

checking for XmuAddCloseDisplayHook() in -lXmu... yes

checking for () in -lglut... yes

creating Makefile


[localhost:Ruby/trials/opengl] user% make


Now Making glut extend module

gcc -fno-common -no-cpp-precomp -flat_namespace -pipe -no-precomp  -I.
-I/System/Library/Frameworks/OpenGL.framework/Headers
-I/System/Library/Frameworks/GLUT.framework/Headers -I.
-I/usr/local/lib/ruby/1.6/powerpc-darwin5.3 -I. -I/usr/local/include   
-I/usr/X11R6/include -c -o glut.o glut.c

glut.c: In function `glut_KeyboardFunc':

glut.c:148: warning: passing arg 1 of `glutKeyboardFunc' from
incompatible pointer type

gcc: -flat_namespace: linker input file unused since linking not done

cc -dynamic -bundle -undefined suppress -flat_namespace 
-L/usr/X11R6/lib -L/usr/local/lib/ruby/1.6/powerpc-darwin5.3
-L/usr/local/lib -L/usr/X11R6/lib
-L/usr/local/lib/ruby/1.6/powerpc-darwin5.3 -L/usr/local/lib  -o
glut.bundle glut.o libruby.a -lglut -lXmu -lXext -lXi -lGLU -lGL -lX11
-lXmu  

cc: libruby.a: No such file or directory

make[1]: *** [glut.bundle] Error 1

make: *** [glut.bundle] Error 2



--Apple-Mail-1--705450096--