furmada / PythonOS

A touchscreen interface, library, and app platform for Python and Raspberry Pi.
MIT License
66 stars 14 forks source link

SDL 1.2.15 #30

Open rogueturnip opened 7 years ago

rogueturnip commented 7 years ago

I'm trying to get PythonOS to install on a Nanopi with a buydisplay lcd. The screen starts up and I get cursor movement but the cursor is stuck in the top right corner.

I did some reading around and it seems pygame has an issue with SDL > 1.2.15-5. I wanted to find out if anyone else has run into this issue and if so was a downgrade what fixed it or a jump to a version of SDL 2?

THanks! Great application here!

ottoborden commented 6 years ago

I haven't tried SDL2 on my setup, but I used this very slightly modified script from Adafruit to get SDL 1.2 on RaspberryPi with Adafruit 2.8 TFT+ and the 'Lite' version of the Adafruit Raspbian Jessie distro.

#!/bin/bash

#enable wheezy package sources
echo "deb http://archive.raspbian.org/raspbian wheezy main
" > /etc/apt/sources.list.d/wheezy.list

#set stable as default package source (currently jessie)
echo "APT::Default-release \"jessie\";
" > /etc/apt/apt.conf.d/10defaultRelease

#set the priority for libsdl from wheezy higher then the jessie package
echo "Package: libsdl1.2debian
Pin: release n=jessie
Pin-Priority: -10
Package: libsdl1.2debian
Pin: release n=wheezy
Pin-Priority: 900
" > /etc/apt/preferences.d/libsdl

#install
apt-get update
apt-get -y --force-yes install libsdl1.2debian/wheezy