Skip to content

raylib: auto-detect aarch64 as PLATFORM_COMMA#47

Closed
adeebshihadeh wants to merge 2 commits intomasterfrom
fix-raylib-platform
Closed

raylib: auto-detect aarch64 as PLATFORM_COMMA#47
adeebshihadeh wants to merge 2 commits intomasterfrom
fix-raylib-platform

Conversation

@adeebshihadeh
Copy link
Contributor

Summary

  • Auto-detect aarch64 Linux as PLATFORM_COMMA in both build.sh and build.py
  • Previously only checked for /TICI file, which doesn't exist during CI builds on ubuntu-24.04-arm
  • Without this, the build defaults to PLATFORM_DESKTOP which links against X11/libGLX, causing GLFW: X11: The DISPLAY environment variable is missing on comma devices

Test plan

  • CI arm64 build should produce a wheel linked against EGL/GBM/DRM instead of X11
  • Verify with ldd that the built _raylib_cffi.abi3.so has no X11 dependencies
  • Flash agnOS with the new wheel and confirm ui starts without raylib errors

🤖 Generated with Claude Code

adeebshihadeh and others added 2 commits March 4, 2026 11:41
The /TICI file doesn't exist during CI builds on ubuntu-24.04-arm,
so the platform detection fell through to PLATFORM_DESKTOP which
links against X11. This caused "GLFW: X11: The DISPLAY environment
variable is missing" errors on comma devices.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@adeebshihadeh
Copy link
Contributor Author

Not needed — the fix belongs in agnos-builder's Dockerfile instead (set RAYLIB_PLATFORM=PLATFORM_COMMA at build time). Auto-detecting aarch64 as PLATFORM_COMMA would break non-comma aarch64 devices.

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.

1 participant