#3237 closed defect (fixed)
MesaLib Demos can not find GL/gl.h
Reported by: | Marcel van den Boer | Owned by: | Wayne Blaszczyk |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | BOOK | Version: | SVN |
Severity: | normal | Keywords: | mesalib mesademos mesa gl.h |
Cc: |
Description ¶
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.
Change History (4)
by , 14 years ago
Attachment: | MesaLib-7.9-add_xdemos-2.patch added |
---|
comment:1 by , 14 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
Note:
See TracTickets
for help on using tickets.
Updated patch file which solves this issue.