我遵循安装指南并安装了所有提到的软件包。但是,在运行时,我会收到此错误消息。/配置
checking for osgEarth with CFLAGS=" -fPIC -fno-stack-protector " LIBS=" -losgEarth -losgEarthUtil"... 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.下面是指向我的config.log文件的链接:config.log
发布于 2018-05-14 16:38:19
安装libgeos-dev包,然后在我的OMnet++源目录中编辑configure.user文件解决了我的问题。
$ sudo apt-get install libgeos-dev
将#OSGEARTH_LIBS=行更改为:
OSGEARTH_LIBS=" -losgEarth -losgEarthUtil -lgeos_c "
确保在开始的时候删除#。
现在运行:
$ . setenv
$ ./configure而且应该管用..。
其他国家以前也面临过这一问题,这里提到的解决办法解决了它们的问题:
http://gmt.soest.hawaii.edu/boards/1/topics/4621
https://trac.osgeo.org/postgis/changeset/11363
Attila T r k对omnetpp google组(omnetpp@googlegroups.com)的答复
发布于 2018-05-15 12:20:47
找不到osgEarth 2.7或更高版本
osgearth 2.7为Ubuntu 16.04→https://launchpad.net/~ubuntugis/+archive/ubuntu/ppa→
sudo add-apt-repository ppa:ubuntugis/ppa
sudo apt update
sudo apt install libosgearth-dev // you get "2.7"
// All prerequisites :
sudo apt install g++ libxml2-dev libosgearth-dev bison flex clang swig libqt5opengl5-dev qt5-qmake openjdk-8-jre libopenmpi-dev tcl8.5-dev tk8.5-devhttps://stackoverflow.com/questions/50304274
复制相似问题