我目前正在尝试让Python库Kivy在Ubuntu虚拟机上工作(vagrant box bento / ubuntu-16.04)。我设法让VM使用x11和sdl2显示窗口,甚至可以简单地启动一个Kivy窗口。但是,它会给出分段错误,并且需要openGL版本> = 2.0:
[INFO ] [Window ] Provider: sdl2(['window_egl_rpi'] ignored)
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
[INFO ] [GL ] Using the "OpenGL" graphics system
[INFO ] [GL ] Backend used <gl>
[INFO ] [GL ] OpenGL version <b'1.4 (2.1.2 NVIDIA 375.26)'>
[INFO ] [GL ] OpenGL vendor <b'NVIDIA Corporation'>
[INFO ] [GL ] OpenGL renderer <b'GeForce GTX 1080/PCIe/SSE2'>
[INFO ] [GL ] OpenGL parsed version: 1, 4
[CRITICAL] [GL ] Minimum required OpenGL version (2.0) NOT found!
在主机上,openGL配置为:
>>glxinfo | grep version
server glx version string: 1.4
client glx version string: 1.4
GLX version: 1.4
OpenGL core profile version string: 4.4.0 NVIDIA 375.26
OpenGL core profile shading language version string: 4.40 NVIDIA via Cg compiler
OpenGL version string: 4.5.0 NVIDIA 375.26
OpenGL shading language version string: 4.50 NVIDIA
OpenGL ES profile version string: OpenGL ES 3.2 NVIDIA 375.26
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20
GL_EXT_separate_shader_objects, GL_EXT_shader_implicit_conversions,
在VM上,设置为:
>>glxinfo | grep version
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
server glx version string: 1.4
client glx version string: 1.4
GLX version: 1.4
OpenGL version string: 1.4 (2.1.2 NVIDIA 375.26)
有没有人知道如何使用主机openGL驱动程序获取VM,或者知道如何在VM上安装openGL版本&gt; = 2.0?
最佳, 萨姆