Firefly开源社区

标题: Ubuntu测试osgEarth出错 [打印本页]

作者: firefly3588    时间: 2022-6-1 18:16
标题: Ubuntu测试osgEarth出错
本帖最后由 firefly3588 于 2022-6-2 09:13 编辑

1、首先从osgEarth官网下载压缩包,解压到ubuntu本地
2、然后下载osg以及osgearth的各种库文件
3、然后对osgEarth进行 cmake、make 和 make install
4、编译成功后,开始运行案例 osgearth_viewer sample.earth
5、结果运行报错了




错误输出:
  1. firefly@firefly:~/ows/3D/Demo/gwaldron-osgearth-ac7c31d/tests$ osgearth_viewer simple.earth
  2. Got an X11ErrorHandling call display=0x55a3f38e50 event=0x7ff47aff08
  3. 167
  4. Major opcode: 150
  5. Minor opcode: 21
  6. Error code: 167
  7. Request serial: 10
  8. Current serial: 10
  9.   ResourceID: 0
  10. Got an X11ErrorHandling call display=0x55a3f38e50 event=0x7ff47aff08
  11. 167
  12. Major opcode: 150
  13. Minor opcode: 21
  14. Error code: 167
  15. Request serial: 11
  16. Current serial: 11
  17.   ResourceID: 0
  18. Error: Not able to create requested visual.
  19. [osgEarth]* [Capabilities] Failed to create graphic window too.
  20. [osgEarth]* [LogarithmicDepthBuffer] Not supported on this platform (no GLSL)
  21. Got an X11ErrorHandling call display=0x55a3fde2f0 event=0x7ff47afa68
  22. 167
  23. Major opcode: 150
  24. Minor opcode: 21
  25. Error code: 167
  26. Request serial: 10
  27. Current serial: 10
  28.   ResourceID: 0
  29. Got an X11ErrorHandling call display=0x55a3fde2f0 event=0x7ff47afa68
  30. 167
  31. Major opcode: 150
  32. Minor opcode: 21
  33. Error code: 167
  34. Request serial: 11
  35. Current serial: 11
  36.   ResourceID: 0
  37. Error: Not able to create requested visual.
  38. SingleWindow::configure - GraphicsWindow has not been created successfully.
  39. Viewer::realize() - failed to set up any windows
  40. Got an X11ErrorHandling call display=0x55a3fde2f0 event=0x7ff47af9f8
  41. 167
  42. Major opcode: 150
  43. Minor opcode: 21
  44. Error code: 167
  45. Request serial: 10
  46. Current serial: 10
  47.   ResourceID: 0
  48. Got an X11ErrorHandling call display=0x55a3fde2f0 event=0x7ff47af9f8
  49. 167
  50. Major opcode: 150
  51. Minor opcode: 21
  52. Error code: 167
  53. Request serial: 11
  54. Current serial: 11
  55.   ResourceID: 0
  56. Error: Not able to create requested visual.
  57. SingleWindow::configure - GraphicsWindow has not been created successfully.
  58. Viewer::realize() - failed to set up any windows
复制代码
请问有朋友知道该怎么解决吗?








欢迎光临 Firefly开源社区 (https://dev.t-firefly.com/) Powered by Discuz! X3.1