Bluehoc INSTALL, sim prog

[ Pobierz całość w formacie PDF ]
REQUIREMENTS============BLUEHOC2.0 is an extension of ns-2.1b7a. The supportedplatforms are Linux, SunOS, BSD and almost any otherUnix version.INSTALLATION============STEP 1)If you don't already have NS (ns-2.1b7a), download it from(www.isi.edu/nsnam). Use tar -zxvf to inflate it. Let thepath of the directory in which NS is inflated be NS_HOME.STEP 2)% mv bluehoc2.0-src.tar.gz NS_HOME/ns-allinone-2.1b7a/ns-2.1b7a% cd NS_HOME/ns-allinone-2.1b7a/ns-2.1b7aUnzip and Untar bluehoc2.0-src.tar.gz using:% tar -zxvf bluehoc2.0-src.tar.gzThe untarred version will have the following directorystructure:bluehoc/||------|------|------|---------|-------|--------|------|INSTALL LICENSE README examples/ mod/ patches/ src/ tcl/The next step is to copy the BLUEHOC C++ and TCL filesin the right directories.Copy the C++ source files to the current directory by% cp bluehoc/src/*.cc bluehoc/src/*.h .Also copy the TCL source file to the directory tcl/lib% cp bluehoc/tcl/ns-btnode.tcl tcl/lib/STEP 3)The next step is to apply patches to some files inthe NS distribution which have been modified for BLUEHOC.IF YOU ALREADY HAVE NS INSTALLED do the following% cp bluehoc/patches/bt_patch ../% cd ..% patch -p0 -b < bt_patchIF YOU DO NOT HAVE NS INSTALLED do the following% cp bluehoc/patches/bt_patch_make ../% cd ..% patch -p0 -b < bt_patch_makeSTEP 4)IF YOU ALREADY HAVE NS INSTALLED% cd ns-2.1b7aNote: In this case you need to manually add theBLUEHOC C++ files for compilation in OBJ_CCand ns-btnode.tcl in the NS_TCL_LIB macrosof the Makefile.After this, do% makeIF YOU DO NOT HAVE NS INSTALLEDJust do:% ./installand after NS (with Bluetooth extension) is installed successfully:% cd ns-2.1b7aRUNNING THE SIMULATION======================Before doing the following make sure that 'xgraph' and 'nam' arein your PATH shell variable. These two programs are installed atthe following locations:xgraph: NS_HOME/ns-allinone-2.1b7a/xgraph-12.1/nam: NS_HOME/ns-allinone-2.1b7a/nam-1.0a9/% mkdir run% cp bluehoc/tcl/*.tcl bluehoc/examples/*.tcl run/% cd runYou can test-run the example files simXYZ.tcl by:% ../ns simXYZ.tclNow the command% wish bluehoc.tclwill start a graphical interface which will helpyou through in configuring BLUEHOCPlease report any installation problems on the BLUEHOC project page.(oss.software.ibm.com/developerworks/projects/bluehoc)and for further instructions on how to use see the BlueHoc manual at:(oss.software.ibm.com/developerworks/opensource/bluehoc) [ Pobierz całość w formacie PDF ]

  • zanotowane.pl
  • doc.pisz.pl
  • pdf.pisz.pl
  • wolaosowinska.xlx.pl
  •