gst1-plugins-base: pin GStreamer GL to the GLES2/EGL API#29520
Open
dangowrt wants to merge 1 commit into
Open
Conversation
The 'gl_api' meson option was left at its 'auto' default, so the
GL plugin probed for desktop OpenGL. OpenWrt's Mesa is built with
-Dglx=disabled and -Dglvnd=disabled on every target, so it ships
no linkable desktop-GL library (no libGL.so, no gl.pc) - desktop
GL is only reachable through EGL. With nothing to satisfy the
probe in the sysroot, meson's cc.find_library('GL') fallback
escaped into the build host's /usr/lib and, on a host that has a
desktop libGL installed, put that foreign library on the link
line, breaking the cross link with:
mold: fatal: /usr/lib/libGL.so: incompatible file type:
riscv64 is expected but got x86_64
Pin -Dgl_api=gles2 and -Dgl_platform=egl to match what Mesa
actually provides (libGLESv2 + libEGL). This is correct on every
target, including x86_64: the desktop-GL link path was never
functional on OpenWrt and only ever "succeeded" by picking up a
host library.
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
📦 Package Details
Maintainer: @thess @flyn-org
Description:
The
gl_apimeson option was left at itsautodefault, so the GL plugin probed for desktop OpenGL. OpenWrt's Mesa is built with-Dglx=disabledand-Dglvnd=disabledon every target, so it ships no linkable desktop-GL library (nolibGL.so, nogl.pc) — desktop GL is only reachable through EGL. With nothing in the sysroot to satisfy the probe, meson'scc.find_library('GL')fallback escaped into the build host's/usr/liband, on a host that has a desktoplibGLinstalled, put that foreign library on the link line:Pinning
-Dgl_api=gles2and-Dgl_platform=eglmatches what Mesa actually provides (libGLESv2+libEGL). This is correct on every target, including x86_64+amdgpu: the desktop-GL link path was never functional on OpenWrt and only ever "succeeded" by picking up a host library.🧪 Run Testing Details
✅ Formalities
If your PR contains a patch:
This PR does not contain a patch; it only adjusts meson configuration in the package Makefile.