在 linux 上安装并 运行 osgEarth

install and run osgEarth on linux

我正在尝试在 Fedora 上使用 Qt 编译 osgearth 库。我通过这个命令安装 osgEarth:

dnf install osgearth-devel

通过在终端中输入 osgearth,会显示中间有一个圆圈的黑屏。我认为 osgEarth 已安装并正常工作。 我想在 Qt 中使用 osgEarth 库,但我不能。 有没有人可以帮助我?

安装osgearth后,我们可以在终端中使用osgearth viewer file.earth到运行osgearth。要在 Qt 中使用 osgearth,我们必须首先将 osgearth 库添加到我的项目中。 This simple example可以帮到你。