Omnetpp-5.0 installation process

544 views
Skip to first unread message

Benedito Junior

unread,
Jun 16, 2016, 7:43:59 PM6/16/16
to OMNeT++ Users
Dears,

I am trying to install the last Omnet++ version 5.0, but I having problem with it. 

Does anyone could help me, identifying where is the problem? Below, I'm presenting the lines of the compiling process after make command.



matchexpression.y:22.1-12: warning: deprecated directive, use ‘%pure-parser’ [-Wdeprecated]
 %pure_parser
 ^^^^^^^^^^^^
matchexpression.y: warning: 1 shift/reduce conflict [-Wconflicts-sr]
ned2.y: warning: 7 shift/reduce conflicts [-Wconflicts-sr]
ned2.lex:225: warning, rule cannot be matched
ned1.y: warning: 5 shift/reduce conflicts [-Wconflicts-sr]
msg2.y: warning: 1 shift/reduce conflict [-Wconflicts-sr]
In file included from sim_std_m.cc:13:
./sim_std_m.h:13:6: error: Version mismatch! Probably this file was generated by an earlier version of nedtool: 'make clean' should help.
#    error Version mismatch! Probably this file was generated by an earlier version of nedtool: 'make clean' should help.
     ^
sim_std_m.cc:15:1: error: unknown type name 'USING_NAMESPACE'
USING_NAMESPACE
^
sim_std_m.cc:19:1: error: expected unqualified-id
namespace omnetpp {
^
sim_std_m.cc:68:26: error: allocating an object of abstract class type 'omnetpp::cObjectDescriptor'
Register_ClassDescriptor(cObjectDescriptor);
                         ^
/home/benedito/omnetpp-5.0/include/omnetpp/regmacros.h:159:71: note: expanded from macro 'Register_ClassDescriptor'
  EXECUTE_ON_STARTUP(omnetpp::classDescriptors.getInstance()->add(new DESCRIPTORCLASS());)
                                                                      ^
/home/benedito/omnetpp-5.0/include/omnetpp/onstartup.h:51:30: note: expanded from macro 'EXECUTE_ON_STARTUP'
    void __ONSTARTUP_FUNC() {CODE;} \
                             ^
/home/benedito/omnetpp-5.0/include/omnetpp/cclassdescriptor.h:156:26: note: unimplemented pure virtual method 'getPropertyNames' in 'cObjectDescriptor'
    virtual const char **getPropertyNames() const = 0;
                         ^
/home/benedito/omnetpp-5.0/include/omnetpp/cclassdescriptor.h:170:17: note: unimplemented pure virtual method 'getFieldCount' in 'cObjectDescriptor'
    virtual int getFieldCount() const = 0;
                ^
/home/benedito/omnetpp-5.0/include/omnetpp/cclassdescriptor.h:176:25: note: unimplemented pure virtual method 'getFieldName' in 'cObjectDescriptor'
    virtual const char *getFieldName(int field) const = 0;
                        ^
/home/benedito/omnetpp-5.0/include/omnetpp/cclassdescriptor.h:191:26: note: unimplemented pure virtual method 'getFieldTypeFlags' in 'cObjectDescriptor'
    virtual unsigned int getFieldTypeFlags(int field) const = 0;
                         ^
/home/benedito/omnetpp-5.0/include/omnetpp/cclassdescriptor.h:212:25: note: unimplemented pure virtual method 'getFieldTypeString' in 'cObjectDescriptor'
    virtual const char *getFieldTypeString(int field) const = 0;
                        ^
/home/benedito/omnetpp-5.0/include/omnetpp/cclassdescriptor.h:218:26: note: unimplemented pure virtual method 'getFieldPropertyNames' in 'cObjectDescriptor'
    virtual const char **getFieldPropertyNames(int field) const = 0;
                         ^
/home/benedito/omnetpp-5.0/include/omnetpp/cclassdescriptor.h:226:25: note: unimplemented pure virtual method 'getFieldProperty' in 'cObjectDescriptor'
    virtual const char *getFieldProperty(int field, const char *propertyname) const = 0;
                        ^
/home/benedito/omnetpp-5.0/include/omnetpp/cclassdescriptor.h:232:17: note: unimplemented pure virtual method 'getFieldArraySize' in 'cObjectDescriptor'
    virtual int getFieldArraySize(void *object, int field) const = 0;
                ^
/home/benedito/omnetpp-5.0/include/omnetpp/cclassdescriptor.h:238:25: note: unimplemented pure virtual method 'getFieldValueAsString' in 'cObjectDescriptor'
    virtual std::string getFieldValueAsString(void *object, int field, int i) const = 0;
                        ^
/home/benedito/omnetpp-5.0/include/omnetpp/cclassdescriptor.h:245:18: note: unimplemented pure virtual method 'setFieldValueAsString' in 'cObjectDescriptor'
    virtual bool setFieldValueAsString(void *object, int field, int i, const char *value) const = 0;
                 ^
/home/benedito/omnetpp-5.0/include/omnetpp/cclassdescriptor.h:252:25: note: unimplemented pure virtual method 'getFieldStructName' in 'cObjectDescriptor'
    virtual const char *getFieldStructName(int field) const = 0;
                        ^
/home/benedito/omnetpp-5.0/include/omnetpp/cclassdescriptor.h:257:19: note: unimplemented pure virtual method 'getFieldStructValuePointer' in 'cObjectDescriptor'
    virtual void *getFieldStructValuePointer(void *object, int field, int i) const = 0;
                  ^
sim_std_m.cc:93:25: error: too many arguments to function call, expected 0, have 1; did you mean '::omnetpp::cObjectDescriptor::getFieldCount'?
    return basedesc ? 5+basedesc->getFieldCount(object) : 5;
                        ^~~~~~~~~~~~~~~~~~~~~~~
                        ::omnetpp::cObjectDescriptor::getFieldCount
sim_std_m.cc:90:24: note: '::omnetpp::cObjectDescriptor::getFieldCount' declared here
int cObjectDescriptor::getFieldCount(void *object) const
                       ^
sim_std_m.cc:100:21: error: too many arguments to function call, expected 0, have 1; did you mean '::omnetpp::cObjectDescriptor::getFieldCount'?
        if (field < basedesc->getFieldCount(object))
                    ^~~~~~~~~~~~~~~~~~~~~~~
                    ::omnetpp::cObjectDescriptor::getFieldCount
sim_std_m.cc:90:24: note: '::omnetpp::cObjectDescriptor::getFieldCount' declared here
int cObjectDescriptor::getFieldCount(void *object) const
                       ^
sim_std_m.cc:101:20: error: too many arguments to function call, expected 1, have 2; did you mean '::omnetpp::cObjectDescriptor::getFieldTypeFlags'?
            return basedesc->getFieldTypeFlags(object, field);
                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~
                   ::omnetpp::cObjectDescriptor::getFieldTypeFlags
sim_std_m.cc:96:33: note: '::omnetpp::cObjectDescriptor::getFieldTypeFlags' declared here
unsigned int cObjectDescriptor::getFieldTypeFlags(void *object, int field) const
                                ^
sim_std_m.cc:102:18: error: too many arguments to function call, expected 0, have 1; did you mean '::omnetpp::cObjectDescriptor::getFieldCount'?
        field -= basedesc->getFieldCount(object);
                 ^~~~~~~~~~~~~~~~~~~~~~~
                 ::omnetpp::cObjectDescriptor::getFieldCount
sim_std_m.cc:90:24: note: '::omnetpp::cObjectDescriptor::getFieldCount' declared here
int cObjectDescriptor::getFieldCount(void *object) const
                       ^
sim_std_m.cc:118:21: error: too many arguments to function call, expected 0, have 1; did you mean '::omnetpp::cObjectDescriptor::getFieldCount'?
        if (field < basedesc->getFieldCount(object))
                    ^~~~~~~~~~~~~~~~~~~~~~~
                    ::omnetpp::cObjectDescriptor::getFieldCount
sim_std_m.cc:90:24: note: '::omnetpp::cObjectDescriptor::getFieldCount' declared here
int cObjectDescriptor::getFieldCount(void *object) const
                       ^
sim_std_m.cc:119:20: error: too many arguments to function call, expected 1, have 2; did you mean '::omnetpp::cObjectDescriptor::getFieldName'?
            return basedesc->getFieldName(object, field);
                   ^~~~~~~~~~~~~~~~~~~~~~
                   ::omnetpp::cObjectDescriptor::getFieldName
sim_std_m.cc:114:32: note: '::omnetpp::cObjectDescriptor::getFieldName' declared here
const char *cObjectDescriptor::getFieldName(void *object, int field) const
                               ^
sim_std_m.cc:120:18: error: too many arguments to function call, expected 0, have 1; did you mean '::omnetpp::cObjectDescriptor::getFieldCount'?
        field -= basedesc->getFieldCount(object);
                 ^~~~~~~~~~~~~~~~~~~~~~~
                 ::omnetpp::cObjectDescriptor::getFieldCount
sim_std_m.cc:90:24: note: '::omnetpp::cObjectDescriptor::getFieldCount' declared here
int cObjectDescriptor::getFieldCount(void *object) const
                       ^
sim_std_m.cc:135:27: error: too many arguments to function call, expected 0, have 1; did you mean '::omnetpp::cObjectDescriptor::getFieldCount'?
    int base = basedesc ? basedesc->getFieldCount(object) : 0;
                          ^~~~~~~~~~~~~~~~~~~~~~~
                          ::omnetpp::cObjectDescriptor::getFieldCount
sim_std_m.cc:90:24: note: '::omnetpp::cObjectDescriptor::getFieldCount' declared here
int cObjectDescriptor::getFieldCount(void *object) const
                       ^
sim_std_m.cc:141:23: error: too many arguments to function call, expected 1, have 2; did you mean '::omnetpp::cObjectDescriptor::findField'?
    return basedesc ? basedesc->findField(object, fieldName) : -1;
                      ^~~~~~~~~~~~~~~~~~~
                      ::omnetpp::cObjectDescriptor::findField
sim_std_m.cc:132:24: note: '::omnetpp::cObjectDescriptor::findField' declared here
int cObjectDescriptor::findField(void *object, const char *fieldName) const
                       ^
sim_std_m.cc:148:21: error: too many arguments to function call, expected 0, have 1; did you mean '::omnetpp::cObjectDescriptor::getFieldCount'?
        if (field < basedesc->getFieldCount(object))
                    ^~~~~~~~~~~~~~~~~~~~~~~
                    ::omnetpp::cObjectDescriptor::getFieldCount
sim_std_m.cc:90:24: note: '::omnetpp::cObjectDescriptor::getFieldCount' declared here
int cObjectDescriptor::getFieldCount(void *object) const
                       ^
sim_std_m.cc:149:20: error: too many arguments to function call, expected 1, have 2; did you mean '::omnetpp::cObjectDescriptor::getFieldTypeString'?
            return basedesc->getFieldTypeString(object, field);
                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
                   ::omnetpp::cObjectDescriptor::getFieldTypeString
sim_std_m.cc:144:32: note: '::omnetpp::cObjectDescriptor::getFieldTypeString' declared here
const char *cObjectDescriptor::getFieldTypeString(void *object, int field) const
                               ^
sim_std_m.cc:150:18: error: too many arguments to function call, expected 0, have 1; did you mean '::omnetpp::cObjectDescriptor::getFieldCount'?
        field -= basedesc->getFieldCount(object);
                 ^~~~~~~~~~~~~~~~~~~~~~~
                 ::omnetpp::cObjectDescriptor::getFieldCount
sim_std_m.cc:90:24: note: '::omnetpp::cObjectDescriptor::getFieldCount' declared here
int cObjectDescriptor::getFieldCount(void *object) const
                       ^
sim_std_m.cc:166:21: error: too many arguments to function call, expected 0, have 1; did you mean '::omnetpp::cObjectDescriptor::getFieldCount'?
        if (field < basedesc->getFieldCount(object))
                    ^~~~~~~~~~~~~~~~~~~~~~~
                    ::omnetpp::cObjectDescriptor::getFieldCount
sim_std_m.cc:90:24: note: '::omnetpp::cObjectDescriptor::getFieldCount' declared here
int cObjectDescriptor::getFieldCount(void *object) const
                       ^
sim_std_m.cc:167:20: error: too many arguments to function call, expected 2, have 3; did you mean '::omnetpp::cObjectDescriptor::getFieldProperty'?
            return basedesc->getFieldProperty(object, field, propertyname);
                   ^~~~~~~~~~~~~~~~~~~~~~~~~~
                   ::omnetpp::cObjectDescriptor::getFieldProperty
sim_std_m.cc:162:32: note: '::omnetpp::cObjectDescriptor::getFieldProperty' declared here
const char *cObjectDescriptor::getFieldProperty(void *object, int field, const char *propertyname) const
                               ^
sim_std_m.cc:168:18: error: too many arguments to function call, expected 0, have 1; did you mean '::omnetpp::cObjectDescriptor::getFieldCount'?
        field -= basedesc->getFieldCount(object);
                 ^~~~~~~~~~~~~~~~~~~~~~~
                 ::omnetpp::cObjectDescriptor::getFieldCount
sim_std_m.cc:90:24: note: '::omnetpp::cObjectDescriptor::getFieldCount' declared here
int cObjectDescriptor::getFieldCount(void *object) const
                       ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make[2]: *** [/home/benedito/omnetpp-5.0/out/clang-release/src/sim/sim_std_m.o] Error 1
make[1]: *** [sim] Error 2
make: *** [allmodes] Error 2

Rudolf Hornig

unread,
Jun 17, 2016, 5:37:26 AM6/17/16
to OMNeT++ Users
1. make sure that your PATH does NOT contain the directory of your previous omnet 4.x installation. 
2. make cleanall
3. ./configure
4. make

Benedito Junior

unread,
Jun 17, 2016, 9:40:56 AM6/17/16
to omn...@googlegroups.com
Dear Rudolf Horning,

Firstly, thanks for your answer.

I'd like to say that my configuration is OK. But the problem is still occurring and I don't any idea to solve it. Below I'm showing the output of ./configure command

checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
configure: -----------------------------------------------
configure: reading configure.user for your custom settings
configure: -----------------------------------------------
checking for clang... clang
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether clang accepts -g... yes
checking for clang option to accept ISO C89... none needed
checking for clang++... clang++
checking whether we are using the GNU C++ compiler... yes
checking whether clang++ accepts -g... yes
checking for clang++... clang++
checking for ranlib... ranlib
checking whether clang++ supports -std=c++11... yes
checking whether clang++ supports -fno-stack-protector... yes
checking whether clang++ supports -Wl,--no-as-needed... yes
checking whether clang++ supports -Wl,--as-needed... yes
checking for swapcontext... yes
checking if shared libs need -fPIC... yes
checking for dlopen with CFLAGS="" LIBS=""... no
checking if --export-dynamic linker option is supported/needed... test failed
checking for flags needed to link with static libs containing simple modules... --whole-archive
configure: NOTE: Use the following syntax when linking with static libraries
configure: containing simple modules and other dynamically registered components:
configure:    clang++ ... -Wl,--whole-archive <libs> -Wl,--no-whole-archive ...
checking whether linker supports -rpath... yes
checking for bison... bison -y
checking for flex... flex
checking lex output file root... lex.yy
checking lex library... none needed
checking whether yytext is a pointer... no
checking for make... make
checking for perl... perl
checking for swig... swig
checking for math with CFLAGS="" LIBS=""... yes
checking for standard C++ lib with CFLAGS="" LIBS="-lstdc++"... yes
checking for dlopen with CFLAGS="" LIBS=""... no
checking for dlopen with CFLAGS="" LIBS="-ldl"... yes
checking for winsock with CFLAGS="" LIBS="-lwsock32"... no
checking for qmake-qt4... qmake-qt4
checking for Qt4 with CFLAGS=" -O2 -DNDEBUG=1 -fPIC  -Wno-deprecated-register -fno-stack-protector" LIBS="-lQtGui -lQtCore -lQtOpenGL"... no
checking for Qt4 with CFLAGS=" -O2 -DNDEBUG=1 -fPIC  -Wno-deprecated-register -fno-stack-protector -I/mingw32/include/qt4" LIBS="-lQtGui4 -lQtCore4 -lQtOpenGL4"... no
checking for Qt4 with CFLAGS=" -O2 -DNDEBUG=1 -fPIC  -Wno-deprecated-register -fno-stack-protector" LIBS="-framework QtGui -framework QtCore -framework QtOpenGL"... no
checking for Qt4 with CFLAGS=" -O2 -DNDEBUG=1 -fPIC  -Wno-deprecated-register -fno-stack-protector -DQT_SHARED -I/usr/include/qt4 -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtOpenGL  " LIBS="-lQtOpenGL -lQtGui -lQtCore  "... yes
checking for OpenSceneGraph with CFLAGS=" -O2 -DNDEBUG=1 -fPIC  -Wno-deprecated-register -fno-stack-protector " LIBS="-losg -losgGA -losgViewer -losgQt -lOpenThreads"... yes
checking for osgEarth with CFLAGS=" -O2 -DNDEBUG=1 -fPIC  -Wno-deprecated-register -fno-stack-protector " LIBS="-losgEarth -losgEarthUtil"... yes
checking for Tcl/Tk 8.6 with CFLAGS=" -O2 -DNDEBUG=1 -fPIC  -Wno-deprecated-register -fno-stack-protector -I/usr/include/tcl8.6" LIBS="-ltk8.6 -ltcl8.6"... yes
checking for wish... wish
checking for java... java
checking for java... no
checking for JNI with CFLAGS=" -O2 -DNDEBUG=1 -fPIC  -Wno-deprecated-register -fno-stack-protector -fno-strict-aliasing -I/home/benedito/java/include -I/home/benedito/java/include/linux"... yes
checking for mpic++... mpic++
checking for MPI with CFLAGS=" -O2 -DNDEBUG=1 -fPIC  -Wno-deprecated-register -fno-stack-protector -I/usr/lib/openmpi/include -I/usr/lib/openmpi/include/openmpi -pthread" LIBS="  -Wl,-rpath,$(OMNETPP_LIB_DIR) -Wl,-rpath,$(OMNETPP_TOOLS_DIR)/lib -Wl,-rpath,. -pthread -L/usr//lib -L/usr/lib/openmpi/lib -lmpi_cxx -lmpi -ldl -lhwloc"... yes
checking for PCAP with CFLAGS=" -O2 -DNDEBUG=1 -fPIC  -Wno-deprecated-register -fno-stack-protector " LIBS="-lpcap"... yes
checking for PTHREAD with CFLAGS=" -O2 -DNDEBUG=1 -fPIC  -Wno-deprecated-register -fno-stack-protector  " LIBS="-lpthread"... yes
checking for LibXML XML parser with CFLAGS=" -O2 -DNDEBUG=1 -fPIC  -Wno-deprecated-register -fno-stack-protector  " LIBS="-lxml2"... no
checking for LibXML XML parser with CFLAGS=" -O2 -DNDEBUG=1 -fPIC  -Wno-deprecated-register -fno-stack-protector  -I/usr/include/libxml2" LIBS="-lxml2"... yes
checking for Expat XML parser with CFLAGS=" -O2 -DNDEBUG=1 -fPIC  -Wno-deprecated-register -fno-stack-protector  " LIBS="-lexpat"... yes
configure: Using LibXML for XML parsing
checking for zlib with CFLAGS=" -O2 -DNDEBUG=1 -fPIC  -Wno-deprecated-register -fno-stack-protector  " LIBS="-lz"... yes
checking for Akaroa with CFLAGS=" -O2 -DNDEBUG=1 -fPIC  -Wno-deprecated-register -fno-stack-protector  -I/usr/local/akaroa/include" LIBS="-L/usr/local/akaroa/lib -lakaroa -lfl"... no
configure: creating ./config.status
config.status: creating Makefile.inc
config.status: creating test/core/runtest
Your PATH contains /home/benedito/omnetpp-5.0/bin. Good!


--
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/OCylasFKoHg/unsubscribe.
To unsubscribe from this group and all its topics, 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.

Rudolf Hornig

unread,
Jun 17, 2016, 10:40:11 AM6/17/16
to OMNeT++ Users
This is the key:

./sim_std_m.h:13:6: error: Version mismatch! Probably this file was generated by an earlier version of nedtool: 'make clean' should help.
#    error Version mismatch! Probably this file was generated by an earlier version of nedtool: 'make clean' should help.

Your sim_std_m.h file was generated with an earlier version of the message compiler and it was not deleted before trying to build.

On Friday, 17 June 2016 01:43:59 UTC+2, Benedito Junior wrote:

Benedito Junior

unread,
Jun 17, 2016, 11:00:25 AM6/17/16
to omn...@googlegroups.com
Dear Rudolf Horning,

Since both omnet++ 4.6 and 5.0 version were in different folders I was thinking they won't interfere each other. Now, I just remove the older version and the new installation occurred well.

Thanks for your attention.

Rudolf Hornig

unread,
Jun 20, 2016, 5:19:14 AM6/20/16
to OMNeT++ Users
They can reside safely BUT inside the 'setnev' script adds the omnetpp/bin directory to the path. If you execute the setenv from both version, both versions's BIN directory will be added and as the command names are the same the one which is earlier will win always. Probably foe convenience you have added the omnet46/bin directory to the path in your .bashrc or other startup files. Removing that would have been enough.
To unsubscribe from this group and all its topics, send an email to omnetpp+unsubscribe@googlegroups.com.

zekars

unread,
Dec 5, 2016, 3:10:47 AM12/5/16
to OMNeT++ Users
Dear Rudolf;
      I am also facing the same problem. I am using version 4.4 and 4.6 for different project in windows. I want to use both versions as well. Can you tell me how can we remove the older version information. Actually both are working properly before I formated my desktop. But when I tried to run the older version then I faced this problem. I also tried installing omnet in new drives but same error occured as mentioned by Benedito junior.

Please suggest . Thanking you in advance.
To unsubscribe from this group and all its topics, send an email to omnetpp+u...@googlegroups.com.

zekars

unread,
Dec 5, 2016, 3:11:56 AM12/5/16
to OMNeT++ Users
The error is as follows:

16:56:12 **** Incremental Build of configuration gcc-debug for project veins ****
make MODE=debug CONFIGNAME=gcc-debug all 
make[1]: Entering directory `/c/Users/IT/src/veins_april7/src'
veins/base/modules/BaseMacLayer.cc
In file included from veins/base/modules/BaseMacLayer.cc:37:0:
./veins/base/messages/MacPkt_m.h:13:6: error: #error Version mismatch! Probably this file was generated by an earlier version of nedtool: 'make clean' should help.
make[1]: *** [../out/gcc-debug/src/veins/base/modules/BaseMacLayer.o] Error 1
make[1]: Leaving directory `/c/Users/IT/src/veins_april7/src'
make: *** [all] Error 2

16:56:14 Build Finished (took 2s.780ms)
Reply all
Reply to author
Forward
0 new messages