Showing posts with label building NS2. Show all posts
Showing posts with label building NS2. Show all posts

Saturday, 1 March 2014

Compiling and Building NS2 project

Hello pals,
                This post comes after long time . This time i would like to tell you about compiling and building Ns-2 project. 

  Reasons for compilation:                     

    1. Added new versions of xgraph , tcl/tk , nam , otcl , perl  etc... to the existing NS-2 project
    2. Made any changes in the C++ files. like .cc files 
    3. Added any patches to the existing NS-2 code 

Steps to be followed for compilation and build process

precondition: 

    1.    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