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