Last active
January 10, 2016 06:18
-
-
Save tdack/81092cfc7edf5434ae7f to your computer and use it in GitHub Desktop.
Kivy Raspberry Pi installation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pi@raspberrypi ~ $ 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 | |
pi@raspberrypi ~ $ sudo pip install git+https://github.com/kivy/kivy.git@master | |
pi@raspberrypi ~ $ sudo apt-get install python-{pygments,docutils} | |
pi@raspberrypi ~ $ sudo systemctl stop lightdm.service | |
pi@raspberrypi ~ $ sudo chvt 1 | |
pi@raspberrypi ~ $ cp ~/.kivy/config.ini ~/.kivy/config.ini.orig | |
pi@raspberrypi ~ $ nano -w ~/.kivy/config.ini | |
pi@raspberrypi ~ $ diff -u ~/.kivy/config.ini{.orig,} | |
--- /home/pi/.kivy/config.ini.orig 2016-01-10 14:52:13.527931838 +1100 | |
+++ /home/pi/.kivy/config.ini 2016-01-10 14:31:01.476158182 +1100 | |
@@ -34,6 +34,8 @@ | |
[input] | |
mouse = mouse | |
%(name)s = probesysfs,provider=hidinput | |
+mtdev_%(name)s = probesysfs,provider=mtdev | |
+hid_%(name)s = probesysfs,provider=hidinput | |
[postproc] | |
double_tap_distance = 20 | |
pi@raspberrypi ~ $ cd /usr/local/share/kivy-examples/demo/showcase | |
pi@raspberrypi /usr/local/share/kivy-examples/demo/showcase $ python main.py | |
[INFO ] [Logger ] Record log in /home/pi/.kivy/logs/kivy_16-01-10_3.txt | |
[INFO ] [Kivy ] v1.9.2-dev0 | |
[INFO ] [Python ] v2.7.9 (default, Mar 8 2015, 00:52:26) | |
[GCC 4.9.2] | |
[INFO ] [Factory ] 179 symbols loaded | |
[INFO ] [Image ] Providers: img_tex, img_dds, img_gif, img_sdl2, img_pil (img_ffpyplayer ignored) | |
[INFO ] [Window ] Provider: egl_rpi | |
[INFO ] [GL ] OpenGL version <OpenGL ES 2.0> | |
[INFO ] [GL ] OpenGL vendor <Broadcom> | |
[INFO ] [GL ] OpenGL renderer <VideoCore IV HW> | |
[INFO ] [GL ] OpenGL parsed version: 2, 0 | |
[INFO ] [GL ] Shading version <OpenGL ES GLSL ES 1.00> | |
[INFO ] [GL ] Texture max size <2048> | |
[INFO ] [GL ] Texture max units <8> | |
[INFO ] [Shader ] fragment shader: <Compiled> | |
[INFO ] [Shader ] vertex shader: <Compiled> | |
[INFO ] [Window ] virtual keyboard not allowed, single mode, not docked | |
[INFO ] [Text ] Provider: sdl2 | |
Unable to init server: Could not connect: Connection refused | |
Unable to init server: Could not connect: Connection refused | |
(main.py:874): Gtk-CRITICAL **: gtk_clipboard_get_for_display: assertion 'display != NULL' failed | |
[INFO ] [Clipboard ] Provider: gtk3(['clipboard_dbusklipper'] ignored) | |
[CRITICAL ] [Cutbuffer ] Unable to find any valuable Cutbuffer provider at all! | |
xclip - OSError: [Errno 2] No such file or directory | |
File "/usr/local/lib/python2.7/dist-packages/kivy/core/__init__.py", line 59, in core_select_lib | |
fromlist=[modulename], level=0) | |
File "/usr/local/lib/python2.7/dist-packages/kivy/core/clipboard/clipboard_xclip.py", line 17, in <module> | |
p = subprocess.Popen(['xclip', '-version'], stdout=subprocess.PIPE) | |
File "/usr/lib/python2.7/subprocess.py", line 710, in __init__ | |
errread, errwrite) | |
File "/usr/lib/python2.7/subprocess.py", line 1335, in _execute_child | |
raise child_exception | |
xsel - OSError: [Errno 2] No such file or directory | |
File "/usr/local/lib/python2.7/dist-packages/kivy/core/__init__.py", line 59, in core_select_lib | |
fromlist=[modulename], level=0) | |
File "/usr/local/lib/python2.7/dist-packages/kivy/core/clipboard/clipboard_xsel.py", line 15, in <module> | |
p = subprocess.Popen(['xsel'], stdout=subprocess.PIPE) | |
File "/usr/lib/python2.7/subprocess.py", line 710, in __init__ | |
errread, errwrite) | |
File "/usr/lib/python2.7/subprocess.py", line 1335, in _execute_child | |
raise child_exception | |
[INFO ] [GL ] NPOT texture support is available | |
[INFO ] [OSC ] using <multiprocessing> for socket | |
[INFO ] [ProbeSysfs ] device match: /dev/input/event0 | |
[INFO ] [HIDInput ] Read event from </dev/input/event0> | |
[INFO ] [ProbeSysfs ] device match: /dev/input/event0 | |
[INFO ] [MTD ] Read event from </dev/input/event0> | |
[INFO ] [ProbeSysfs ] device match: /dev/input/event0 | |
[INFO ] [HIDInput ] Read event from </dev/input/event0> | |
[INFO ] [Base ] Start application main loop | |
[INFO ] [HIDMotionEvent] using <FT5406 memory based driver> | |
[INFO ] [MTD ] </dev/input/event0> range position X is 0 - 800 | |
[INFO ] [HIDMotionEvent] <FT5406 memory based driver> range ABS X position is 0 - 800 | |
[INFO ] [MTD ] </dev/input/event0> range position Y is 0 - 480 | |
[INFO ] [HIDMotionEvent] <FT5406 memory based driver> range ABS Y position is 0 - 480 | |
[INFO ] [MTD ] </dev/input/event0> range touch major is 0 - 0 | |
[INFO ] [HIDMotionEvent] using <FT5406 memory based driver> | |
[INFO ] [HIDMotionEvent] <FT5406 memory based driver> range position X is 0 - 800 | |
[INFO ] [MTD ] </dev/input/event0> range touch minor is 0 - 0 | |
[INFO ] [MTD ] </dev/input/event0> range pressure is 0 - 255 | |
[WARNING ] [Accordion ] not enough space for displaying all children | |
[INFO ] [HIDMotionEvent] <FT5406 memory based driver> range position Y is 0 - 480 | |
[INFO ] [HIDMotionEvent] <FT5406 memory based driver> range ABS X position is 0 - 800 | |
[INFO ] [HIDMotionEvent] <FT5406 memory based driver> range ABS Y position is 0 - 480 | |
[WARNING ] [Accordion ] need 132px, got 100px | |
[INFO ] [MTD ] </dev/input/event0> axes invertion: X is 0, Y is 0 | |
[INFO ] [HIDMotionEvent] <FT5406 memory based driver> range position X is 0 - 800 | |
[WARNING ] [Accordion ] layout aborted. | |
[INFO ] [MTD ] </dev/input/event0> rotation set to 0 | |
[INFO ] [HIDMotionEvent] <FT5406 memory based driver> range position Y is 0 - 480 | |
[WARNING ] [Accordion ] not enough space for displaying all children | |
[WARNING ] [Accordion ] need 132px, got 84px | |
[WARNING ] [Accordion ] layout aborted. | |
[WARNING ] [Accordion ] not enough space for displaying all children | |
[WARNING ] [Accordion ] need 132px, got 84px | |
[WARNING ] [Accordion ] layout aborted. | |
[INFO ] [VideoGstplayer] Using Gstreamer 1.4.4.0 | |
[INFO ] [Video ] Provider: gstplayer | |
[INFO ] [Shader ] fragment shader: <Compiled> | |
^C[INFO ] [Base ] Leaving application in progress... | |
Traceback (most recent call last): | |
File "main.py", line 238, in <module> | |
ShowcaseApp().run() | |
File "/usr/local/lib/python2.7/dist-packages/kivy/app.py", line 828, in run | |
runTouchApp() | |
File "/usr/local/lib/python2.7/dist-packages/kivy/base.py", line 487, in runTouchApp | |
EventLoop.window.mainloop() | |
File "/usr/local/lib/python2.7/dist-packages/kivy/core/window/window_egl_rpi.py", line 89, in mainloop | |
self._mainloop() | |
File "/usr/local/lib/python2.7/dist-packages/kivy/core/window/window_egl_rpi.py", line 84, in _mainloop | |
EventLoop.idle() | |
File "/usr/local/lib/python2.7/dist-packages/kivy/base.py", line 327, in idle | |
Clock.tick() | |
File "/usr/local/lib/python2.7/dist-packages/kivy/clock.py", line 493, in tick | |
usleep(1000000 * (sleeptime - sleep_undershoot)) | |
File "/usr/local/lib/python2.7/dist-packages/kivy/clock.py", line 285, in usleep | |
_libc_usleep(int(microseconds)) | |
KeyboardInterrupt | |
pi@raspberrypi /usr/local/share/kivy-examples/demo/showcase $ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment