This post comes after long time . This time i would like to tell you about compiling and building Ns-2 project.
Reasons for compilation:
- Added new versions of xgraph , tcl/tk , nam , otcl , perl etc... to the existing NS-2 project
- Made any changes in the C++ files. like .cc files
- Added any patches to the existing NS-2 code
Steps to be followed for compilation and build process
precondition:
- Must and should posses C++ compiler (gcc package).
commands:
-
- cd into the Ns-2 directory(for example ~ns-allinone-2.xx/ns-2.xx)
- run
./configure (./configure try to auto-detect all the packages ns requires to build. Auto-detection checks sensible places (like /usr/local) and the directory above current direcory.)
- run
make
- Verification and validation:
./validate
hi sir,
ReplyDeletei am getting error in olsr routing protocol in tcl file as error
After that I run the olsr tcl file it shows the following error.
“Agent/OLSR set use_mac_ true”
(file “olsr_example.tcl” line 44)
so please help me to sort this error .its urgent