README-raspberrypi.txt 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. ================================================================================
  2. SDL2 for Raspberry Pi
  3. ================================================================================
  4. Requirements:
  5. Raspbian (other Linux distros may work as well).
  6. ================================================================================
  7. Features
  8. ================================================================================
  9. * Works without X11
  10. * Hardware accelerated OpenGL ES 2.x
  11. * Sound via ALSA
  12. * Input (mouse/keyboard/joystick) via EVDEV
  13. * Hotplugging of input devices via UDEV
  14. ================================================================================
  15. Raspbian Build Dependencies
  16. ================================================================================
  17. sudo apt-get install libudev-dev libasound2-dev
  18. You also need the VideoCore binary stuff that ships in /opt/vc for EGL and
  19. OpenGL ES 2.x, it usually comes pre installed, but in any case:
  20. sudo apt-get install libraspberrypi0 libraspberrypi-bin libraspberrypi-dev
  21. ================================================================================
  22. No HDMI Audio
  23. ================================================================================
  24. If you notice that ALSA works but there's no audio over HDMI, try adding:
  25. hdmi_drive=2
  26. to your config.txt file and reboot.
  27. Reference: http://www.raspberrypi.org/phpBB3/viewtopic.php?t=5062
  28. ================================================================================
  29. Notes
  30. ================================================================================
  31. * Building has only been tested natively (i.e. not cross compiled). Cross
  32. compilation might work though, feedback is welcome!
  33. * No Text Input yet.