c++linuxqtopenscenegraphosgearth

install and run osgEarth on linux


I'm trying to compile osgearth library with Qt on Fedora. I install osgEarth by this command:

dnf install osgearth-devel

By typing osgearth in terminal, a black screen with a circle in the middle is displayed. I think that osgEarth is installed and worked correctly. I want use osgEarth library in Qt, but I can not. Is there anyone who can help me?


Solution

  • After install osgearth, we can use osgearth viewer file.earth in terminal to run osgearth. For use osgearth in Qt, we must first add osgearth library to my project. This simple example can help you.