Building options for EGL/GLES2


#1

Hi

Trying to compile GLFW for GLES2, but my options are ignored :frowning:

linaro@linaro-alip:~/glfw$ cmake -DGLFW_USE_EGL=ON -DGLFW_CLIENT_LIBRARY=glesv2 .
ā€“ Could NOT find Vulkan (missing: VULKAN_LIBRARY VULKAN_INCLUDE_DIR)
ā€“ Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE)
ā€“ Using X11 for window creation
ā€“ Configuring done
ā€“ Generating done
CMake Warning:
Manually-specified variables were not used by the project:

GLFW_CLIENT_LIBRARY
GLFW_USE_EGL

Any idea why?


#2

GLFW no longer uses compile time defines for client APIs but instead has runtime selection, see the chapter on client API window hints.

EDIT: Note that you specify these with glfwWIndowHint().


#3

Thanks, I got it working on my board:

GL_VENDOR: ARM
GL_RENDERER: Mali-T860
GL_VERSION: OpenGL ES 3.2 v1.r14p0-01rel0-git(966ed26).fb73b5772aa0adfbd3ad68351d4226c5

:slight_smile: