29 Mar 2011 11:26
[BLFS Trac] #3237: MesaLib Demos can not find GL/gl.h
BLFS Trac <trac <at> linuxfromscratch.org>
2011-03-29 09:26:53 GMT
2011-03-29 09:26:53 GMT
#3237: MesaLib Demos can not find GL/gl.h
-----------------------+----------------------------------------------------
Reporter: synthehol | Owner: blfs-book <at> …
Type: defect | Status: new
Priority: normal | Milestone: 6.7
Component: BOOK | Version: SVN
Severity: normal | Keywords: mesalib mesademos mesa gl.h
-----------------------+----------------------------------------------------
Compilation of MesaLib fails with:
{{{
make[1]: Entering directory `/sources/Mesa-7.9/xdemos'
gcc -L../lib -lGL -o glxinfo glxinfo.c
glxinfo.c:41:19: fatal error: GL/gl.h: No such file or directory
compilation terminated.
make[1]: *** [glxinfo] Error 1
make[1]: Leaving directory `/sources/Mesa-7.9/xdemos'
make: *** [default] Error 1
}}}
A similar error occurs when not applying the same solution to glxgears:
{{{
make[1]: Entering directory `/sources/Mesa-7.9/xdemos'
gcc -I../include -L../lib -lGL -o glxinfo glxinfo.c
gcc -L../lib -lGL -o glxgears glxgears.c
glxgears.c:36:19: fatal error: GL/gl.h: No such file or directory
compilation terminated.
make[1]: *** [glxgears] Error 1
make[1]: Leaving directory `/sources/Mesa-7.9/xdemos'
make: *** [default] Error 1
}}}
The solution: Add {{{-I$(TOP)/include}}} to the list of arguments for both
glxinfo and glxgears in xdemos/Makefile.
My system: LFS-6.8, BLFS svn-20110326 (revision 8876)
Unless I am the only one who has this problem, the attached patch can be
used to replace the one currently used in BLFS to solve this.
--
Ticket URL: <http://wiki.linuxfromscratch.org/blfs/ticket/3237>
BLFS Trac <http://wiki.linuxfromscratch.org/blfs>
Beyond Linux From Scratch
--
--
http://linuxfromscratch.org/mailman/listinfo/blfs-book
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page
RSS Feed