./configure can't find glut.h - I installed mesa in a local dir /home/www/barton so glut.h is in /home/www/barton/includes/GL instead of the default /usr/includes/GL/
when i run ./configure with these options:
./configure --prefix=/home/www/barton --with-glut=/home/www/barton/include/GL --with-gl-libs=/home/www/barton/lib --with-gl-inc=/home/www/barton/include/GL --with-glut-libs=/home/www/barton/lib
it still says it can't find it.
here's a quick look at what i am seeing:
checking GL/gl.h usability... yes
checking GL/gl.h presence... yes
checking for GL/gl.h... yes
checking for glNewList in -lGL... yes
checking GL/glu.h usability... yes
checking GL/glu.h presence... yes
checking for GL/glu.h... yes
checking for gluLookAt in -lGLU... yes
checking GL/glut.h usability... no
checking GL/glut.h presence... no
checking for GL/glut.h... no
it seems to be checking the default /usr/include dir which has glu.h (which passes configure's check) but not glut.h
any suggestions?
configure not looking where i tell it to
-
- Developer
- Posts: 944
- Joined: 18.07.2002
- With us: 22 years 6 months
- Location: Lyon (France)
i checked the config.log and fixed the directory (it added the GL so i had GL/GL/) thanks -
but here's a knew glitch:
It finds glut.h but the preprossesor rejects it.
checking GL/glut.h usability... yes
checking GL/glut.h presence... no
configure: WARNING: GL/glut.h: accepted by the compiler, rejected by the preprocessor!
configure: WARNING: GL/glut.h: proceeding with the preprocessor's result
checking for GL/glut.h... no
configure: error: No glut.h found. See INSTALL file for details on correcting this problem.
it looks to me like gcc can't find the file - but i don't understand why not.
here's the excerpt form the config.log:
configure:29164: checking GL/glut.h usability
configure:29173: gcc -c -I/usr/X11R6/include -I/home/www/barton/include/ -I/home/www/barton/include/ -O2 -Wall -ffast-math -fexpensive-optimizations -fomit-frame-pointer -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include conftest.c >&5
configure:29176: $? = 0
configure:29179: test -s conftest.o
configure:29182: $? = 0
configure:29191: result: yes
configure:29195: checking GL/glut.h presence
configure:29202: gcc -E conftest.c
configure:29198:21: GL/glut.h: No such file or directory
configure:29208: $? = 1
configure: failed program was:
#line 29197 "configure"
#include "confdefs.h"
#include <GL/glut.h>
configure:29226: result: no
configure:29232: WARNING: GL/glut.h: accepted by the compiler, rejected by the preprocessor!
configure:29234: WARNING: GL/glut.h: proceeding with the preprocessor's result
configure:29244: checking for GL/glut.h
configure:29251: result: no
configure:29261: error: No glut.h found. See INSTALL file for details on correcting this problem.
but here's a knew glitch:
It finds glut.h but the preprossesor rejects it.
checking GL/glut.h usability... yes
checking GL/glut.h presence... no
configure: WARNING: GL/glut.h: accepted by the compiler, rejected by the preprocessor!
configure: WARNING: GL/glut.h: proceeding with the preprocessor's result
checking for GL/glut.h... no
configure: error: No glut.h found. See INSTALL file for details on correcting this problem.
it looks to me like gcc can't find the file - but i don't understand why not.
here's the excerpt form the config.log:
configure:29164: checking GL/glut.h usability
configure:29173: gcc -c -I/usr/X11R6/include -I/home/www/barton/include/ -I/home/www/barton/include/ -O2 -Wall -ffast-math -fexpensive-optimizations -fomit-frame-pointer -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include conftest.c >&5
configure:29176: $? = 0
configure:29179: test -s conftest.o
configure:29182: $? = 0
configure:29191: result: yes
configure:29195: checking GL/glut.h presence
configure:29202: gcc -E conftest.c
configure:29198:21: GL/glut.h: No such file or directory
configure:29208: $? = 1
configure: failed program was:
#line 29197 "configure"
#include "confdefs.h"
#include <GL/glut.h>
configure:29226: result: no
configure:29232: WARNING: GL/glut.h: accepted by the compiler, rejected by the preprocessor!
configure:29234: WARNING: GL/glut.h: proceeding with the preprocessor's result
configure:29244: checking for GL/glut.h
configure:29251: result: no
configure:29261: error: No glut.h found. See INSTALL file for details on correcting this problem.