在我的Raspberry Pi上运行Kivy应用程序可以得到如下输出:
[INFO ] [Logger ] Record log in /home/pi/.kivy/logs/kivy_16-04-26_23.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 ] 193 symbols loaded
[INFO ] [Image ] Providers: img_tex, img_dds, img_gif, img_pygame, img_pil (img_ffpyplayer ignored)
[INFO ] [Text ] Provider: pygame
[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 ] [OSC ] using <multiprocessing> for socket
[INFO ] [Base ] Start application main loop
[INFO ] [GL ] NPOT texture support is available
但是,没有窗口启动。注意Provider: egl_rpi
。在
在我的Windows Kivy中,提供程序是SDL2。此外,我还可以使用SDL作为Raspberry Pi上的提供商来启动一个mp3视频示例:
^{pr2}$我的问题是:如何将Pi上Kivy的Provider更改为SDL2?在
将以下代码行添加到Python文件的顶部,应该会将提供程序切换到sdl2
参考号:here
我和你有同样的问题,没有窗口显示
egl_rpi
。我切换到SDL2
,但应用程序无法加载。我相信这是因为我的3.5英寸SPI显示器有一个自定义驱动程序。也许你会有更好的运气与你的视频驱动程序。在相关问题 更多 >
编程相关推荐