<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Feb 2, 2015, at 12:54 PM, 최원준 <<a href="mailto:wonjunchoi001@gmail.com" class="">wonjunchoi001@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">Hello.<div class=""><br class=""></div><div class="">I am little confusing about how to run simple example.</div><div class="">I have been using scratch folder but the source is changed from .cc to .cpp. </div><div class="">so ./waf --run scratch/ndn-simple didn't work.</div><div class="">I copied ndn-simple.cpp to scratch and compiled it by ./waf and then ./waf --run scratch/ndn-simple. </div></div></div></blockquote><div><br class=""></div><div>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.</div><div><br class=""></div>—</div><div>Alex</div><div><br class=""><blockquote type="cite" class=""><div class=""><div dir="ltr" class=""><div class=""><p class="">./waf --run=ndn-simple</p><p class="">Waf: Entering directory `ndnSIM2.0/ns-3/build'</p><p class=""><b class="">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']</b></p><p class=""><br class=""></p><p class="">The recommended way is also I don't know how to do it. <br class=""></p></div><div class="">I did below steps. by the way, where should I put my scenario? in the scenario/build ?</div><div class=""><br class=""></div><div class=""><pre style="padding: 5px; line-height: 17.6000003814697px; border-top-width: 1px; border-bottom-width: 1px; border-style: solid none; border-top-color: rgb(170, 204, 153); border-bottom-color: rgb(170, 204, 153); font-size: 14.6666669845581px; text-align: justify;" class="">git clone git://<a href="http://github.com/cawka/ndnSIM-scenario-template.git" class="">github.com/cawka/ndnSIM-scenario-template.git</a> scenario
<span class="" style="color:rgb(0,112,32)">cd </span>scenario
<span class="" style="color:rgb(0,112,32)">export </span><span class="" style="color:rgb(187,96,213)">PKG_CONFIG_PATH</span><span class="" style="color:rgb(102,102,102)">=</span>/usr/local/lib/pkgconfig
<span class="" style="color:rgb(0,112,32)">export </span><span class="" style="color:rgb(187,96,213)">LD_LIBRARY_PATH</span><span class="" style="color:rgb(102,102,102)">=</span>/usr/local/lib:<span class="" style="color:rgb(187,96,213)">$LD_LIBRARY_PATH</span>

./waf configure

./waf --run <scenario></pre></div></div>
_______________________________________________<br class="">ndnSIM mailing list<br class=""><a href="mailto:ndnSIM@lists.cs.ucla.edu" class="">ndnSIM@lists.cs.ucla.edu</a><br class="">http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim<br class=""></div></blockquote></div><br class=""></body></html>