【发布时间】:2016-04-30 10:15:57
【问题描述】:
我决定在 Kivy 跨平台上做一些编程,并在我的电脑上成功安装了 Kivy。问题是当我运行我的代码时,我得到了这个错误:
[INFO ] [Kivy ] v1.9.1
[INFO ] [Python ] v3.4.4 (v3.4.4:737efcadf5a6, Dec 20 2015, 20:20:57) [MSC v.1600 64 bit (AMD64)]
[INFO ] [Factory ] 179 symbols loaded
[INFO ] [Image ] Providers: img_tex, img_dds, img_gif, img_sdl2 (img_pil, img_ffpyplayer ignored)
[INFO ] [OSC ] using <thread> for socket
[INFO ] [Window ] Provider: sdl2
[INFO ] [GL ] GLEW initialization succeeded
[INFO ] [GL ] OpenGL version <b'1.1.0'>
[INFO ] [GL ] OpenGL vendor <b'Microsoft Corporation'>
[INFO ] [GL ] OpenGL renderer <b'GDI Generic'>
[INFO ] [GL ] OpenGL parsed version: 1, 1
[CRITICAL ] [GL ] Minimum required OpenGL version (2.0) NOT found!
OpenGL version detected: 1.1
Version: b'1.1.0'
Vendor: b'Microsoft Corporation'
Renderer: b'GDI Generic'
Try upgrading your graphics drivers and/or your graphics hardware in case of problems.
The application will leave now.
然后弹出这个错误框:
我已经通过 GPU Caps Viewer 检查了我的 GPU 的 OpenGL 版本,以验证我是否达到了 OpenGL 版本 2.1,但 Kivy 不知何故没有检测到 OpenGL 2.1,而是默认使用 Microsoft 的 GDI Generic。我在互联网上进行了一些研究,发现解决此问题的最佳方法是从您的显卡制造商处更新您的显卡驱动程序,但这在我的情况下不起作用。
我已更新我的图形驱动程序(我在 64 位 Windows 8 上运行 NVIDIA GeForce GT 435M)。
我的问题是:有没有办法让 Kivy 从 GDI 通用驱动程序切换到 NVIDIA 驱动程序?还是其他地方有问题?
【问题讨论】:
-
您是通过 Windows 内置的更新功能更新显卡驱动程序,还是访问 NVidia 网站,手动下载驱动程序安装程序并执行?对于 OpenGL,总是后做,因为出于某种原因,Microsoft 会从通过 Windows 的自动驱动程序安装过程安装的驱动程序中剥离 OpenGL 部分。
标签: python opengl opengl-es kivy