Installing Omnet++, Oversim, INET

450 views
Skip to first unread message

Navid Bayat

unread,
Sep 6, 2016, 11:55:56 PM9/6/16
to oversim
Hi there,

I was wondering if anyone can help me to install right version of Omnetpp which is compatible with Oversim and INET on Ubuntu. Literally, I have been trying all possible combination for different versions. This just drive me crazy. I tried Linux Mint the most latest version, Ubuntu 14.04, ubuntu 16.04. Omnetpp 5, Omnetpp 4.2.2 and all version of Oversim. When I build oversim and import it to the Omnet it either shows me 5 errors or hundreds of errors.

I had used Omnetpp and Oversim long time ago but now apparently there is curse on it

Any help would greatly appreciated
Thanks 

raja shekar

unread,
Nov 8, 2016, 12:08:34 PM11/8/16
to oversim

Hello Navid, 

Check your GCC and G++ version. try with 4.7 version. 


Regards,
Raj

董崇武

unread,
Nov 22, 2016, 10:05:21 PM11/22/16
to oversim
I have installed successfully in the ubuntu 10.04, 12.04 and 14.04

在 2016年9月7日星期三 UTC+8上午11:55:56,Navid写道:

董崇武

unread,
Nov 22, 2016, 10:05:57 PM11/22/16
to oversim

with the newest version of oversim in the website

在 2016年9月7日星期三 UTC+8上午11:55:56,Navid写道:
Hi there,

Roshan Mehta

unread,
Jul 15, 2017, 4:55:26 AM7/15/17
to oversim
Could someone tell the following details:
OS version
gcc and g++ version
omnet version 

I'm using the latest version of inet and and omnet5.1.1 and gcc4.7, g++4.7, Ubuntu16.04. I followed all steps as described in OverSim install guide except omnet5.1.1 instead of omnet4.2.2 but whenever I try to build inet it gives local header file not found error like this:
In file included from applications/ethernet/EtherAppCli.cc:21:0:
applications/ethernet/EtherAppCli.h:21:22: fatal error: INETDefs.h: No such file or directory
compilation terminated.

Rashid Ali Khan

unread,
Nov 6, 2017, 9:32:05 AM11/6/17
to oversim
Dear brothers I have the same problem as that of Navid.

I am new to Omnet++. I am intending to install oversim on Omnet++ which requires INET to be installed before. I am encountering the following error after "make" command in shell. I am trying to install latest version of INET on Windows 10.

applications/ethernet/EtherAppCli.cc
In file included from applications/ethernet/EtherAppCli.cc:21:
applications/ethernet/EtherAppCli.h:21:10: fatal error: 'INETDefs.h' file not found
#include "INETDefs.h"
         ^~~~~~~~~~~~
1 error generated.
make[1]: *** [Makefile:480: ../out/clang-release/src/applications/ethernet/EtherAppCli.o] Error 1
make[1]: Leaving directory '/d/sim/inet/src'
make: *** [Makefile:2: all] Error 2


Kindly help me as I wasted previous two weeks to solve this problem but failed.

Roshan Mehta

unread,
Nov 6, 2017, 5:48:18 PM11/6/17
to ove...@googlegroups.com
Hello,

Follow the step and get the files from attached zip file.

