gl: rpi cross-compile: setup checks made against mesa egl headers but build against proprietary ones
I'm cross-compiling GStreamer 1.18 for RPi board using sysroot directory.
In order to do that I'm using following stanzas in my cross-file:
... [properties] sys_root = '/opt/rpi/sysroot/' pkg_config_libdir = ['/opt/rpi/sysroot/usr/lib/pkgconfig/', '/opt/rpi/sysroot/usr/share/pkgconfig/', '/opt/rpi/sysroot/usr/lib/arm-linux-gnueabihf/pkgconfig/', '/opt/rpi/sysroot/opt/vc/lib/pkgconfig/'] ...
meson setup there are pair of checks made against EGL headers (
On MESA EGL headers both of those checks return YES.
However due to
.../opt/vc/lib/pkgconfig/ pkgconfig entry, additional include path
.../opt/vc/include is used during compilation. Unfortunately there are alternative version of EGL headers available on the path (proprietary version from Broadcom) and those headers have no
As a result compilation fails for every file including EGL headers.
I have used following bcm_host_inc.patch to work around and complete the build. However I'm not sure it's a proper solution.