在 omnet++ ubuntu 20.04 中使用 osg 和 osgearth

问题描述 投票:0回答:2

我正在尝试将 OpenSceneGraph 和 OSGEarth 模块用于 omnet++。

但是,当我按照 omnet++ 安装指南中所述使用命令安装此软件包时

sudo apt-get install openscenegraph-plugin-osgearth libosgearth-dev    
sudo apt-get install libopenscenegraph-dev

更改 omnet++ 根目录中的

configure.user
文件并运行
./configure
后,我收到此错误:

checking for osgEarth with CFLAGS=" -fPIC  -fno-omit-frame-pointer  " LIBS=" -Wl,--export-dynamic   -losgEarth -losgEarthUtil -lgeos_c "... no
configure: error: Cannot find osgEarth 2.7 or later. Set WITH_OSGEARTH=no in configure.user to disable this feature or install an up to date version of osgEarth.

我尝试删除并重新安装所有软件包并重新安装 omnet 本身。但仍然出现同样的错误

omnet++ osgearth
2个回答
0
投票

我通过安装解决了问题

sudo-apt get install aptitude

libosgearth-dev 包有未满足的依赖关系,需要解决。 aptitude 建议两种解决方案,我选择了第二种,即降级以前安装的软件包。输出是这样的:

~$ sudo aptitude install libosgearth-dev
The following NEW packages will be installed:
  libosgearth-dev{b} 
The following packages will be REMOVED:
  libosgearthsplat5{u} 
0 packages upgraded, 1 newly installed, 1 to remove and 0 not upgraded.
Need to get 0 B/546 kB of archives. After unpacking 2.518 kB will be used.
The following packages have unmet dependencies:
 libosgearth-dev : Depends: libosgearth5 (= 2.10.2+dfsg-2build2) but 2.10.2+dfsg-2build5 is installed
                   Depends: libosgearthannotation5 (= 2.10.2+dfsg-2build2) but 2.10.2+dfsg-2build5 is installed
                   Depends: libosgearthfeatures5 (= 2.10.2+dfsg-2build2) but 2.10.2+dfsg-2build5 is installed
                   Depends: libosgearthsplat5 (= 2.10.2+dfsg-2build2) but it is not going to be installed
                   Depends: libosgearthsymbology5 (= 2.10.2+dfsg-2build2) but 2.10.2+dfsg-2build5 is installed
                   Depends: libosgearthutil5 (= 2.10.2+dfsg-2build2) but 2.10.2+dfsg-2build5 is installed
The following actions will resolve these dependencies:

     Keep the following packages at their current version:
1)     libosgearth-dev [Not Installed]                    



Accept this solution? [Y/n/q/?] n
The following actions will resolve these dependencies:

     Install the following packages:                                            
1)     libcoin80c [4.0.0+ds-1build1 (focal)]                                    
2)     libopenscenegraph160 [3.6.4+dfsg1-3build2 (focal)]                       

     Downgrade the following packages:                                          
3)     libosgearth5 [2.10.2+dfsg-2build5 (now) -> 2.10.2+dfsg-2build2 (focal)]  
4)     libosgearthannotation5 [2.10.2+dfsg-2build5 (now) -> 2.10.2+dfsg-2build2 
5)     libosgearthfeatures5 [2.10.2+dfsg-2build5 (now) -> 2.10.2+dfsg-2build2 (f
6)     libosgearthsplat5 [2.10.2+dfsg-2build5 (now) -> 2.10.2+dfsg-2build2 (foca
7)     libosgearthsymbology5 [2.10.2+dfsg-2build5 (now) -> 2.10.2+dfsg-2build2 (
8)     libosgearthutil5 [2.10.2+dfsg-2build5 (now) -> 2.10.2+dfsg-2build2 (focal



Accept this solution? [Y/n/q/?] Y
The following packages will be DOWNGRADED:
  libosgearth5 libosgearthannotation5 libosgearthfeatures5 
  libosgearthsplat5 libosgearthsymbology5 libosgearthutil5 
The following NEW packages will be installed:
  libcoin80c{a} libopenscenegraph160{a} libosgearth-dev 
0 packages upgraded, 3 newly installed, 6 downgraded, 0 to remove and 0 not upgraded.
Need to get 12,5 MB/13,0 MB of archives. After unpacking 49,0 MB will be used.
Do you want to continue? [Y/n/?] Y

-1
投票

我正在尝试将 opensourcegraph 与 omnet++ 集成,但我找不到任何与此相关的文档。您能告诉我任何来源或链接吗?此外,我也想将 osgEarth 集成到我的项目中。

© www.soinside.com 2019 - 2024. All rights reserved.