[ndnSIM] How to run simple example in ndnSIM2.0?

Alex Afanasyev alexander.afanasyev at ucla.edu
Mon Feb 2 14:01:33 PST 2015


> On Feb 2, 2015, at 12:54 PM, 최원준 <wonjunchoi001 at gmail.com> wrote:
> 
> Hello.
> 
> I am little confusing about how to run simple example.
> I have been using scratch folder but the source is changed from .cc to .cpp.
> so ./waf --run scratch/ndn-simple didn't work.
> I copied ndn-simple.cpp to scratch and compiled it by ./waf and then ./waf --run scratch/ndn-simple.

To use scratch folder, you will need to change extension from .cpp to .cc.  You can also compile NS-3 with examples.  This way you don’t need to copy anything to scratch folder and run examples directly.

—
Alex

> ./waf --run=ndn-simple
> 
> Waf: Entering directory `ndnSIM2.0/ns-3/build'
> 
> program 'ndn-simple' not found; available programs are: ['scratch-simulator', 'scratch/scratch-simulator', 'subdir', 'scratch/subdir/subdir', 'test-runner', 'utils/test-runner', 'bench-simulator', 'utils/bench-simulator', 'bench-packets', 'utils/bench-packets', 'print-introspected-doxygen', 'utils/print-introspected-doxygen']
> 
> 
> 
> The recommended way is also I don't know how to do it.
> 
> I did below steps. by the way, where should I put my scenario? in the scenario/build ?
> 
> git clone git://github.com/cawka/ndnSIM-scenario-template.git <http://github.com/cawka/ndnSIM-scenario-template.git> scenario
> cd scenario
> export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
> export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH
> 
> ./waf configure
> 
> ./waf --run <scenario>
> _______________________________________________
> ndnSIM mailing list
> ndnSIM at lists.cs.ucla.edu
> http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20150202/f36201c1/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 841 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20150202/f36201c1/attachment.bin>


More information about the ndnSIM mailing list