Error while executing "make"

242 views
Skip to first unread message

Daniel Ruiz Molina

unread,
Apr 24, 2017, 2:58:33 AM4/24/17
to OMNeT++ Users
Hi,

I'm trying to compile "Omnetpp-5.1" in a Linux systems that runs CentOS-7.2-x86_64. "configure" runs OK (with WITH_QTENV=no WITH_OSG=no), but when I run "make" I get these errors:
[...]
===== Compiling scave ====
make[2]: se ingresa al directorio `/soft/omnetpp-5.1/src/scave'
pythonexporter.cc
pythonexporter.cc: En la función miembro âvirtual void omnetpp::scave::PythonExporter::saveResults(const string&, omnetpp::scave::ResultFileManager*, const omnetpp::scave::IDList&, omnetpp::common::IProgressMonitor*)â:
pythonexporter.cc:261:5: error: âunique_ptrâ no es un miembro de âstdâ
     std::unique_ptr<RunList> tmp(runList);
     ^
pythonexporter.cc:261:28: error: expected primary-expression before â>â token
     std::unique_ptr<RunList> tmp(runList);
                            ^
pythonexporter.cc:261:41: error: âtmpâ no se declaró en este ámbito
     std::unique_ptr<RunList> tmp(runList);
                                         ^
make[2]: *** [/soft/omnetpp-5.1/out/gcc-release/src/scave/pythonexporter.o] Error 1
make[2]: se sale del directorio `/soft/omnetpp-5.1/src/scave'
make[1]: *** [scave] Error 2
make[1]: se sale del directorio `/soft/omnetpp-5.1'
make: *** [allmodes] Error 2

Could anybody help me?

Thanks.

Michael Kirsche

unread,
Apr 24, 2017, 4:47:35 AM4/24/17
to OMNeT++ Users
Which version of GCC or CLANG are you using under CentOS 7.2?

Daniel Ruiz Molina

unread,
Apr 25, 2017, 2:41:20 AM4/25/17
to OMNeT++ Users
gcc is 4.8.5 (from CentOS RPM)

Daniel Ruiz Molina

unread,
Apr 25, 2017, 2:54:21 AM4/25/17
to OMNeT++ Users
With gcc 6.1.0, "scave" is compiled correctly, but at the end of "make", I get these other errors:
Creating executable: out/gcc-release//osg-earth
/usr/bin/ld: no se puede encontrar -losgEarthFeatures
/usr/bin/ld: no se puede encontrar -losgEarthSymbology
/usr/bin/ld: no se puede encontrar -losgEarthAnnotation
collect2
: error: ld devolvió el estado de salida 1
make
[2]: *** [out/gcc-release//osg-earth] Error 1
make
[2]: se sale del directorio `/soft/omnetpp-5.1/samples/osg-earth'
make[1]: *** [osg-earth] Error 2

make[1]: se sale del directorio `
/soft/omnetpp-5.1'

make: *** [allmodes] Error 2


I run "configure" with WITH_OSG=no because I have installed Qt4 and I think OMNeT is waiting for Qt5 version

Help, please...

Thanks.




El lunes, 24 de abril de 2017, 10:47:35 (UTC+2), Michael Kirsche escribió:

Michael Kirsche

unread,
Apr 25, 2017, 4:10:05 AM4/25/17
to OMNeT++ Users
Newer OMNeT releases require GCC 5.x or 6.x and newer Clang versions > 3.6, so that's the reason it didn't work with GCC 4.x.

If you did not install OpenSceneGraph or OSG Earth, then you need to disable both in the configure.user:

WITH_OSG=no
and
WITH_OSGEARTH=no

As for QT, the newer OMNeT versions require QT 5, so either install a newer QT 5 version and adjust the path to the QT installation manually via configure.user
or
disable the QT environment (via WITH_QTENV=no) and use the TCL/TK GUI, which is still supported but not actively developed anymore.

Installing a newer QT environment is probably not really complicated, even under CentOS, so I'd opt for that.

Daniel Ruiz Molina

unread,
Apr 25, 2017, 6:49:13 AM4/25/17
to OMNeT++ Users
You have helped me a lot!!!

With WITH_OSGEARTH=no (I did not know that parameter), OMNeT 5.1 compiled OK (with TK and not Qt5).

Thanks!!!!!
Reply all
Reply to author
Forward
0 new messages