qmlglsink: fix build on EGL platform without X11 headers

If Mesa is built without X11 headers, building against Mesa EGL headers
requires a dependency on egl.pc, to define MESA_EGL_NO_X11_HEADERS.
This fixes a build error when compiling ext/qt/gstqtglutility.cc:

  In file included from /usr/include/EGL/egl.h:39,
                   from /usr/include/gstreamer-1.0/gst/gl/egl/gstegl.h:44,
                   from ../gst-plugins-good-1.16.1/ext/qt/gstqtglutility.cc:43:
  /usr/include/EGL/eglplatform.h:124:10: fatal error: X11/Xlib.h: No such file or directory
This commit is contained in:
Philipp Zabel 2019-12-03 11:36:07 +01:00 committed by GStreamer Merge Bot
parent 1df530eaa7
commit c47a585052

View file

@ -89,6 +89,8 @@ if have_cxx and build_gstgl
if gst_gl_have_platform_egl if gst_gl_have_platform_egl
# Embedded linux (e.g. i.MX6) with or without windowing support # Embedded linux (e.g. i.MX6) with or without windowing support
qt_defines += ['-DHAVE_QT_EGLFS'] qt_defines += ['-DHAVE_QT_EGLFS']
egl_dep = dependency('egl', required : false)
optional_deps += egl_dep
have_qt_windowing = true have_qt_windowing = true
if have_qpa_include if have_qpa_include
# Wayland windowing # Wayland windowing