终端错误输出:
firefly@firefly:~/ows/3D/Demo/gwaldron-osgearth-ac7c31d/tests$ osgearth_viewer simple.earth
Got an X11ErrorHandling call display=0x55a3f38e50 event=0x7ff47aff08
167
Major opcode: 150
Minor opcode: 21
Error code: 167
Request serial: 10
Current serial: 10
ResourceID: 0
Got an X11ErrorHandling call display=0x55a3f38e50 event=0x7ff47aff08
167
Major opcode: 150
Minor opcode: 21
Error code: 167
Request serial: 11
Current serial: 11
ResourceID: 0
Error: Not able to create requested visual.
[osgEarth]* [Capabilities] Failed to create graphic window too.
[osgEarth]* [LogarithmicDepthBuffer] Not supported on this platform (no GLSL)
Got an X11ErrorHandling call display=0x55a3fde2f0 event=0x7ff47afa68
167
Major opcode: 150
Minor opcode: 21
Error code: 167
Request serial: 10
Current serial: 10
ResourceID: 0
Got an X11ErrorHandling call display=0x55a3fde2f0 event=0x7ff47afa68
167
Major opcode: 150
Minor opcode: 21
Error code: 167
Request serial: 11
Current serial: 11
ResourceID: 0
Error: Not able to create requested visual.
SingleWindow::configure - GraphicsWindow has not been created successfully.
Viewer::realize() - failed to set up any windows
Got an X11ErrorHandling call display=0x55a3fde2f0 event=0x7ff47af9f8
167
Major opcode: 150
Minor opcode: 21
Error code: 167
Request serial: 10
Current serial: 10
ResourceID: 0
Got an X11ErrorHandling call display=0x55a3fde2f0 event=0x7ff47af9f8
167
Major opcode: 150
Minor opcode: 21
Error code: 167
Request serial: 11
Current serial: 11
ResourceID: 0
Error: Not able to create requested visual.
SingleWindow::configure - GraphicsWindow has not been created successfully.
Viewer::realize() - failed to set up any windows
请问有朋友知道该怎么解决吗?(不知道是不是跟X11有关系)
Not supported on this platform (no GLSL)
不支持这个平台?
目前问题已经解决了,原来是缺少glx的相关库,之前一直以为是显示服务器的不兼容所致的,开发板用的是Wayland,而报错信息一直是X11错误处理,所以困扰了许久。
解决方案:
$ sudo apt-get install libglx-dev libglx-mesa0