I'm trying to build a game called "
Crack Attack!". My GL library, however, isn't in the standard location. So I configure with --prefix=/'location to my stuff'
Then I run make and it barfs. It doesn't know where to look for include files. Turns out that the makefile generated in the src directory doesn't inherit includedir from the parent directory, so I modify src/Makefile.in to:
Code:
INCLUDES = -DNDEBUG -DDATA_DIRECTORY='"${pkgdatadir}/"' -I$(includedir)
The Blue stuff is what I added.
It definitely changes the output, but the problem is now this:
Code:
In file included from <include dir>/GL/glut.h:17,
from Attack.cxx:26:
<include dir>/GL/freeglut_std.h:114:19: error: GL/gl.h: No such file or directory
So the problem is that glut.h doesn't know to look for gl.h in its own directory.
Any pointers?