Cannot find osgEarth

1,287 views
Skip to first unread message

Went Bao

unread,
Jan 24, 2018, 8:14:44 AM1/24/18
to OMNeT++ Users
Hi,
I am trying to install omnetpp-5.2.1 in ubuntu. After several times attempts with ./configure, it always gives :

'checking for OpenSceneGraph with CFLAGS=" -fPIC  -fno-stack-protector  " LIBS="  -losg -losgDB -losgGA -losgViewer -losgUtil -lOpenThreads"... yes
checking for osgEarth with CFLAGS=" -fPIC  -fno-stack-protector  " LIBS="  -losgEarth -losgEarthUtil"... no
configure: error: Cannot find osgEarth. Set WITH_OSGEARTH=no in configure.user to disable this feature or install osgEarth.'

I assure I installed osgEarth by Synaptic and by terminal 'sudo apt-get install osgEarth'. This is what i got from terminal: 'osgearth is already the newest version (2.5.0+dfsg-8build1).'

But when i try to configure it, it still gives me these error messages. Cannot find osgEarth.
I have installed omnetpp in windows and everything went fine. but when it comes to ubuntu, i could not figure it out.






Attila Török

unread,
Jan 24, 2018, 8:26:45 AM1/24/18
to OMNeT++ Users
See section 5.3.1 (bottom of page 17) of the Installation Guide (https://omnetpp.org/doc/omnetpp/InstallGuide.pdf). The osgearth package alone is not enough.

--
You received this message because you are subscribed to the Google Groups "OMNeT++ Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to omnetpp+unsubscribe@googlegroups.com.
Visit this group at https://groups.google.com/group/omnetpp.
For more options, visit https://groups.google.com/d/optout.

Went Bao

unread,
Jan 24, 2018, 8:43:35 AM1/24/18
to OMNeT++ Users
Thanks for your reply. 

I have done all of them 5.3.1 and even tried 5.3.2. 
Then I still have this problem. so i come to this group to ask


On Wednesday, 24 January 2018 13:26:45 UTC, Attila Török wrote:
See section 5.3.1 (bottom of page 17) of the Installation Guide (https://omnetpp.org/doc/omnetpp/InstallGuide.pdf). The osgearth package alone is not enough.
2018-01-24 14:14 GMT+01:00 Went Bao <went...@gmail.com>:
Hi,
I am trying to install omnetpp-5.2.1 in ubuntu. After several times attempts with ./configure, it always gives :

'checking for OpenSceneGraph with CFLAGS=" -fPIC  -fno-stack-protector  " LIBS="  -losg -losgDB -losgGA -losgViewer -losgUtil -lOpenThreads"... yes
checking for osgEarth with CFLAGS=" -fPIC  -fno-stack-protector  " LIBS="  -losgEarth -losgEarthUtil"... no
configure: error: Cannot find osgEarth. Set WITH_OSGEARTH=no in configure.user to disable this feature or install osgEarth.'

I assure I installed osgEarth by Synaptic and by terminal 'sudo apt-get install osgEarth'. This is what i got from terminal: 'osgearth is already the newest version (2.5.0+dfsg-8build1).'

But when i try to configure it, it still gives me these error messages. Cannot find osgEarth.
I have installed omnetpp in windows and everything went fine. but when it comes to ubuntu, i could not figure it out.






--
You received this message because you are subscribed to the Google Groups "OMNeT++ Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to omnetpp+u...@googlegroups.com.

Attila Török

unread,
Jan 24, 2018, 3:14:46 PM1/24/18
to OMNeT++ Users
Could you attach the config.log file created by ./configure after the error? That might help us solve the problem.

To unsubscribe from this group and stop receiving emails from it, send an email to omnetpp+unsubscribe@googlegroups.com.
Message has been deleted

Parth Suresh

unread,
May 12, 2018, 4:45:13 AM5/12/18
to OMNeT++ Users
Hi, I'm facing the same problem with omentpp-5.3. I've attached my config.log file.
config.log

Alfonso Ariza Quintana

unread,
May 14, 2018, 3:50:12 AM5/14/18
to omn...@googlegroups.com

You can install the package

sudo apt-get install osgearth

 

If this doesn’t install the development library you can force to install them with

sudo apt-get install libosgearth-dev

Attila Török

unread,
May 14, 2018, 8:28:55 AM5/14/18
to OMNeT++ Users
Hi Parth Suresh!

If Alfonso's suggestion doesn't solve your problem, you could also try installing the libgeos-dev package (sudo apt-get install libgeos-dev), then editing the configure.user file in your OMNeT++ source directory, replacing the

#OSGEARTH_LIBS=

line with this:

OSGEARTH_LIBS=" -losgEarth -losgEarthUtil -lgeos_c "

(removing the hashmark at the beginning!)

Then running . setenv and ./configure again.

It seems that others have also had this problem before, and this solved it for them: http://gmt.soest.hawaii.edu/boards/1/topics/4621 and https://trac.osgeo.org/postgis/changeset/11363

Let me know if this helped,
Attila

Parth Suresh

unread,
May 14, 2018, 11:05:26 AM5/14/18
to omn...@googlegroups.com
Hi Attila, 

Your fix works! It's installed fine now.

Thanks,
Parth.

To unsubscribe from this group and stop receiving emails from it, send an email to omnetpp+unsubscribe@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "OMNeT++ Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to omnetpp+unsubscribe@googlegroups.com.

Visit this group at https://groups.google.com/group/omnetpp.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "OMNeT++ Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to omnetpp+unsubscribe@googlegroups.com.

Pooja Chandrasekharan

unread,
Feb 1, 2023, 3:55:21 PM2/1/23
to OMNeT++ Users
Hi all,

I'm unable to install OMNET++ 5.6.2 on Ubuntu Ubuntu 22.04.1 LTS. I'm receiving the following error: 

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.

I tired all the steps mentioned here above but still facing issues. 

Can anyone please help me as this is really important for me to work on my thesis? 

Thanks,
Pooja
Reply all
Reply to author
Forward
0 new messages