omnetpp-4.0p1
Installation:
Download source code from here and extract .
I have extracted it at /home/nandan/omnetpp-4.0p1.
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-4.0p1/bin:$PATH
# for me omnetpp-4.0p1 folder was in /home/nandan/ directory.
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
and a sample simulation may look like following