Problem compiling on Raspberry Pi (Bookworm 64bits), go 1.24.1, #491
Unanswered
SnapshotCiTy
asked this question in
Q&A
Replies: 2 comments
-
Hey, you can try using the following build tags: go build -tags x11,opengl21 . x11 tells the compiler not to link Wayland libraries opengl21 is required, because the raspberry pi 3 doesn't support newer opengl versions |
Beta Was this translation helpful? Give feedback.
0 replies
-
@SnapshotCiTy The GLFW can work with both Wayland and X11 by default, and it will choose the backend at runtime. That is the recommended way for all Linux apps. So either install header files and build or force just the X11. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello. I'm trying to get Raylib to work, with go 1.24.1 and raylib-go on a Raspberry Pi 3+ with the Raspbian OS (Debian Bookworm 64bits)... and I'm hitting my head against a wall.
installed raylib and raylib-go in my project's directory with the standard :
go get -v -u github.com/gen2brain/raylib-go/raylib
and when compiling a simple go program with the basic raylib boiler plate to open a window and draw a text, I'm getting the error:
I guess glfw is trying to use wayland related interfaces and if I understand well the Raspbian OS doesn't use wayland. I'm not very used to linux and I do not know how to tell 'it' to compile differently. Posts I found by googling were relative to compiling C sources on the raspberry pi, but I didn't find anything for go + go-raylib. Would love to be able to use Go + go-raylib on a rasbperry pi - in pretty much the same way I do on the mac.
Can anyone help?
Beta Was this translation helpful? Give feedback.
All reactions