Khem Raj b2dd6be12e freeglut: build without the glvnd distro feature for X11, Wayland and GLES
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>
2026-06-28 00:59:29 -07:00
2026-06-23 00:45:59 -07:00
2026-05-12 01:06:58 -07:00
2025-04-10 08:31:06 -07:00
2019-06-15 16:45:33 -07:00
2026-03-02 19:25:48 -08:00

Collection of layers for the OE-core universe

Main layer maintainer: Khem Raj raj.khem@gmail.com

This repository is a collection of layers to supplement OE-Core with additional packages, Each layer have designated maintainer Please see the respective READMEs in the layer subdirectories

S
Description
No description provided
Readme 118 MiB
Languages
BitBake 86.3%
Shell 5.9%
C 2.7%
Roff 1.9%
NASL 1.7%
Other 1.3%