Skip to content

Instantly share code, notes, and snippets.

@mpalpha
Last active June 24, 2019 23:41
Show Gist options
  • Save mpalpha/f6f3613f9db3df02b26bee4c41ad342f to your computer and use it in GitHub Desktop.
Save mpalpha/f6f3613f9db3df02b26bee4c41ad342f to your computer and use it in GitHub Desktop.
fix ubuntu 18.x+ SDL issue for retropie.
# fix ubuntu 18.x+ SDL issue for retropie.
RETROPIECFG=/opt/retropie/configs/all/retropie.cfg
if [ ! -f $RETROPIECFG ]; then
sudo sed --in-place 's/2.0.8/2.0.9/g' $HOME/Retropie-Setup/scriptmodules/supplementary/sdl2.sh
mkdir -R /opt/retropie/configs/all/
echo "own_sdl2=\"0"\" >> /opt/retropie/configs/all/retropie.cfg
sudo rm /usr/share/doc/libsdl2-2.0-0/copyright
sudo apt remove libsdl2-dev
sudo apt --fix-broken install
sudo apt autoremove
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment