omnetpp3.4b2
Installation:
Download source code from here and extract .
I have extracted it at /home/nandan/omnetpp-3.4b2.
Install dependencies :
build-essential
gcc
g++
bison
flex
perl
tcl8.4
tcl8.4-dev \
tk8.4
tk8.4-dev
blt
blt-dev
libxml2
libxml2-dev \
zlib1g
zlib1g-dev
libx11-dev
Set path as:
export TCL_LIBRARY=/usr/lib/tcl8.4
export PATH=$PATH:/home/nandan/omnetpp-3.4b2/bin:$PATH
# for me omnetpp-3.4b2 folder was in /home/nandan/ directory.
The mentioned omnetpp-3.4b2 gives error of not including some libraries like stdio.h, string.h or stdlib.h etc.
I have made corrections and the same can be found here http://revisedomnetpp3.sourceforge.net .
It is the enhanced copy of original source.
compile using known steps as following
$ ./configure
$ make
Start the IDE as
$ omnetpp
***********************************************************************************
for simulation we need following files
.cc
.h
.ini
- tells the simulation program which network you want to simulate
.ned
- identifies the network's nodes and the links between them
we have all these files in a directory directory_name and we follow--
create MAKEFILE as
$ opp_makemake
add dependency to MAKEFILE as
$ make depend
compile and link theprogram as
$ make
this will generate an executable link having same name as directory .
launch the simulation as
$ ./directory_name