Skip to content
This repository was archived by the owner on Apr 2, 2026. It is now read-only.
This repository was archived by the owner on Apr 2, 2026. It is now read-only.

Patch issues and GLFW issues #61

Description

@furretgd1

Issues

Basically Patch 0004 doesn't work due to an undefined reference as desired is no longer a valid variable in my tested version of GLFW 3.3.9 on Gentoo. Which creates an undefined reference with chooseEGLConfig()

[16/106] /usr/bin/x86_64-pc-linux-gnu-gcc -D_GLFW_USE_CONFIG_H -Dglfw_EXPORTS -I/var/tmp/portage/media-libs/glfw-3.3.9/work/glfw-3.3.9/include -I/var/tmp/portage/media-libs/glfw-3.3.9/work/glfw-3.3.9/src -I/var/tmp/portage/media-libs/glfw-3.3.9/work/glfw-3.3.9_build-abi_x86_64.amd64/src  -march=raptorlake -O2 -pipe -std=gnu99 -fPIC -Wall -fvisibility=hidden -Wdeclaration-after-statement -MD -MT src/CMakeFiles/glfw.dir/egl_context.c.o -MF src/CMakeFiles/glfw.dir/egl_context.c.o.d -o src/CMakeFiles/glfw.dir/egl_context.c.o -c /var/tmp/portage/media-libs/glfw-3.3.9/work/glfw-3.3.9/src/egl_context.c
FAILED: src/CMakeFiles/glfw.dir/egl_context.c.o 
/usr/bin/x86_64-pc-linux-gnu-gcc -D_GLFW_USE_CONFIG_H -Dglfw_EXPORTS -I/var/tmp/portage/media-libs/glfw-3.3.9/work/glfw-3.3.9/include -I/var/tmp/portage/media-libs/glfw-3.3.9/work/glfw-3.3.9/src -I/var/tmp/portage/media-libs/glfw-3.3.9/work/glfw-3.3.9_build-abi_x86_64.amd64/src  -march=raptorlake -O2 -pipe -std=gnu99 -fPIC -Wall -fvisibility=hidden -Wdeclaration-after-statement -MD -MT src/CMakeFiles/glfw.dir/egl_context.c.o -MF src/CMakeFiles/glfw.dir/egl_context.c.o.d -o src/CMakeFiles/glfw.dir/egl_context.c.o -c /var/tmp/portage/media-libs/glfw-3.3.9/work/glfw-3.3.9/src/egl_context.c
/var/tmp/portage/media-libs/glfw-3.3.9/work/glfw-3.3.9/src/egl_context.c: In function ‘chooseEGLConfig’:
/var/tmp/portage/media-libs/glfw-3.3.9/work/glfw-3.3.9/src/egl_context.c:197:34: error: ‘desired’ undeclared (first use in this function)
  197 |         if (u->alphaBits > 0 && !desired->transparent) {
      |                                  ^~~~~~~
/var/tmp/portage/media-libs/glfw-3.3.9/work/glfw-3.3.9/src/egl_context.c:197:34: note: each undeclared identifier is reported only once for each function it appears in

The second issue is related more so to the guide. It unfortunately doesn't provide me with a usable instance giving me the following error with versions < 1.19.x (my tested version being 1.18.2). As it's the latest version I can test without the 1.19 patch.

Screenshot_20240310_153700

I am currently using LWJGL 3.2.2, had this same issue on Arch Linux as well with glfw-wayland, could this possibly be a hardware issue as I am using Nvidia? Or issue with Desktop Environment as I am currently running KDE Plasma 5.27.10.

Any more information can be provided if need be.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions