-
I am trying to run Ebitengine on the raspberry PI 3 with Bookworm OS and get the following GLX error when trying to run the test rotate example (go run github.com/hajimehoshi/ebiten/v2/examples/rotate@latest) 2023/11/15 06:07:16 VersionUnavailable: GLX: Failed to create context: GLXBadFBConfig I am wondering if this is an issue with the version of OpenGL? Can anyone point me in the right direction? glxinfo shows the following output (truncated for brevity) |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 5 replies
-
No idea, but here's some guesses. A quick search shows that an actual port to Pi would give better results, but it should (?) be possible to at least get it working: #760 Ebitengine also uses GLFW to handle rendering and input, so it might be good to check out how to get that to work first? |
Beta Was this translation helpful? Give feedback.
-
The solution is just forcing the OpenGL version:
At least this worked for me on raspiban bookworm |
Beta Was this translation helpful? Give feedback.
-
A thing that I discovered are some docker images to compile games for arm64. docker pull monkeyx/retro_builder:arm64
docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
docker run --privileged -it --platform=linux/arm64 --name builder64 --volume <your-game-root-path>:<where-to-mount-in-container> monkeyx/retro_builder:arm64 bash These already come with all dependencies for ebitengine except Go, but you can add a binary to the mounted volume(it must be an arm version). Managed to compile for arm64 using the Got this info here: https://portmaster.games/docker.html |
Beta Was this translation helpful? Give feedback.
HI @SolarLune , I tried several versions of ebitengine and several OS images and finally had success with Ubuntu server 20.04.05 LTS (32 bits) and ebitengine v2.6.3.
Anyway, for anyone interested in a working version of ebitengine on RPI3, the following steps should give you a working ebitengine:
You will need a Raspberry PI 3 and SD card