Problems in building the OMNeT++

700 views
Skip to first unread message

Ivo Calado

unread,
Dec 16, 2017, 7:24:20 AM12/16/17
to omn...@googlegroups.com
Hi fellows,
   I'm dealing with a problem to build the OMNeT++ 5.2. It is failing with the following errror message:

Copying to: /home/ivocalado/opt/omnetpp-5.2/lib/liboppqtenv.so
cameramanipulators.cc
osgviewer.cc
osgviewer.cc: In constructor ‘omnetpp::qtenv::OsgViewer::OsgViewer(QWidget*)’:
osgviewer.cc:319:31: error: ‘getWindowingSystemInterfaces’ is not a member of ‘osg::GraphicsContext’
         osg::GraphicsContext::getWindowingSystemInterfaces()->addWindowingSystemInterface(WindowingSystemInterface::getInterface());
                               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
At global scope:
cc1plus: warning: unrecognized command line option ‘-Wno-inconsistent-missing-override’

At a first glance, it seems to me that it's a version problem of tkvenv. If so, do you know the specific version required to install?

Thanks in advance
--
Prof. Ivo Calado, D.Sc.
Instituto Federal de Alagoas - http://ifal.edu.br/
Site: http://sigaa.ifal.edu.br/sigaa/public/docente/portal.jsf?siape=1819085

Quidquid latine dictum sit, altum viditur

Putt's Law:
       Technology is dominated by two types of people:
               Those who understand what they do not manage.
               Those who manage what they do not understand.

Rudolf Hornig

unread,
Dec 18, 2017, 6:38:46 AM12/18/17
to OMNeT++ Users
OpenScreenGraph 3.4 and 3.2 was tested with OMNeT++.

If you don't need 3D support, you can safley disable open screen garap and osgEarth in configure.use and reconfigure/rebuild OMNeT++. osg support is optional.

Just out of curiosity, what version of open screen graph you have on your system?

Rudolf

Ivo Calado

unread,
Dec 18, 2017, 7:56:43 AM12/18/17
to omn...@googlegroups.com
Hi Rudolf,
    I have the openscenegraph version 3.5.1-r2 in a Linux gentoo. I fixed the problem by doing a workaround. I commented the #if in osgviewer.cc




After that, it compiled successfully.

--
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.

Attila Török

unread,
Dec 18, 2017, 11:00:11 AM12/18/17
to OMNeT++ Users
Hi!

Thank you for reporting. That check for OSG 3.5.0 was wrong, it should have been 3.5.3. Your build failed because you happened to have an OSG version between these two. This should be fixed in the next OMNeT++ release.

Attila

Codecà Lara

unread,
Mar 13, 2018, 12:48:01 PM3/13/18
to OMNeT++ Users
Hello :)

I'm using debian testing, with 
- omnetpp 5.2.1, 
- libopenscenegraph-3.4-dev 
- libosgearth-dev (2.9) 
- libosgearthqt5-5 (2.9).

I have the following error:
===== Compiling qtenv ====
osgviewer.cc
osgviewer.cc: In member function ‘virtual void omnetpp::qtenv::OsgViewer::refresh()’:
osgviewer.cc:504:30: error: ‘findTopMostNodeOfType’ is not a member of ‘osgEarth’
         auto sky = osgEarth::findTopMostNodeOfType<osgEarth::Util::SkyNode>(scene);
                              ^~~~~~~~~~~~~~~~~~~~~
osgviewer.cc:504:75: error: expected primary-expression before ‘>’ token
         auto sky = osgEarth::findTopMostNodeOfType<osgEarth::Util::SkyNode>(scene);
                                                                           ^
At global scope:
cc1plus: warning: unrecognized command line option ‘-Wno-inconsistent-missing-override’
Makefile:80: recipe for target '/home/drone/Applications/OMNETPP/omnetpp-5.2.1/out/gcc-release/src/qtenv/osg/osgviewer.o' failed
make[3]: *** [/home/drone/Applications/OMNETPP/omnetpp-5.2.1/out/gcc-release/src/qtenv/osg/osgviewer.o] Error 1
Makefile:98: recipe for target 'qtenv-osg' failed
make[2]: *** [qtenv-osg] Error 2
Makefile:111: recipe for target 'qtenv' failed
make[1]: *** [qtenv] Error 2
Makefile:28: recipe for target 'allmodes' failed
make: *** [allmodes] Error 2

due to : ‘findTopMostNodeOfType’ is not a member of ‘osgEarth’
I thought that I'm using the wrong version of some libraries.
What am I doing wrong?
I don't know where to go from here.

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

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



--
Prof. Ivo Calado, D.Sc.
Instituto Federal de Alagoas - http://ifal.edu.br/
Site: http://sigaa.ifal.edu.br/sigaa/public/docente/portal.jsf?siape=1819085

Quidquid latine dictum sit, altum viditur

Putt's Law:
       Technology is dominated by two types of people:
               Those who understand what they do not manage.
               Those who manage what they do not understand.

--
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,
Mar 13, 2018, 12:57:18 PM3/13/18
to OMNeT++ Users
Hi!

With osgEarth 2.9 one additional header has to be included in src/qtenv/osg/osgviewer.cc.

Insert this line into that file:

#include <osgEarth/NodeUtils>

Say, between these two lines:

#include <osgEarth/MapNode>
#include <osgEarthUtil/EarthManipulator>

This is already fixed internally, and should be in the next release.
Thanks for reporting!

Attila



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

Attila Török

unread,
Mar 13, 2018, 1:21:15 PM3/13/18
to OMNeT++ Users
And... You will likely encounter some more errors in the osg-related samples as well, since a couple of osgEarth classes they use were dropped in 2.9.
Those will also be fixed in the next release. 

Until then, you have two options (that are simple):

1.: If you don't need the sample simulations that come with OMNeT++, delete the samples folder entirely before building.
2.: If you need them, but not OSG or osgEarth, disable their integration by setting the value of the WITH_OSGEARTH (and maybe the WITH_OSG) variable(s) to false in the configure.user file, run ./configure again, then build OMNeT++ again with make.

I hope this helps.

Attila

Lara Codecà

unread,
Mar 15, 2018, 2:15:25 PM3/15/18
to omn...@googlegroups.com, Attila Török
Thank you, Attila, for the reply.
I'm recompiling omnet++ because of its osgEarth integration (before I use it just for Veins+SUMO). 
I've never used OSG before, so I need the samples too.

This: 
#include <osgEarthUtil/ObjectLocator>
does not exist anymore, and so 
// build up the node representing this module
// an ObjectLocatorNode allows positioning a model using world coordinates
locatorNode = new osgEarth::Util::ObjectLocatorNode(mapNode->getMap());
does not work anymore.

Google is not really helping me to understand what is the substitute for ObjectLocatorNode.
Would you mind pointing me in the right direction?

Thank you in advance for the help!
Lara

You received this message because you are subscribed to a topic in the Google Groups "OMNeT++ Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/omnetpp/CiTQ0_hChGA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to omnetpp+u...@googlegroups.com.

danial azuha

unread,
Nov 16, 2020, 12:18:01 PM11/16/20
to OMNeT++ Users
Hi Attila,

I experienced same issue and added the lines into the osgviewer file and issue resolved. thanks!
Reply all
Reply to author
Forward
0 new messages