<html><head><meta http-equiv="Content-Type" content="text/html charset=GB2312"><base href="x-msg://1/"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Where did you install NS-3 ?   in /usr/local/?  Do you have /usr/local/include/ns3-dev  folder?</div><div><br></div><div>--</div><div>Alex</div><br><div><div>On Mar 5, 2013, at 11:05 PM, aaronishere <<a href="mailto:aaronishere@qq.com">aaronishere@qq.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="line-height: 1.5; font-family: Î¢ÈíÑźÚ; color: rgb(0, 0, 128); font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; margin: 10px; "><div><div>Hi, Alex</div><div>when I typed ./waf configure or  PKG_CONFIG_PATH=/home/ndnSIM/lib/pkgconfig ./waf configure</div><div>it showed like below:</div><div>gconfig ./waf configure</div><div>Setting top to                           : /home/ndnSIM-3-6/ndnSIM-sample-topologies </div><div>Setting out to                           : /home/ndnSIM-3-6/ndnSIM-sample-topologies/build </div><div>Checking for 'g++' (c++ compiler)        : /usr/bin/g++ </div><div>Checking boost includes                  : 1_50 </div><div>Checking boost libs                      : ok </div><div>Checking for boost linkage               : ok </div><div>Checking for program pkg-config          : /usr/bin/pkg-config </div><div>Checking for pkg-config version >= '0.0.0' : yes </div><div>Checking for ns3-ndnSIM                    : not found </div><div>NS-3 or one of the required NS-3 modules not found</div><div>NS-3 needs to be compiled and installed somewhere.  You may need also to set PKG_CONFIG_PATH variable in order for configure find installed NS-3.</div><div>For example:</div><div>    PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:$PKG_CONFIG_PATH ./waf configure</div><div> </div><div>(complete log in /home/ndnSIM-3-6/ndnSIM-sample-topologies/build/config.log)</div></div><div> </div><div>it seems that NS-3 is not found and the log in the build is like below:</div><div>....</div><div>....</div><div>....</div><div><div>------------------------------------------</div><div>Checking for ns3-ndnSIM</div><div>['/usr/bin/pkg-config', '--cflags', '--libs', 'libns3-dev-ndnSIM-optimized']</div><div>err: Package libns3-dev-ndnSIM-optimized was not found in the pkg-config search path.</div><div>Perhaps you should add the directory containing `libns3-dev-ndnSIM-optimized.pc'</div><div>to the PKG_CONFIG_PATH environment variable</div><div>No package 'libns3-dev-ndnSIM-optimized' found</div><div> </div><div>not found</div><div>from /home/ndnSIM/ndnSIM-sample-topologies: The configuration failed</div><div>from /home/ndnSIM/ndnSIM-sample-topologies: </div><div> </div><div> </div><div> </div></div><hr align="left" size="1" style="width: 210px; height: 1px; "><div><span>aaron</span></div><div> </div><div style="border-width: 1pt medium medium; border-style: solid none none; padding: 3pt 0cm 0cm; border-top-color: rgb(181, 196, 223); "><div style="padding: 8px; background-color: rgb(239, 239, 239); font-size: 12px; "><div><b>From:</b> <a href="mailto:alexander.afanasyev@ucla.edu">Alex Afanasyev</a></div><div><b>Date:</b> 2013-03-06 10:59</div><div><b>To:</b> <a href="mailto:aaronishere@qq.com">aaronishere</a></div><div><b>CC:</b> <a href="mailto:ndnsim@lists.cs.ucla.edu">ndnsim</a></div><div><b>Subject:</b> Re: [ndnSIM] question for topology</div></div></div><div><div class="FoxDiv20130306145823766215" style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><base href="x-msg://611/"><div>Hi Aaron,</div><div><br></div><div>Sorry, you are not the first one who gets confused with my template.  I hope a corrected README file is more clear.</div><div><br></div><div>In any case,  you need to clone ndnSIM-sample-topologies into a separate location, not related to ns-3.  Let's say you start from scratch, then you can do the following:</div><div><br></div><div><pre style="border: 1px solid rgb(204, 204, 204); padding: 6px 10px; line-height: 19px; background-color: rgb(248, 248, 248); margin-top: 15px; font-family: Consolas, 'Liberation Mono', Courier, monospace; margin-bottom: 15px; color: rgb(51, 51, 51); font-size: 13px; overflow: auto; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; "><code style="border: medium none; padding: 0px; background-color: transparent; margin: 0px; font-family: Consolas, 'Liberation Mono', Courier, monospace; font-size: 12px; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; ">mkdir ns-dev
cd ns-dev

git clone <a href="git://github.com/cawka/ns-3-dev-ndnSIM.git">git://github.com/cawka/ns-3-dev-ndnSIM.git</a> -b ns-3.16-ndnSIM ns-3
git clone <a href="git://github.com/NDN-Routing/ndnSIM.git">git://github.com/NDN-Routing/ndnSIM.git</a> -b v0.2.6 ns-3/src/ndnSIM

git clone <a href="git://github.com/cawka/ndnSIM-sample-topologies.git">git://github.com/cawka/ndnSIM-sample-topologies.git</a> ndnSIM-sample-topologies

cd ns-3
./waf configure
./waf install

cd ../ndnSIM-sample-topologies</code></pre><div>(there are some tricks to compile ndnSIM-sample-topologies, but README talks about them)</div></div><div><br></div><div><br></div><div>As for the usage, you can create your scenario similar to <a href="http://ndnsim.net/examples.html#node-grid-example-using-topology-plugin">http://ndnsim.net/examples.html#node-grid-example-using-topology-plugin</a>, but instead of  </div><div><pre style="border-bottom-color: rgb(170, 204, 153); border-bottom-width: 1px; border-style: solid none; text-align: left; padding: 5px; line-height: 14px; overflow-x: auto; overflow-y: hidden; font-size: 12px; border-top-color: rgb(170, 204, 153); border-top-width: 1px; "><span class="hll" style="background-color: rgb(255, 255, 136); "><span class="n">topologyReader</span><span class="p">.</span><span class="n">SetFileName</span> <span class="p">(</span><span class="s" style="color: rgb(64, 112, 160); ">"src/ndnSIM/examples/topologies/topo-grid-3x3.txt"</span><span class="p">);</span></span></pre><div>write something like</div></div><div><pre style="border-bottom-color: rgb(170, 204, 153); border-bottom-width: 1px; border-style: solid none; text-align: left; padding: 5px; line-height: 14px; overflow-x: auto; overflow-y: hidden; font-size: 12px; border-top-color: rgb(170, 204, 153); border-top-width: 1px; "><span class="hll" style="background-color: rgb(255, 255, 136); "><span class="n">topologyReader</span><span class="p">.</span><span class="n">SetFileName</span> <span class="p">(</span><span class="s" style="color: rgb(64, 112, 160); ">"topologies/bw-delay-rand-1/1221.r0-conv-annotated.txt"</span><span class="p">);  // you also need to adjust other parts of the scenario</span></span></pre><div><br></div></div><div>(or you can just copy .txt files to your preferred location)</div><div><br></div><div>Btw. This template can be used for all your custom simulations.  Just put any scenario that you're working on in scenarios/ folder and all of them will be automatically compiled when you do ./waf and you can run.</div><div><br></div><div>---</div><div>Alex</div></div></div>_______________________________________________<br>ndnSIM mailing list<br><a href="mailto:ndnSIM@lists.cs.ucla.edu">ndnSIM@lists.cs.ucla.edu</a><br>http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim</div></blockquote></div><br></body></html>