Install SDL on Raspberry Pi - ImpulseAdventure/GUIslice GitHub Wiki
Overview > Installing on Raspberry Pi >
Installing SDL on Raspberry Pi
Install the SDL1.2 library
- 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
Clone the GUIslice library
- 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
Run SDL1.2 Test
- 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
Continue with Touch driver installation
- Now that the graphics drivers are working correctly, we can proceed to install the tslib touch drivers