1. Download OMNeT4.2.2 [https://omnetpp.org/component/jdownloads/send/32-release-older-versions/2245-omnet-4-2-2-source-ide-tgz] and extract the zip.

2. OMNeT4.2.2 has few bugs which make it impossible to build and install. Replace these 2 files with the files in available in zip.
omnetpp-4.2.2/src/utils/abspath.cc
omnetpp-4.2.2/src/common/matchexpression.y

3. To be able to build OMNet4.2.2 it needs a specific combination of bison3.0.2 and GCC4.8.4.
OMNet4.2.2 will not build even if even the minor number version of gcc is different as there is another bug in gcc.

4. inet-20111118 is compatible with only OMNet4.2.X, it will not build with any other version of OMNet. These old versions used parameters like --deep to search for include files which can be used in version below OMNet4.3.X

5. Install these libraries on Linux.
sudo apt-get install build-essential flex perl tcl-dev tk-dev blt libxml2-dev zlib1g-dev doxygen graphviz openmpi-bin libopenmpi-dev libpcap-dev blt-dev libgmp-dev

6. Follow guide mentioned here afterwards. http://www.oversim.org/wiki/OverSimInstall

Regards, 
Roshan Mehta

--
You received this message because you are subscribed to a topic in the Google Groups "oversim" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/oversim/xW-XDphjub4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to oversim+unsubscribe@googlegroups.com.
To post to this group, send email to ove...@googlegroups.com.
Visit this group at https://groups.google.com/group/oversim.
For more options, visit https://groups.google.com/d/optout.

Findings.tar.gz

Rashid Ali Khan

unread,
Nov 7, 2017, 11:30:37 AM11/7/17
to ove...@googlegroups.com
Dear Mehta.
Thanks a lot dear. I have installed Omnet++ 4.2.2, INET and oversim according to your instructions. It worked.
But when I try to load INET and oversim projects in to workspace through Eclipse IDE, "C/C++ indexer encountered error" message appears. Please suggest any solutions .
Thanks a lot once again

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

To post to this group, send email to ove...@googlegroups.com.
Visit this group at https://groups.google.com/group/oversim.
For more options, visit https://groups.google.com/d/optout.



--
Rashid Ali Khan

Roshan Mehta

unread,
Nov 8, 2017, 12:21:59 AM11/8/17
to ove...@googlegroups.com
I couldn't help you just without knowing what you are doing, what code you are trying to run and exact error.

yahya.sh...@googlemail.com

unread,
Sep 24, 2018, 4:48:13 PM9/24/18
to oversim

Hello there,
I followed your instruction. I was successful until ./configure was done successfully. but when I tried to make it, got the following error:

bison -y -o ned2.tab.cc -p ned2yy -d ned2.y
ned2.y: warning: 4 shift/reduce conflicts [-Wconflicts-sr]
ned2.y: warning: 1 reduce/reduce conflict [-Wconflicts-rr]
g++ -c  -O2 -DNDEBUG=1 -fPIC  -fno-stack-protector -DHAVE_SWAPCONTEXT  -DHAVE_PCAP -DXMLPARSER=libxml -DWITH_PARSIM -DWITH_NETBUILDER -I/usr/include/libxml2 -I. -I../common -I/home/yshahsavari/sim/omnetpp-4.2.2/include/platdep -DBUILDING_NEDXML -o /home/yshahsavari/sim/omnetpp-4.2.2/out/gcc-release/src/nedxml/ned2.tab.o ned2.tab.cc
ned2.y: In function ‘NEDElement* doParseNED2(NEDParser*, const char*)’:
ned2.y:1690:82: error: cannot convert ‘bool’ to ‘NEDElement*’ in return
 np->getErrors()->addError("", "unable to allocate work memory"); return false;}
                                                                         ^~~~~
Makefile:51: recipe for target '/home/yshahsavari/sim/omnetpp-4.2.2/out/gcc-release/src/nedxml/ned2.tab.o' failed
make[2]: *** [/home/yshahsavari/sim/omnetpp-4.2.2/out/gcc-release/src/nedxml/ned2.tab.o] Error 1
make[2]: Leaving directory '/home/yshahsavari/sim/omnetpp-4.2.2/src/nedxml'
Makefile:96: recipe for target 'nedxml' failed
make[1]: *** [nedxml] Error 2
make[1]: Leaving directory '/home/yshahsavari/sim/omnetpp-4.2.2'
Makefile:19: recipe for target 'allmodes' failed
make: *** [allmodes] Error 2

anyone could help me, please? 
thanks.


To unsubscribe from this group and all its topics, send an email to oversim+u...@googlegroups.com.

Roshan Mehta

unread,
Sep 24, 2018, 6:03:01 PM9/24/18
to ove...@googlegroups.com

I couldn't help you just without knowing what you are doing, what code you are trying to run and exact error.

yahya.sh...@googlemail.com

unread,
Sep 24, 2018, 6:31:32 PM9/24/18
to oversim
I'm trying to install omnet++. 

I pasted the error below. 

thanks
Reply all
Reply to author
Forward
0 new messages