-
Notifications
You must be signed in to change notification settings - Fork 214
Install SDL on Raspberry Pi
Calvin Hass edited this page Feb 3, 2019
·
4 revisions
Overview > Installing on Raspberry Pi >
- Before any further installation, it is best to ensure everything is up-to-date by issuing:
sudo apt-get update
- Now let's install the SDL1.2 package
sudo apt-get install libsdl1.2-dev
sudo apt-get install libsdl-image1.2-dev
sudo apt-get install libsdl-ttf2.0-dev
- The GUIslice library includes some example tests for SDL operation that will be helpful to ensure your installation is configured correctly. Therefore, it would be useful to fetch a copy of the GUIslice library at this step.
- To keep things organized, optionally create a subfolder (eg.
cd ~; mkdir dev; cd dev
) git clone https://github.com/ImpulseAdventure/GUIslice
- Now let's test out the GUIslice SDL examples
cd GUIslice/examples/linux
make test_sdl1
- Run the example with
sudo ./test_sdl1
- If SDL1.2 has been installed and configured correctly, you should see the PiTFT display show a colorful gradient
- Now that the graphics drivers are working correctly, we can proceed to install the tslib touch drivers