Friday, April 4, 2014

AntHocNet installation in Ubuntu 12.04

The steps to be followed are:
  1. Download the AntHocNet patch for NS-2.34 from the following link http://anthocnet.svn.sourceforge.net/viewvc/anthocnet/ 
  2. Modify the makefile because the entries for anthocnet were missing in the patch. 
  3. Compile the patch using:
    1. ./configure
    2. make clean
    3. make
    4. make install
  4. Now, you run example files with routing protocol as "AntHocNet"

The common errors:
  • trace/cmu-trace.o: In function `AntBasicPacket::access(Packet const*)':cmu-trace.cc:(.text._ZN14AntBasicPacket6accessEPK6Packet[AntBasicPacket::access(Packetconst*)]+0x7): undefined reference to `AntBasicPacket::offset_'collect2: ld returned 1 exit status 
        make: *** [ns] Error 1
        Ns make failed!
        See http://www.isi.edu/nsnam/ns/ns-problems.html for problems        
        Solution:
        Update the  makefile with proper path for object files.
 

No comments:

Post a Comment