Skip to content

Instantly share code, notes, and snippets.

@fredmorcos
Last active April 29, 2017 13:32
Show Gist options
  • Save fredmorcos/fbe9b6f4945d94dcab72 to your computer and use it in GitHub Desktop.
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
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
@pulb
Copy link

pulb commented Oct 27, 2014

Hi, I just encountered the same problem and found your post via google. Did you report the issue to the archlinuxarm devs? Can you submit this PKGBUILD to AUR?

@pulb
Copy link

pulb commented Nov 1, 2014

FYI, I uploded a PKBUILD based on your work to the AUR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment