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 
  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*)'[AntBasicPacket::access(Packetconst*)]+0x7): undefined reference to `AntBasicPacket::offset_'collect2: ld returned 1 exit status 
        make: *** [ns] Error 1
        Ns make failed!
        See for problems        
        Update the  makefile with proper path for object files.