我通过以下命令在Fedora 22中安装OpenSceneGraph:

 $ sudo dnf install OpenSceneGraph-devel
 $ sudo dnf install OpenSceneGraph


但是当使用osgviewer或osgversion命令时,osg无法运行,并且显示以下消息:

osgviewer: error while loading shared libraries: libosgViewer.so.130: cannot open shared object file: No such file or directory.
osgversion: error while loading shared libraries: libosgDB.so.130: cannot open shared object file: No such file or directory.


怎么了?

最佳答案

# dnf search OpenSceneGraph


...观看所有可用的OpenSceneGraph软件包。

# dnf provides */libosgViewer.so.130
# dnf provides */libosgDB.so.130


...决定提供库的软件包。

# dnf install OpenSceneGraph-libs

关于linux - Fedora中的OpenSceneGraph,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/44745783/

10-13 21:56