Subject: | Another Compile Error |
I am unable to compile 0.59 on Ubuntu 9.04, Perl v5.10.0. The
output from "perl Makefile.PL verbose" is attached as E1.txt. The
problem is obviously that include/GL/is not being searched for
include files, since this is the wrong path for the files in utils/. I
edited utils/Makefile to include "-I../include" in INC, and then I got the
errors in E2.txt. "APIENTRY" is not defined, but since this can be
found in at least four different include files, I gave up at this point.
If I can help with the debugging, please let me know.
Brian
Subject: | E1.txt |
$verbose set to 1
found libs:
GL = 'GL'
GLU = 'GLU'
GLUT = 'glut'
Testing for OpenGL Extensions
Testing GLUT version
glversion: cd utils;make -f Makefile GLUT_LIB=glut GLUT_DEF=HAVE_GLUT clean;make -f Makefile GLUT_LIB=glut GLUT_DEF=HAVE_GLUT
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: expected ‘;’ 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:35: warning: cast to pointer from integer of different size
glversion.c:36: error: ‘GL_VENDOR’ undeclared (first use in this function)
glversion.c:36: warning: cast to pointer from integer of different size
glversion.c:37: error: ‘GL_RENDERER’ undeclared (first use in this function)
glversion.c:37: warning: cast to pointer from integer of different size
glversion.c:38: error: ‘GL_EXTENSIONS’ undeclared (first use in this function)
glversion.c:38: warning: cast to pointer from integer of different size
make: *** [glversion.o] Error 1
rm -f glversion.txt
rm -f glversion
rm -f glversion.o
cc -I/usr/include -I/usr/X11R6/include -I/usr/local/include -I/usr/openwin/include -DHAVE_GLUT -c glversion.c
get_extensions: could not open utils/glversion.txt: No such file or directory
Subject: | E2.txt |
$verbose set to 1
found libs:
GL = 'GL'
GLU = 'GLU'
GLUT = 'glut'
Testing for OpenGL Extensions
Testing GLUT version
glversion: cd utils;make -f Makefile GLUT_LIB=glut GLUT_DEF=HAVE_GLUT clean;make -f Makefile GLUT_LIB=glut GLUT_DEF=HAVE_GLUT
In file included from ../include/GL/freeglut_std.h:85,
from ../include/GL/glut.h:17,
from glversion.c:13:
../include/GL/glu.h:63: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
../include/GL/glu.h:231: error: expected ‘)’ before ‘*’ token
../include/GL/glu.h:271: error: expected ‘)’ before ‘*’ token
../include/GL/glu.h:354: error: expected ‘)’ before ‘*’ token
../include/GL/glu.h:360: error: expected ‘)’ before ‘*’ token
../include/GL/glu.h:363: error: expected ‘)’ before ‘*’ token
../include/GL/glu.h:364: error: expected ‘)’ before ‘*’ token
../include/GL/glu.h:365: error: expected ‘)’ before ‘*’ token
../include/GL/glu.h:366: error: expected ‘)’ before ‘*’ token
../include/GL/glu.h:367: error: expected ‘)’ before ‘*’ token
../include/GL/glu.h:368: error: expected ‘)’ before ‘*’ token
../include/GL/glu.h:372: error: expected ‘)’ before ‘*’ token
../include/GL/glu.h:373: error: expected ‘)’ before ‘*’ token
../include/GL/glu.h:374: error: expected ‘)’ before ‘*’ token
../include/GL/glu.h:375: error: expected ‘)’ before ‘*’ token
../include/GL/glu.h:376: error: expected ‘)’ before ‘*’ token
../include/GL/glu.h:377: error: expected ‘)’ before ‘*’ token
../include/GL/glu.h:384: error: expected ‘)’ before ‘*’ token
make: *** [glversion.o] Error 1
rm -f glversion.txt
rm -f glversion
rm -f glversion.o
cc -I../include -I/usr/include -I/usr/X11R6/include -I/usr/local/include -I/usr/openwin/include -DHAVE_GLUT -c glversion.c
get_extensions: could not open utils/glversion.txt: No such file or directory