From 9466395930c903dff615ba1466e6a4996f6b6bd9 Mon Sep 17 00:00:00 2001 From: Ben Hagen Date: Sat, 24 Oct 2015 00:37:36 +0200 Subject: [PATCH] doc: update raspberry pi installation instructions (wip) do not merge yet I am still unhappy with the developer installation part. I think we need to explain more clearly when and how to install the developer version. It depends if one would want to develop kivy itself (get via git and install inplace) or just use the dev version right? --- doc/sources/installation/installation-rpi.rst | 53 +++++++++++++------ 1 file changed, 38 insertions(+), 15 deletions(-) diff --git a/doc/sources/installation/installation-rpi.rst b/doc/sources/installation/installation-rpi.rst index 2cc2b0a65..9d0e3e20e 100644 --- a/doc/sources/installation/installation-rpi.rst +++ b/doc/sources/installation/installation-rpi.rst @@ -6,12 +6,37 @@ Installation on Raspberry Pi You can install Kivy manually, or you can download and boot KivyPie on the Raspberry Pi. Both options are described below. -Note that Kivy has been tested with the original Raspberry Pi Model A/B. No -guarantee is made that it will work on a Raspberry Pi 2. + +Manual installation (On Raspbian Jessie) +---------------------------------------- + +#. Install the dependencies:: + + sudo apt-get update + sudo apt-get install libsdl2-dev libsdl2-image-dev libsdl2-mixer-dev libsdl2-ttf-dev \ + pkg-config libgl1-mesa-dev libgles2-mesa-dev \ + python-setuptools libgstreamer1.0-dev git-core \ + gstreamer1.0-plugins-{bad,base,good,ugly} \ + gstreamer1.0-{omx,alsa} python-dev cython -Manual installation -------------------- +#. Install Kivy globally on your system:: + + sudo pip install git+https://github.com/kivy/kivy.git@master + + +#. Or build and use kivy inplace (best for development):: + + git clone https://github.com/kivy/kivy + cd kivy + + make + echo "export PYTHONPATH=$(pwd):\$PYTHONPATH" >> ~/.profile + source ~/.profile + + +Manual installation (On Raspbian Wheezy) +--------------------------------------- #. Add APT sources for Gstreamer 1.0 in `/etc/apt/sources.list`:: @@ -25,8 +50,9 @@ Manual installation #. Install the dependencies:: sudo apt-get update - sudo apt-get install pkg-config libgl1-mesa-dev libgles2-mesa-dev \ - python-pygame python-setuptools libgstreamer1.0-dev git-core \ + sudo apt-get install libsdl2-dev libsdl2-image-dev libsdl2-mixer-dev libsdl2-ttf-dev \ + pkg-config libgl1-mesa-dev libgles2-mesa-dev \ + python-setuptools libgstreamer1.0-dev git-core \ gstreamer1.0-plugins-{bad,base,good,ugly} \ gstreamer1.0-{omx,alsa} python-dev @@ -39,22 +65,19 @@ Manual installation sudo pip install cython -#. Clone and compile Kivy:: +#. Install Kivy globally on your system:: + + sudo pip install git+https://github.com/kivy/kivy.git@master + +#. Or build and use kivy inplace (best for development):: git clone https://github.com/kivy/kivy cd kivy - -#. Build and use kivy inplace (best for development):: - + make echo "export PYTHONPATH=$(pwd):\$PYTHONPATH" >> ~/.profile source ~/.profile -#. Or install Kivy globally on your system:: - - python setup.py build - sudo python setup.py install - KivyPie distribution --------------------