<html><head><meta http-equiv="Content-Type" content="text/html charset=GB2312"><base href="x-msg://1070/"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Hi Aaron,</div><div><br></div><div>I have updated scenario repo, ndnSIM repo, and README instructions.  In my Ubuntu 12.10 (with stock boost 1.49), everything worked, including the visualizer.</div><div><pre style="margin-top: 15px; margin-bottom: 15px; padding: 6px 10px; border: 1px solid rgb(204, 204, 204); font-size: 13px; font-family: Consolas, 'Liberation Mono', Courier, monospace; background-color: rgb(248, 248, 248); line-height: 19px; overflow: auto; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; color: rgb(51, 51, 51); "><code style="margin: 0px; padding: 0px; border: none; font-size: 12px; font-family: Consolas, 'Liberation Mono', Courier, monospace; background-color: transparent; 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/cawka/pybindgen.git">git://github.com/cawka/pybindgen.git</a> pybindgen
git clone <a href="git://github.com/NDN-Routing/ndnSIM.git">git://github.com/NDN-Routing/ndnSIM.git</a> -b v0.2.7 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 -d optimized
./waf
sudo ./waf install
./waf shell</code></pre><pre style="margin-top: 15px; margin-bottom: 15px; padding: 6px 10px; border: 1px solid rgb(204, 204, 204); font-size: 13px; font-family: Consolas, 'Liberation Mono', Courier, monospace; background-color: rgb(248, 248, 248); line-height: 19px; overflow: auto; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; color: rgb(51, 51, 51); "><span style="background-color: transparent; font-size: 12px; ">cd ../ndnSIM-sample-topologies</span></pre></div><div><div><pre style="margin-top: 15px; margin-bottom: 0px !important; padding: 6px 10px; border: 1px solid rgb(204, 204, 204); font-size: 13px; font-family: Consolas, 'Liberation Mono', Courier, monospace; background-color: rgb(248, 248, 248); line-height: 19px; overflow: auto; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; color: rgb(51, 51, 51); "><code style="margin: 0px; padding: 0px; border: none; font-size: 12px; font-family: Consolas, 'Liberation Mono', Courier, monospace; background-color: transparent; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; ">PKG_LIBRARY_PATH=/usr/local/lib NS_VIS_ASSIGN=1 ./waf --run example --vis</code></pre><div><br></div></div></div><div>---</div><div>Alex</div><br><div><div>On Mar 6, 2013, at 10:02 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>VMware 9.0.1 with Ubuntu 12.10 boost 1.50</div><div>Thanks a lot!</div><div> </div><div> </div><hr align="left" size="1" style="width: 210px; height: 1px; "><div><span>aaronishere</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>发件人:</b> <a href="mailto:alexander.afanasyev@ucla.edu">Alex Afanasyev</a></div><div><b>发送时间:</b> 2013-03-07 12:38</div><div><b>收件人:</b> <a href="mailto:aaronishere@qq.com">aaronishere</a></div><div><b>主题:</b> Re: [ndnSIM] question for topology</div></div></div><div><div class="FoxDiv20130307140035899167" style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><base href="x-msg://159/"><div>I'm going to try to reproduce the problem. Are you using ubuntu, if yes then which version?</div><div><br></div><div>---</div><div>Alex</div><div><br></div><div><div>On Mar 6, 2013, at 5:58 PM, aaronishere <<a href="mailto:aaronishere@qq.com">aaronishere@qq.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite" style="margin-top: 0px; margin-bottom: 0px; margin-left: 2em; "><div style="widows: 2; text-transform: none; text-indent: 0px; margin: 10px; font-style: normal; font-variant: normal; font-weight: normal; font-size: medium; line-height: 1.5; font-family: 微软雅黑; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(0, 0, 128); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div><div> </div><div>root@ubuntu:/home/ndnSIM/ndnSIM-sample-topologies#  ./waf --run ndn-grid-topo-plugin --vis</div><div>Waf: Entering directory `/home/ndnSIM/ndnSIM-sample-topologies/build'</div><div>Waf: Leaving directory `/home/ndnSIM/ndnSIM-sample-topologies/build'</div><div>'build' finished successfully (0.024s)</div><div>build/ndn-grid-topo-plugin: error while loading shared libraries: libns3-dev-network-debug.so: cannot open shared object file: No such file or directory</div><div> </div><div>root@ubuntu:/home/ndnSIM/ndnSIM-sample-topologies# LD_LIBRARY_PATH=/usr/local/lib ./waf --run ndn-grid-topo-plugin --vis</div><div>Waf: Entering directory `/home/ndnSIM/ndnSIM-sample-topologies/build'</div><div>Waf: Leaving directory `/home/ndnSIM/ndnSIM-sample-topologies/build'</div><div>'build' finished successfully (0.024s)</div><div> </div><div>but there's no visualizer  showed.</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>发件人:</b> <a href="mailto:alexander.afanasyev@ucla.edu">Alex Afanasyev</a></div><div><b>发送时间:</b> 2013-03-07 09:27</div><div><b>收件人:</b> <a href="mailto:aaronishere@qq.com">aaronishere</a></div><div><b>抄送:</b> <a href="mailto:ndnsim@lists.cs.ucla.edu">ndnsim</a></div><div><b>主题:</b> Re: [ndnSIM] 回复: Re: question for topology</div></div></div><div><div class="FoxDiv20130307094339214857" style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><base href="x-msg://109/">Hmm... I suspect it is an old feature/bug with linking on Linux.<div><br></div><div>You can try to fetch & merge with the latest update I pushed to ndnSIM-sample-topologies repo and check if it solves to the problem (<a href="https://github.com/cawka/ndnSIM-sample-topologies/commit/93b67c03051072264af90a0357b5b9fe8be6e47b">https://github.com/cawka/ndnSIM-sample-topologies/commit/93b67c03051072264af90a0357b5b9fe8be6e47b</a>). </div><div><br></div><div>---</div><div>Alex</div><div><br><div><div>On Mar 6, 2013, at 5:05 PM, aaronishere <<a href="mailto:aaronishere@qq.com">aaronishere@qq.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite" style="margin-top: 0px; margin-bottom: 0px; margin-left: 2em; "><div style="widows: 2; text-transform: none; text-indent: 0px; margin: 10px; font-style: normal; font-variant: normal; font-weight: normal; font-size: medium; line-height: 1.5; font-family: 微软雅黑; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(0, 0, 128); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div>Hi, Alex</div><div><div> </div><div>root@ubuntu:/home/ndnSIM/ns-3# ./waf shell</div><div>Waf: Entering directory `/home/ndnSIM/ns-3/build'</div><div>Waf: Leaving directory `/home/ndnSIM/ns-3/build'</div></div><div> </div><div><div>root@ubuntu:/home/ndnSIM/ndnSIM-sample-topologies# ./waf configure  --debug</div><div>Setting top to                                                   : /home/ndnSIM/ndnSIM-sample-topologies </div><div>Setting out to                                                   : /home/ndnSIM/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                             : yes </div><div>Checking for ns3-core                                   : yes </div><div>Checking for ns3-network                            : yes </div><div>Checking for ns3-internet                            : yes </div><div>Checking for ns3-point-to-point                 : yes </div><div>Checking for ns3-topology-read                 : yes </div><div>Checking for ns3-applications                    : yes </div><div>Checking for ns3-mobility                          : yes </div><div>Checking for ns3-visualizer                        : yes </div><div>'configure' finished successfully (1.079s)</div><div>root@ubuntu:/home/ndnSIM/ndnSIM-sample-topologies# ./waf --run ndn-grid-topo-plugin --vis</div><div>Waf: Entering directory `/home/ndnSIM/ndnSIM-sample-topologies/build'</div><div>Waf: Leaving directory `/home/ndnSIM/ndnSIM-sample-topologies/build'</div><div>'build' finished successfully (0.022s)</div><div>assert failed. cond="uid != 0", msg="Assert in TypeId::LookupByName: ns3::VisualSimulatorImpl not found", file=../src/core/model/type-id.cc, line=419</div><div>terminate called without an active exception</div><div> </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>发件人:</b> <a href="mailto:alexander.afanasyev@ucla.edu">Alex Afanasyev</a></div><div><b>发送时间:</b> 2013-03-07 08:53</div><div><b>收件人:</b> <a href="mailto:aaronishere@qq.com">aaronishere</a></div><div><b>抄送:</b> <a href="mailto:ndnsim@lists.cs.ucla.edu">ndnsim</a></div><div><b>主题:</b> Re: [ndnSIM] question for topology</div></div></div><div><div class="FoxDiv20130307090219224176" style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><base href="x-msg://70/"><div>NS-3's python bindings (e.g., visualizer) are not very user friendly and require quite a bit magic.</div><div><br></div><div>The simplest way, just before running scenario, </div><div><br></div><div>cd /home/ndnSIM/</div><div>./waf shell</div><div>cd /home/ndnSIM/ndnSIM-sample-topologies</div><div>./waf --run ndn-grid-topo-plugin --vis</div><div><br></div><div>(or with LD_LIBRARY_PATH, but I don't think it's necessary)</div><div><br></div><div>If it still not working, check again what ./waf configure in /home/ndnSIM/ndnSIM-sample-topologies is telling.  Does it complain about visualizer or it shows "yes"?</div><div><br></div><div>---</div><div>Alex</div><div><br></div><div><div>On Mar 6, 2013, at 4:48 PM, aaronishere <<a href="mailto:aaronishere@qq.com">aaronishere@qq.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite" style="margin-top: 0px; margin-bottom: 0px; margin-left: 2em; "><div style="widows: 2; text-transform: none; text-indent: 0px; margin: 10px; font-style: normal; font-variant: normal; font-weight: normal; font-size: medium; line-height: 1.5; font-family: 微软雅黑; white-space: normal; orphans: 2; letter-spacing: normal; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div>Hi, Alex</div><div>Sorry to bother you again</div><div>I'm still not clear about how to use the topology</div><div>I copied the ndn-grid-topo-plugin under the file ....../ndnSIM-sample-topologies/scenario and changed it like below :</div><div> </div><div><div>int</div><div>main (int argc, char *argv[])</div><div>{</div><div>  ......</div><div>  RocketfuelWeightsReader  topologyReader ("", 25);</div><div>  topologyReader.SetFileName ("topologies/bw-delay-rand-1/1221.r0-conv-annotated.txt");</div><div>  topologyReader.Read ();</div><div>  ......</div><div>  // Getting containers for the consumer/producer</div><div>  Ptr<Node> producer = Names::Find<Node> ("bb-781");</div><div>  NodeContainer consumerNodes;</div><div>  consumerNodes.Add (Names::Find<Node> ("leaf-4349"));</div><div> ......</div><div>}</div><div> </div><div>but typed LD_LIBRARY_PATH=/usr/local/lib ./waf --run ndn-grid-topo-plugin --vis , it showed</div><div> </div><div><div>Waf: Entering directory `/home/ndnSIM/ndnSIM-sample-topologies/build'</div><div>Waf: Leaving directory `/home/ndnSIM/ndnSIM-sample-topologies/build'</div><div>'build' finished successfully (0.024s)</div><div>assert failed. cond="uid != 0", msg="Assert in TypeId::LookupByName: ns3::VisualSimulatorImpl not found", file=../src/core/model/type-id.cc, line=419</div><div>terminate called without an active exception</div><div> </div><div>Thanks a lot! </div></div><div> </div></div><hr align="left" size="1" style="width: 210px; height: 1px; "><div><span>Aaron</span></div>_______________________________________________<br>ndnSIM mailing list<br><a href="mailto:ndnSIM@lists.cs.ucla.edu">ndnSIM@lists.cs.ucla.edu</a><br><a href="http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim">http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim</a><br></div></blockquote></div><br></div></div>_______________________________________________<br>ndnSIM mailing list<br><a href="mailto:ndnSIM@lists.cs.ucla.edu">ndnSIM@lists.cs.ucla.edu</a><br><a href="http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim">http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim</a></div></blockquote></div></div></div></div></div></blockquote></div><br></div></div>_______________________________________________<br>ndnSIM mailing list<br><a href="mailto:ndnSIM@lists.cs.ucla.edu">ndnSIM@lists.cs.ucla.edu</a><br><a href="http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim">http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim</a><br></div></blockquote></div><br></body></html>