Skip to content

macOS: disable OpenGLES for Monado to fix EGL dependency error - #2

Merged
H644b merged 1 commit into
feature/macosfrom
copilot/configure-build-server-options
Apr 4, 2026
Merged

macOS: disable OpenGLES for Monado to fix EGL dependency error#2
H644b merged 1 commit into
feature/macosfrom
copilot/configure-build-server-options

Conversation

Copilot AI commented Apr 4, 2026

Copy link
Copy Markdown

On macOS with XQuartz installed, CMake finds libGLESv2.dylib at /usr/X11R6/lib/libGLESv2.dylib, causing Monado to enable XRT_HAVE_OPENGLES. Monado then hard-requires EGL when OpenGLES is enabled — which doesn't exist on macOS — making the build fail unconditionally.

Change

  • CMakeLists.txt: Add XRT_HAVE_OPENGLES OFF to the if(APPLE) block so Monado never tries to enable OpenGLES on macOS
if(APPLE)
    ...
    set(XRT_HAVE_OPENGLES OFF CACHE BOOL "" FORCE)
endif()

WiVRn uses Vulkan/MoltenVK on macOS, so OpenGLES is neither needed nor functional there.

@H644b
H644b marked this pull request as ready for review April 4, 2026 02:10
@H644b
H644b merged commit ea0d691 into feature/macos Apr 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants