README-raspberrypi.txt
author Sam Lantinga <slouken@libsdl.org>
Sat, 28 Sep 2013 14:07:17 -0700
changeset 7766 84b154b1ed71
parent 7753 e4c38f17bfad
child 7778 a571a9947869
permissions -rw-r--r--
Call AddRef() on the device so it doesn't accidentally get released from underneath the caller.
     1 ================================================================================
     2 SDL2 for Raspberry Pi
     3 ================================================================================
     4 
     5 Requirements:
     6 
     7 Raspbian (other Linux distros may work as well).
     8 
     9 ================================================================================
    10  Features
    11 ================================================================================
    12 
    13 * Works without X11
    14 * Hardware accelerated OpenGL ES 2.x
    15 * Sound via ALSA
    16 * Input (mouse/keyboard/joystick) via EVDEV
    17 * Hotplugging of input devices via UDEV
    18 
    19 ================================================================================
    20  Raspbian Build Dependencies
    21 ================================================================================
    22 
    23 sudo apt-get install libudev-dev libasound2-dev
    24 
    25 You also need the VideoCore binary stuff that ships in /opt/vc for EGL and 
    26 OpenGL ES 2.x, it usually comes pre installed, but in any case:
    27     
    28 sudo apt-get install libraspberrypi0 libraspberrypi-bin libraspberrypi-dev
    29 
    30 ================================================================================
    31  No HDMI Audio
    32 ================================================================================
    33 
    34 If you notice that ALSA works but there's no audio over HDMI, try adding:
    35     
    36     hdmi_drive=2
    37     
    38 to your config.txt file and reboot.
    39 
    40 Reference: http://www.raspberrypi.org/phpBB3/viewtopic.php?t=5062
    41 
    42 ================================================================================
    43  Notes
    44 ================================================================================
    45 
    46 * Building has only been tested natively (i.e. not cross compiled). Cross
    47   compilation might work though, feedback is welcome!
    48 * No Text Input yet.