mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-07-17 04:37:19 +00:00
b2dd6be12e
freeglut's CMake used FIND_PACKAGE(OpenGL REQUIRED COMPONENTS OpenGL), which demands the GLVND libOpenGL.so (OPENGL_opengl_LIBRARY). Without the glvnd distro feature libglvnd is not built, so do_configure fails on the X11, Wayland and GLES paths: CMake Error: Could NOT find OpenGL (missing: OPENGL_opengl_LIBRARY) CMake's FindOpenGL also couples the EGL component to GLVND: requesting EGL without GLES2/GLES3 unconditionally adds OPENGL_opengl_LIBRARY, so dropping the "OpenGL" component alone is not enough. Extend the legacy-OpenGL patch to: * X11/GLES: drop the unsatisfiable GLVND "OpenGL" component from FIND_PACKAGE and link the legacy OpenGL::GL target. * Wayland: find EGL via pkg-config (PkgConfig::EGL), which is independent of GLVND, and link the legacy OpenGL::GL target. Verified by building freeglut for qemux86-64 with x11+wayland and no glvnd (configure, compile, install, package) and re-checking freeglut-gles configures. Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>