![错误:无法找到 OpenSceneGraph 3.2 或更高版本](https://linux22.com/image/1176679/%E9%94%99%E8%AF%AF%EF%BC%9A%E6%97%A0%E6%B3%95%E6%89%BE%E5%88%B0%20OpenSceneGraph%203.2%20%E6%88%96%E6%9B%B4%E9%AB%98%E7%89%88%E6%9C%AC.png)
我尝试设置 omnet++,但运行时./configure
出现以下错误:
.
.
.
configure: error: Cannot find OpenSceneGraph 3.2 or later - 3D view in Qtenv will not be available. Set WITH_OSG=no in configure.user to disable this feature or install the development package for OpenSceneGraph.
osgversion
在同一目录中运行输出:
OpenSceneGraph Library 3.6.4
我认为这意味着 OpenSceneGraph 安装正常,但我不知道是什么导致了这个错误以及如何解决它。Google 只显示一个结果,即来自 github 上写有此错误的实际代码,没有解决方案。
我没有更改错误中提到的 configure.user 文件,因为我可能需要 OpenSceneGraph 来完成我的工作。OMNeT++ 安装指南链接为:安装指南.pdf
答案1
您必须安装以下软件包开发标头经过
sudo apt-add-repository universe
sudo apt-get update
sudo apt-get install libopenscenegraph-dev
然后恢复编译。