Stefan Evert wrote:
> Ah, thanks.  Now try this:
>
>     cd utils/
>     make -f Makefile.macosx
>
> This should build the glversion utility, but seems to fail for you (it 
> works on my machine).  Please send us the complete output of the 
> command again.
>
make -f Makefile.macosx
cc -I/usr/X11/include -c glversion.c
glversion.c:13:21: error: GL/glut.h: No such file or directory
glversion.c: In function 'main':
glversion.c:25: error: 'GLuint' undeclared (first use in this function)
glversion.c:25: error: (Each undeclared identifier is reported only once
glversion.c:25: error: for each function it appears in.)
glversion.c:25: error: syntax error before 'idWindow'
glversion.c:30: error: 'GLUT_RGBA' undeclared (first use in this function)
glversion.c:31: error: 'idWindow' undeclared (first use in this function)
glversion.c:35: error: 'GL_VERSION' undeclared (first use in this function)
glversion.c:36: error: 'GL_VENDOR' undeclared (first use in this function)
glversion.c:37: error: 'GL_RENDERER' undeclared (first use in this function)
glversion.c:38: error: 'GL_EXTENSIONS' undeclared (first use in this 
function)
make: *** [glversion.o] Error 1


true, it seems to be looking into /usr/X11/include. And that is 
precisely the one that does indeed have the GL directory with the gl.h, 
glu.h in it. But not glut.h, though.
> One possibility that comes to mind is that the header files in 
> /usr/X11/include/GL have wrong permissions set, so they appear to be 
> there, but the C compile can't read them (might also explain why 
> locate doesn't pick them up).
>
> Can you check whether they have the correct "644" (-rw-r--r--) flags?
>
They do:

lsl /usr/X11/include/GL
total 1672
-rw-r--r--  1 root  wheel    5401 Mar 14  2007 xmesa_xf86.h
-rw-r--r--  1 root  wheel    3313 Mar 14  2007 xmesa_x.h
-rw-r--r--  1 root  wheel   10401 Mar 14  2007 xmesa.h
-rw-r--r--  1 root  wheel    4402 Mar 14  2007 wmesa.h
-rw-r--r--  1 root  wheel   51274 Mar 14  2007 vms_x_fix.h
-rw-r--r--  1 root  wheel    4313 Mar 14  2007 uglmesa.h
-rw-r--r--  1 root  wheel    1360 Mar 14  2007 uglglutshapes.h
-rw-r--r--  1 root  wheel    2508 Mar 14  2007 svgamesa.h
-rw-r--r--  1 root  wheel    8595 Mar 14  2007 osmesa.h
-rw-r--r--  1 root  wheel    3174 Mar 14  2007 mglmesa.h
-rw-r--r--  1 root  wheel    5609 Mar 14  2007 mesa_wgl.h
-rw-r--r--  1 root  wheel   30134 Mar 14  2007 glxext.h
-rw-r--r--  1 root  wheel    3412 Mar 14  2007 glx_mangle.h
-rw-r--r--  1 root  wheel   15234 Mar 14  2007 glx.h
-rw-r--r--  1 root  wheel    3315 Mar 14  2007 glu_mangle.h
-rw-r--r--  1 root  wheel   16668 Mar 14  2007 glu.h
-rw-r--r--  1 root  wheel    4338 Mar 14  2007 glfbdev.h
-rw-r--r--  1 root  wheel  342501 Mar 14  2007 glext.h
-rw-r--r--  1 root  wheel   78288 Mar 14  2007 gl_mangle.h
-rw-r--r--  1 root  wheel   89660 Mar 14  2007 gl.h
-rw-r--r--  1 root  wheel    2232 Mar 14  2007 ggimesa.h
-rw-r--r--  1 root  wheel    2710 Mar 14  2007 fxmesa.h
-rw-r--r--  1 root  wheel    4672 Mar 14  2007 dmesa.h
-rw-r--r--  1 root  wheel    2276 Mar 14  2007 amesa.h
-rw-r--r--  1 root  wheel   10613 Feb 19  2009 glxtokens.h
-rw-r--r--  1 root  wheel   77887 Feb 19  2009 glxproto.h
-rw-r--r--  1 root  wheel    2453 Feb 19  2009 glxmd.h
-rw-r--r--  1 root  wheel    4257 Feb 19  2009 glxint.h
drwxr-xr-x  4 root  wheel     136 Aug  3 14:17 internal

> Best,
> Stefan
>
>> perl Makefile.PL
>> glversion.c:13:21: error: GL/glut.h: No such file or directory
>> glversion.c: In function 'main':
>> glversion.c:25: error: 'GLuint' undeclared (first use in this function)
>> glversion.c:25: error: (Each undeclared identifier is reported only once
>> glversion.c:25: error: for each function it appears in.)
>> glversion.c:25: error: syntax error before 'idWindow'
>> glversion.c:30: error: 'GLUT_RGBA' undeclared (first use in this 
>> function)
>> glversion.c:31: error: 'idWindow' undeclared (first use in this 
>> function)
>> glversion.c:35: error: 'GL_VERSION' undeclared (first use in this 
>> function)
>> glversion.c:36: error: 'GL_VENDOR' undeclared (first use in this 
>> function)
>> glversion.c:37: error: 'GL_RENDERER' undeclared (first use in this 
>> function)
>> glversion.c:38: error: 'GL_EXTENSIONS' undeclared (first use in this 
>> function)
>> make: *** [glversion.o] Error 1
>

-- 
-----------------------------
Dr. Antonio  Hales 
ALMA Commissioning Scientist                
Joint ALMA Office                           
Av Apoquindo 3846 Piso 19                   
Santiago - Chile
-----------------------------
(+56) 2 467 6236
(+56) 9 6 2062609 
-----------------------------


_______________________________________________
Perldl mailing list
[email protected]
http://mailman.jach.hawaii.edu/mailman/listinfo/perldl

Reply via email to