Cappuccino-jay 2022-06-02 09:37 采纳率: 100%
浏览 226
已结题

【openscenegraph】Ubuntu测试osgEarth出错

1、在Firefly开发板上编译安装 osgEarth,然后测试样例
2、操作系统是ubuntu20.04
3、首先从osgEarth官网下载压缩包,解压到ubuntu本地
4、然后下载osg以及osgearth的各种库文件
5、然后对osgEarth进行 cmake、make 和 make install
6、编译成功后,开始测试案例 osgearth_viewer sample.earth
7、结果运行报错了

img


img

终端错误输出:

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有关系)

  • 写回答

3条回答 默认 最新

  • hejh001 2022-06-13 16:48
    关注

    img


    img


    大佬,您好!我也刚好遇到这个问题,按您的方法处理,竟然找不到 libglx-dev啊,请问大佬会是什么原因呢?

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论 编辑记录
查看更多回答(2条)

报告相同问题?

问题事件

  • 系统已结题 7月6日
  • 已采纳回答 6月28日
  • 修改了问题 6月2日
  • 创建了问题 6月2日

悬赏问题

  • ¥25 由IPR导致的DRIVER_POWER_STATE_FAILURE蓝屏
  • ¥50 有数据,怎么建立模型求影响全要素生产率的因素
  • ¥50 有数据,怎么用matlab求全要素生产率
  • ¥15 TI的insta-spin例程
  • ¥15 完成下列问题完成下列问题
  • ¥15 C#算法问题, 不知道怎么处理这个数据的转换
  • ¥15 YoloV5 第三方库的版本对照问题
  • ¥15 请完成下列相关问题!
  • ¥15 drone 推送镜像时候 purge: true 推送完毕后没有删除对应的镜像,手动拷贝到服务器执行结果正确在样才能让指令自动执行成功删除对应镜像,如何解决?
  • ¥15 求daily translation(DT)偏差订正方法的代码