1 准备:
sudo apt-get build-dep openscenegraph #安装必备依赖库
sudo apt-get install mesa-common-dev freeglut3 freeglut3-dev #安装OpenGL库,否则提示找不到文件<GL/gl.h>
2 安装osg
sudo apt install openscenegraph
其他:
sudo apt-get install osgearth libosgearth-dev
sudo apt-get inst

本文详细指导如何通过apt-get安装依赖库,从构建OpenSceneGraph到编译并解决编译过程中缺失库的问题,最后安装和运行osgEarth。涉及的关键步骤包括安装OpenGL库、查看版本、编译及清理工作。

2160

被折叠的 条评论
为什么被折叠?



