mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-02 12:32:29 +00:00
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:
parent
1df530eaa7
commit
c47a585052
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue