Skip to content

Instantly share code, notes, and snippets.

@rodnaxel
Created March 3, 2021 08:40
Show Gist options
  • Save rodnaxel/3153f274dce7876fefe5d2291505b7b2 to your computer and use it in GitHub Desktop.
Save rodnaxel/3153f274dce7876fefe5d2291505b7b2 to your computer and use it in GitHub Desktop.
Install and configure kivy for raspberry pi 3
# Build libsdl2
sudo apt build-dep libsdl2
wget http://www.libsdl.org/tmp/SDL-2.0.zip
unzip SDL-2.0.zip
cd SDL-2.0.15-14858
./configure
make
sudo make install
# Copy libsdl2 files to /usr/lib/arm-linux-gnueabihf/
sudo cp -f /usr/local/lib/libSDL2* /usr/lib/arm-linux-gnueabihf/
# Install latest development version PySDL2 (test PySDL2-0.9.8)
sudo python3 -m pip install -U git+https://github.com/marcusva/py-sdl2.git
# Add next string to ~/.kivy/config.ini
# [input]
# mouse = mouse
# %(name)s = probesysfs,provider=mtdev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment