gl: Error compile gst-plugins-base 1.24.1: EGL_PLATFORM_SURFACELESS_MESA' undeclared
When compiling for some devices there is such an error:
[238/793] arm-oe-linux-gnueabi-gcc -march=armv7-a -mfpu=neon -mfloat-abi=hard -D_TIME_BITS=64 -D_FILE_OFFSET_BITS=64 --sysroot=/home/foxbob/test/openpli-oe-core/build/tmp/work/armv7ahf-neon-oe-linux-gnueabi/gstreamer1.0-plugins-base/1.24.1/recipe-sysroot -Igst-libs/gst/gl/libgstgl-1.0.so.0.2401.0.p -I/home/foxbob/test/openpli-oe-core/build/tmp/work/armv7ahf-neon-oe-linux-gnueabi/gstreamer1.0-plugins-base/1.24.1/build/gst-libs/gst/gl -I. -I../gst-plugins-base-1.24.1 -Igst-libs -I../gst-plugins-base-1.24.1/gst-libs -I/home/foxbob/test/openpli-oe-core/build/tmp/work/armv7ahf-neon-oe-linux-gnueabi/gstreamer1.0-plugins-base/1.24.1/recipe-sysroot/usr/include/gstreamer-1.0 -I/home/foxbob/test/openpli-oe-core/build/tmp/work/armv7ahf-neon-oe-linux-gnueabi/gstreamer1.0-plugins-base/1.24.1/recipe-sysroot/usr/include/glib-2.0 -I/home/foxbob/test/openpli-oe-core/build/tmp/work/armv7ahf-neon-oe-linux-gnueabi/gstreamer1.0-plugins-base/1.24.1/recipe-sysroot/usr/lib/glib-2.0/include -I/home/foxbob/test/openpli-oe-core/build/tmp/work/armv7ahf-neon-oe-linux-gnueabi/gstreamer1.0-plugins-base/1.24.1/recipe-sysroot/usr/include/orc-0.4 -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -fvisibility=hidden -fno-strict-aliasing -DG_DISABLE_CAST_CHECKS -Wmissing-declarations -Wredundant-decls -Wundef -Wwrite-strings -Wformat -Wformat-nonliteral -Wformat-security -Winit-self -Wmissing-include-dirs -Waddress -Wno-multichar -Wvla -Wpointer-arith -Wmissing-prototypes -Os -pipe -g -feliminate-unused-debug-types -fcanon-prefix-map -fmacro-prefix-map=/home/foxbob/test/openpli-oe-core/build/tmp/work/armv7ahf-neon-oe-linux-gnueabi/gstreamer1.0-plugins-base/1.24.1/gst-plugins-base-1.24.1=/usr/src/debug/gstreamer1.0-plugins-base/1.24.1 -fdebug-prefix-map=/home/foxbob/test/openpli-oe-core/build/tmp/work/armv7ahf-neon-oe-linux-gnueabi/gstreamer1.0-plugins-base/1.24.1/gst-plugins-base-1.24.1=/usr/src/debug/gstreamer1.0-plugins-base/1.24.1 -fmacro-prefix-map=/home/foxbob/test/openpli-oe-core/build/tmp/work/armv7ahf-neon-oe-linux-gnueabi/gstreamer1.0-plugins-base/1.24.1/build=/usr/src/debug/gstreamer1.0-plugins-base/1.24.1 -fdebug-prefix-map=/home/foxbob/test/openpli-oe-core/build/tmp/work/armv7ahf-neon-oe-linux-gnueabi/gstreamer1.0-plugins-base/1.24.1/build=/usr/src/debug/gstreamer1.0-plugins-base/1.24.1 -fdebug-prefix-map=/home/foxbob/test/openpli-oe-core/build/tmp/work/armv7ahf-neon-oe-linux-gnueabi/gstreamer1.0-plugins-base/1.24.1/recipe-sysroot= -fmacro-prefix-map=/home/foxbob/test/openpli-oe-core/build/tmp/work/armv7ahf-neon-oe-linux-gnueabi/gstreamer1.0-plugins-base/1.24.1/recipe-sysroot= -fdebug-prefix-map=/home/foxbob/test/openpli-oe-core/build/tmp/work/armv7ahf-neon-oe-linux-gnueabi/gstreamer1.0-plugins-base/1.24.1/recipe-sysroot-native= -fPIC -pthread -DHAVE_CONFIG_H -DBUILDING_GST_GL '-DG_LOG_DOMAIN="GStreamer-GL"' -MD -MQ gst-libs/gst/gl/libgstgl-1.0.so.0.2401.0.p/egl_gstgldisplay_egl.c.o -MF gst-libs/gst/gl/libgstgl-1.0.so.0.2401.0.p/egl_gstgldisplay_egl.c.o.d -o gst-libs/gst/gl/libgstgl-1.0.so.0.2401.0.p/egl_gstgldisplay_egl.c.o -c ../gst-plugins-base-1.24.1/gst-libs/gst/gl/egl/gstgldisplay_egl.c FAILED: gst-libs/gst/gl/libgstgl-1.0.so.0.2401.0.p/egl_gstgldisplay_egl.c.o arm-oe-linux-gnueabi-gcc -march=armv7-a -mfpu=neon -mfloat-abi=hard -D_TIME_BITS=64 -D_FILE_OFFSET_BITS=64 --sysroot=/home/foxbob/test/openpli-oe-core/build/tmp/work/armv7ahf-neon-oe-linux-gnueabi/gstreamer1.0-plugins-base/1.24.1/recipe-sysroot -Igst-libs/gst/gl/libgstgl-1.0.so.0.2401.0.p -I/home/foxbob/test/openpli-oe-core/build/tmp/work/armv7ahf-neon-oe-linux-gnueabi/gstreamer1.0-plugins-base/1.24.1/build/gst-libs/gst/gl -I. -I../gst-plugins-base-1.24.1 -Igst-libs -I../gst-plugins-base-1.24.1/gst-libs -I/home/foxbob/test/openpli-oe-core/build/tmp/work/armv7ahf-neon-oe-linux-gnueabi/gstreamer1.0-plugins-base/1.24.1/recipe-sysroot/usr/include/gstreamer-1.0 -I/home/foxbob/test/openpli-oe-core/build/tmp/work/armv7ahf-neon-oe-linux-gnueabi/gstreamer1.0-plugins-base/1.24.1/recipe-sysroot/usr/include/glib-2.0 -I/home/foxbob/test/openpli-oe-core/build/tmp/work/armv7ahf-neon-oe-linux-gnueabi/gstreamer1.0-plugins-base/1.24.1/recipe-sysroot/usr/lib/glib-2.0/include -I/home/foxbob/test/openpli-oe-core/build/tmp/work/armv7ahf-neon-oe-linux-gnueabi/gstreamer1.0-plugins-base/1.24.1/recipe-sysroot/usr/include/orc-0.4 -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -fvisibility=hidden -fno-strict-aliasing -DG_DISABLE_CAST_CHECKS -Wmissing-declarations -Wredundant-decls -Wundef -Wwrite-strings -Wformat -Wformat-nonliteral -Wformat-security -Winit-self -Wmissing-include-dirs -Waddress -Wno-multichar -Wvla -Wpointer-arith -Wmissing-prototypes -Os -pipe -g -feliminate-unused-debug-types -fcanon-prefix-map -fmacro-prefix-map=/home/foxbob/test/openpli-oe-core/build/tmp/work/armv7ahf-neon-oe-linux-gnueabi/gstreamer1.0-plugins-base/1.24.1/gst-plugins-base-1.24.1=/usr/src/debug/gstreamer1.0-plugins-base/1.24.1 -fdebug-prefix-map=/home/foxbob/test/openpli-oe-core/build/tmp/work/armv7ahf-neon-oe-linux-gnueabi/gstreamer1.0-plugins-base/1.24.1/gst-plugins-base-1.24.1=/usr/src/debug/gstreamer1.0-plugins-base/1.24.1 -fmacro-prefix-map=/home/foxbob/test/openpli-oe-core/build/tmp/work/armv7ahf-neon-oe-linux-gnueabi/gstreamer1.0-plugins-base/1.24.1/build=/usr/src/debug/gstreamer1.0-plugins-base/1.24.1 -fdebug-prefix-map=/home/foxbob/test/openpli-oe-core/build/tmp/work/armv7ahf-neon-oe-linux-gnueabi/gstreamer1.0-plugins-base/1.24.1/build=/usr/src/debug/gstreamer1.0-plugins-base/1.24.1 -fdebug-prefix-map=/home/foxbob/test/openpli-oe-core/build/tmp/work/armv7ahf-neon-oe-linux-gnueabi/gstreamer1.0-plugins-base/1.24.1/recipe-sysroot= -fmacro-prefix-map=/home/foxbob/test/openpli-oe-core/build/tmp/work/armv7ahf-neon-oe-linux-gnueabi/gstreamer1.0-plugins-base/1.24.1/recipe-sysroot= -fdebug-prefix-map=/home/foxbob/test/openpli-oe-core/build/tmp/work/armv7ahf-neon-oe-linux-gnueabi/gstreamer1.0-plugins-base/1.24.1/recipe-sysroot-native= -fPIC -pthread -DHAVE_CONFIG_H -DBUILDING_GST_GL '-DG_LOG_DOMAIN="GStreamer-GL"' -MD -MQ gst-libs/gst/gl/libgstgl-1.0.so.0.2401.0.p/egl_gstgldisplay_egl.c.o -MF gst-libs/gst/gl/libgstgl-1.0.so.0.2401.0.p/egl_gstgldisplay_egl.c.o.d -o gst-libs/gst/gl/libgstgl-1.0.so.0.2401.0.p/egl_gstgldisplay_egl.c.o -c ../gst-plugins-base-1.24.1/gst-libs/gst/gl/egl/gstgldisplay_egl.c ../gst-plugins-base-1.24.1/gst-libs/gst/gl/egl/gstgldisplay_egl.c: In function 'gst_gl_display_egl_get_from_native': ../gst-plugins-base-1.24.1/gst-libs/gst/gl/egl/gstgldisplay_egl.c:241:39: error: 'EGL_PLATFORM_SURFACELESS_MESA' undeclared (first use in this function) 241 | ret = _gst_eglGetPlatformDisplay (EGL_PLATFORM_SURFACELESS_MESA, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../gst-plugins-base-1.24.1/gst-libs/gst/gl/egl/gstgldisplay_egl.c:241:39: note: each undeclared identifier is reported only once for each function it appears in