<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=gb2312" http-equiv=Content-Type>
<STYLE>
BLOCKQUOTE {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; MARGIN-LEFT: 2em
}
OL {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
UL {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
DIV.FoxDiv20130307140035899167 {
        WORD-WRAP: break-word; COLOR: #000000; -WEBKIT-NBSP-MODE: SPACE; -WEBKIT-LINE-BREAK: AFTER-WHITE-SPACE
}
P {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
BODY {
        LINE-HEIGHT: 1.5; FONT-FAMILY: 微软雅黑; COLOR: #000080; FONT-SIZE: 10.5pt
}
</STYLE>

<META name=GENERATOR content="MSHTML 8.00.7600.16912"></HEAD>
<BODY style="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 style="WIDTH: 210px; HEIGHT: 1px" align=left color=#b5c4df SIZE=1>

<DIV><SPAN>aaronishere</SPAN></DIV>
<DIV> </DIV>
<DIV 
style="BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; BORDER-TOP: #b5c4df 1pt solid; BORDER-RIGHT: medium none; PADDING-TOP: 3pt">
<DIV 
style="PADDING-BOTTOM: 8px; PADDING-LEFT: 8px; PADDING-RIGHT: 8px; BACKGROUND: #efefef; COLOR: #000000; FONT-SIZE: 12px; PADDING-TOP: 8px">
<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><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">
  <DIV 
  style="WIDOWS: 2; TEXT-TRANSFORM: none; TEXT-INDENT: 0px; MARGIN: 10px; FONT: medium/1.5 微软雅黑; 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 style="WIDTH: 210px; HEIGHT: 1px" align=left SIZE=1>

  <DIV><SPAN>Aaron</SPAN></DIV>
  <DIV> </DIV>
  <DIV 
  style="BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; BORDER-TOP: rgb(181,196,223) 1pt solid; BORDER-RIGHT: medium none; PADDING-TOP: 3pt">
  <DIV 
  style="PADDING-BOTTOM: 8px; BACKGROUND-COLOR: rgb(239,239,239); PADDING-LEFT: 8px; PADDING-RIGHT: 8px; FONT-SIZE: 12px; PADDING-TOP: 8px">
  <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 
  style="WORD-WRAP: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space" 
  class=FoxDiv20130307094339214857><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 style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; MARGIN-LEFT: 2em" 
  type="cite">
    <DIV 
    style="WIDOWS: 2; TEXT-TRANSFORM: none; TEXT-INDENT: 0px; MARGIN: 10px; FONT: medium/1.5 微软雅黑; 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 style="WIDTH: 210px; HEIGHT: 1px" align=left SIZE=1>

    <DIV><SPAN>Aaron</SPAN></DIV>
    <DIV> </DIV>
    <DIV 
    style="BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; BORDER-TOP: rgb(181,196,223) 1pt solid; BORDER-RIGHT: medium none; PADDING-TOP: 3pt">
    <DIV 
    style="PADDING-BOTTOM: 8px; BACKGROUND-COLOR: rgb(239,239,239); PADDING-LEFT: 8px; PADDING-RIGHT: 8px; FONT-SIZE: 12px; PADDING-TOP: 8px">
    <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 
    style="WORD-WRAP: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space" 
    class=FoxDiv20130307090219224176><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 style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; MARGIN-LEFT: 2em" 
    type="cite">
      <DIV 
      style="WIDOWS: 2; TEXT-TRANSFORM: none; TEXT-INDENT: 0px; MARGIN: 10px; FONT: medium/1.5 微软雅黑; 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 style="WIDTH: 210px; HEIGHT: 1px" align=left SIZE=1>

      <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></BODY></HTML>