Last active
April 29, 2017 13:32
-
-
Save fredmorcos/fbe9b6f4945d94dcab72 to your computer and use it in GitHub Desktop.
Building and running an SDL2 X-less graphics program on ArchlinuxARM on the Raspberry Pi
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
It took me a while to figure out how to get SDL_CreateWindow not to fail on ArchlinuxARM on the Raspberry Pi. So I'm documenting what I did here. It's mostly build flags, for SDL2 and for your program. | |
First of all, SDL2 on ArchlinuxARM doesn't build the Raspberry Pi and EGL backends. So here's the PKGBUILD for that: https://gist.github.com/fredmorcos/9866f5b318435a90c4f9 | |
It essentially disables all the X and Wayland stuff and enables the EGL backend. | |
Now, here's a Makefile for building your program: https://gist.github.com/fredmorcos/0728031217533079cc90 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
FYI, I uploded a PKBUILD based on your work to the AUR.