Bug 39821

Summary: HEAD won't compile without X11 headers
Product: Mesa Reporter: slowcoder
Component: Mesa coreAssignee: mesa-dev
Status: RESOLVED FIXED QA Contact:
Severity: minor    
Priority: medium    
Version: git   
Hardware: All   
OS: All   
Whiteboard:
i915 platform: i915 features:

Description slowcoder 2011-08-03 21:50:11 UTC
Building HEAD ( babb26776fadb683be9dacb492efcdc455b176ab ) on a system without X11 installed gives a compilation error for not finding X11/Xlib.h as included from the file include/EGL/eglplatform.h:104 .

configure flags:
EGL_PLATFORM=drm ./configure --disable-glx --disable-dri --with-gallium-drivers=swrast --with-egl-platforms=drm --enable-gles1 --enable-gles2 --without-x --disable-xlib-glx

It would seem MESA_EGL_NO_X11_HEADERS never gets defined..
Comment 1 Quentin "Sardem FF7" Glidic 2013-02-02 21:17:54 UTC
Also, EGL users which are including EGL/eglplatform.h are highly unlikely to define MESA_EGL_NO_X11_HEADERS either, so we need to define it in a way that users will have the definition too.

Maybe putting a CFLAGS in egl.pc?
Comment 2 Ian Romanick 2015-11-30 23:58:42 UTC
Please reopen if this is still a problem.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.