Opened 13 years ago

Closed 13 years ago

Last modified 10 years ago

#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.

Attachments (1)

MesaLib-7.9-add_xdemos-2.patch (64.4 KB ) - added by Marcel van den Boer 13 years ago.
Updated patch file which solves this issue.

Download all attachments as: .zip

Change History (4)

by Marcel van den Boer, 13 years ago

Updated patch file which solves this issue.

comment:1 by Wayne Blaszczyk, 13 years ago

Owner: changed from blfs-book@… to Wayne Blaszczyk
Status: newassigned

comment:2 by Wayne Blaszczyk, 13 years ago

Resolution: fixed
Status: assignedclosed

Updated patch in book.

comment:3 by bdubbs@…, 10 years ago

Milestone: 6.7

Milestone 6.7 deleted

Note: See TracTickets for help on using tickets.