[Mesa-dev] [Bug 40145] New: gbm.h header not found when building egldisplay.c

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Tue Aug 16 08:50:38 PDT 2011


           Summary: gbm.h header not found when building egldisplay.c
           Product: Mesa
           Version: git
          Platform: Other
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: medium
         Component: Other
        AssignedTo: mesa-dev at lists.freedesktop.org
        ReportedBy: dawitbro at sbcglobal.net

I was just attempting a new build from git (commit f272117d of Aug. 16, 2011)
and hit this build error (truncated output for readability):

make[4]: Entering directory `../src/egl/main'
gcc -c -I../../../include -Wall -g -O2 -Wall -Wmissing-prototypes          \
-std=c99 -ffast-math -fno-strict-aliasing -Wall -g -O2  -fPIC              \
-D_EGL_DRIVER_SEARCH_DIR=\"/usr/lib/x86_64-linux-gnu/egl\" egldisplay.c    \
-o egldisplay.o
egldisplay.c:55:17: fatal error: gbm.h: No such file or directory
compilation terminated.
make[4]: *** [egldisplay.o] Error 1

(I build much more of Mesa than I actually use, so several times a year I find
bugs like this.  ;-)

I am not a developer, so I do not know The Right Way to fix this.  I
experimented with patching 'Makefile' in src/egl/main as follows and got a
successful build:

--- Makefile~    2011-08-16 08:37:13.000000000 -0400
+++ Makefile    2011-08-16 11:34:51.934413785 -0400
@@ -7,7 +7,7 @@

-INCLUDE_DIRS = -I$(TOP)/include
+INCLUDE_DIRS = -I$(TOP)/include -I$(TOP)/src/gbm/main

     eglcompiler.h \

I am attaching the full build output for reference.

Dave W.

Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

More information about the mesa-dev mailing list