|
【应用开发】
Ubuntu测试osgEarth出错
发表于 2022-6-1 18:16:09
浏览:4905
|
回复:0
打印
只看该作者
[复制链接]
楼主
本帖最后由 firefly3588 于 2022-6-2 09:13 编辑
1、首先从osgEarth官网下载压缩包,解压到ubuntu本地
2、然后下载osg以及osgearth的各种库文件
3、然后对osgEarth进行 cmake、make 和 make install
4、编译成功后,开始运行案例 osgearth_viewer sample.earth
5、结果运行报错了
错误输出:
- 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
复制代码 请问有朋友知道该怎么解决吗?
|
|