Page 1 of 1

configure: error: Cannot find GL/glut.h

Posted: Sat Apr 24, 2010 12:26 am
by eracc
Hi all. Just downloaded SVN of VS and trying to build. I have '/usr/include/GL/glut.h' but ./configure says "configure: error: Cannot find GL/glut.h" so where is it trying to find this?

My config.log is attached to this message instead of pasting the entire freakishly long thing here.

Re: configure: error: Cannot find GL/glut.h

Posted: Sat Apr 24, 2010 7:10 pm
by chuck_starchaser
I have glut.h in,

Code: Select all

/usr/include/GL/glut.h
though, I'm not sure who or what puts it there; I'm a linux newbie; I would assume at some point I must have installed some opengl lib or something that did it.
By the way, the right configure line is,

Code: Select all

$ ./configure --disable-debug --enable-release

Re: configure: error: Cannot find GL/glut.h

Posted: Sat Apr 24, 2010 7:27 pm
by eracc
chuck_starchaser wrote:I have glut.h in,

Code: Select all

/usr/include/GL/glut.h
though, I'm not sure who or what puts it there; I'm a linux newbie; I would assume at some point I must have installed some opengl lib or something that did it.
In my case the /usr/include/GL/glut.h was installed with the libmesaglut3-devel package. I do have the file and it is in the correct location. No clue why ./configure does not see it.
chuck_starchaser wrote:By the way, the right configure line is,

Code: Select all

$ ./configure --disable-debug --enable-release
Ah, well, perhaps this URL needs to be fixed then: http://vegastrike.sourceforge.net/wiki/ ... e_from_SVN That is where I got the ./configure string I used.

Re: configure: error: Cannot find GL/glut.h

Posted: Sat Apr 24, 2010 7:56 pm
by chuck_starchaser
eracc wrote:
chuck_starchaser wrote:By the way, the right configure line is,

Code: Select all

$ ./configure --disable-debug --enable-release
Ah, well, perhaps this URL needs to be fixed then: http://vegastrike.sourceforge.net/wiki/ ... e_from_SVN That is where I got the ./configure string I used.
Actually, would you fix it? I've lost editing access to the wiki since we moved to phpBB3, due to the underscore in my name (the wiki sees the underscore and thinks that it originated as a space, or something along the lines). You should be able to log in with the same oozer name and pax sword as you use in the forum.

Re: configure: error: Cannot find GL/glut.h

Posted: Sat Apr 24, 2010 8:28 pm
by klauss
Actually, we should fix configure to have a proper release build by default (instead of a debug build).

Linux savvies know the "./configure && make && sudo make install" line, and type it even without thinking.

(ie: not so savvy of them ;) )

Anyway, ./configure should be enough and it's not.

Look at this in your config.log:

Code: Select all

configure:9683: checking GL/glut.h usability
configure:9683: g++ -c       conftest.cpp >&5
In file included from conftest.cpp:149:
/usr/include/GL/glut.h:18:20: error: GL/glu.h: No such file or directory
Seems your glut.h is somehow broken.

Re: configure: error: Cannot find GL/glut.h

Posted: Sat Apr 24, 2010 9:17 pm
by eracc
Interesting catch there klauss. It appears that GL/glu.h is in a different development package from libmesaglut3-devel:

Code: Select all

[root@era4 ~]# urpmf GL/glu.h
mingw32-w32api:/usr/i586-pc-mingw32/sys-root/mingw/include/GL/glu.h
root:/usr/share/root/cint/cint/include/GL/glu.h
root:/usr/share/root/cint/cint7/include/GL/glu.h
libmesaglu1-devel:/usr/include/GL/glu.h
Meaning the libmesaglu1-devel package of course. However, that package was installed but the file did not exist on my drive. I removed and reinstalled the package and now the file shows up. Some gremlins got it before I think.

Re: configure: error: Cannot find GL/glut.h

Posted: Sat Apr 24, 2010 9:54 pm
by eracc
Okay, that solved the problem. It is now make(ing). We'll see if I can get a build now. Thanks folks. :)