<!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.FoxDiv20130306153455193495 {
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>Under /home/ndnSIM/ and no /usr/local/include/ns3-dev
folder</DIV>
<DIV> </DIV>
<HR style="WIDTH: 210px; HEIGHT: 1px" align=left color=#b5c4df 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: #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-06 15:31</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=FoxDiv20130306153455193495><BASE href="x-msg://1/">
<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="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>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 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>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
style="WORD-WRAP: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space"
class=FoxDiv20130306145823766215><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-BOTTOM: rgb(204,204,204) 1px solid; BORDER-LEFT: rgb(204,204,204) 1px solid; PADDING-BOTTOM: 6px; LINE-HEIGHT: 19px; BACKGROUND-COLOR: rgb(248,248,248); MARGIN-TOP: 15px; PADDING-LEFT: 10px; PADDING-RIGHT: 10px; FONT-FAMILY: Consolas, 'Liberation Mono', Courier, monospace; MARGIN-BOTTOM: 15px; COLOR: rgb(51,51,51); FONT-SIZE: 13px; OVERFLOW: auto; BORDER-TOP: rgb(204,204,204) 1px solid; BORDER-RIGHT: rgb(204,204,204) 1px solid; PADDING-TOP: 6px; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px"><CODE style="BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0px; BACKGROUND-COLOR: transparent; MARGIN: 0px; PADDING-LEFT: 0px; PADDING-RIGHT: 0px; FONT-FAMILY: Consolas, 'Liberation Mono', Courier, monospace; FONT-SIZE: 12px; BORDER-TOP: medium none; BORDER-RIGHT: medium none; PADDING-TOP: 0px; 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: rgb(170,204,153) 1px solid; TEXT-ALIGN: left; PADDING-BOTTOM: 5px; LINE-HEIGHT: 14px; OVERFLOW-X: auto; OVERFLOW-Y: hidden; BORDER-RIGHT-STYLE: none; PADDING-LEFT: 5px; PADDING-RIGHT: 5px; FONT-SIZE: 12px; BORDER-LEFT-STYLE: none; BORDER-TOP: rgb(170,204,153) 1px solid; PADDING-TOP: 5px"><SPAN style="BACKGROUND-COLOR: rgb(255,255,136)" class=hll><SPAN class=n>topologyReader</SPAN><SPAN class=p>.</SPAN><SPAN class=n>SetFileName</SPAN> <SPAN class=p>(</SPAN><SPAN style="COLOR: rgb(64,112,160)" class=s>"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: rgb(170,204,153) 1px solid; TEXT-ALIGN: left; PADDING-BOTTOM: 5px; LINE-HEIGHT: 14px; OVERFLOW-X: auto; OVERFLOW-Y: hidden; BORDER-RIGHT-STYLE: none; PADDING-LEFT: 5px; PADDING-RIGHT: 5px; FONT-SIZE: 12px; BORDER-LEFT-STYLE: none; BORDER-TOP: rgb(170,204,153) 1px solid; PADDING-TOP: 5px"><SPAN style="BACKGROUND-COLOR: rgb(255,255,136)" class=hll><SPAN class=n>topologyReader</SPAN><SPAN class=p>.</SPAN><SPAN class=n>SetFileName</SPAN> <SPAN class=p>(</SPAN><SPAN style="COLOR: rgb(64,112,160)" class=s>"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></DIV></DIV></BODY></HTML>