<html><head><meta http-equiv="Content-Type" content="text/html charset=GB2312"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">You're welcome!<div><br></div><div>---</div><div>Alex</div><div><br><div><div>On May 6, 2013, at 4:58 AM, 李孟涵 <<a href="mailto:limenghan1101@gmail.com">limenghan1101@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr">Hi Alex,<div><br></div><div>    I updated your latest NS-3 code, and the execution error has been eliminated. </div>







<div><br></div><div>    Thanks for your help~</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/5/6 Alex Afanasyev <span dir="ltr"><<a href="mailto:alexander.afanasyev@ucla.edu" target="_blank">alexander.afanasyev@ucla.edu</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">Hi Menghan,<div><br></div><div>If you run the simulator without the visualizer, you should not get the errors.</div>
<div><br></div><div>At the same time, I think I figured out the problem with the visualizer, which was related to the usage of LTE module.  I have changed build of the examples, so they now linked to all NS-3 modules.  I also made several relevant changes to the base NS-3, so you probably want to update both repositories before re-running the example.</div>
<div><br></div><div>Btw, if you are using mac, you can build NS-3 natively on mac, unless you need the unique features that available only in linux version.</div><div><br></div><div>---</div><div>Alex</div><div><br><div><div>
<div class="h5"><div>On May 5, 2013, at 9:00 PM, 李孟涵 <<a href="mailto:limenghan1101@gmail.com" target="_blank">limenghan1101@gmail.com</a>> wrote:</div><br></div></div><blockquote type="cite"><div><div class="h5"><div dir="ltr">
Hi Alex,<div><br></div><div>    I downloaded NS-3 from git://<a href="http://github.com/cawka/ns-3-dev-ndnSIM.git" target="_blank">github.com/cawka/ns-3-dev-ndnSIM.git</a>, system is Ubuntu 12.04.1 in Parallels Desktop MAC.</div>

<div><br></div><div>    The following are complete error messages:</div><div><div>parallels@parallels-Parallels-Virtual-Platform:~/ndnSIM/ns-3$ ./waf --run=ndn-simple --vis</div><div>Waf: Entering directory `/home/parallels/ndnSIM/ns-3/build'</div>

<div>Waf: Leaving directory `/home/parallels/ndnSIM/ns-3/build'</div><div>'build' finished successfully (2.988s)</div><div>assert failed. cond="uid != 0", msg="Assert in TypeId::LookupByName: ns3::LteNetDevice not found", file=../src/core/model/type-id.cc, line=419</div>

<div>terminate called without an active exception</div><div>Command ['/home/parallels/ndnSIM/ns-3/build/src/ndnSIM/examples/ns3-dev-ndn-simple-debug', '--SimulatorImplementationType=ns3::VisualSimulatorImpl'] terminated with signal SIGIOT. Run it under a debugger to get more information (./waf --run <program> --command-template="gdb --args %s <args>").</div>

</div><div><br></div><div>    The attachment is my build/config.log.</div><div><br></div><div>    Thanks~</div>







</div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/5/5 Alex Afanasyev <span dir="ltr"><<a href="mailto:alexander.afanasyev@ucla.edu" target="_blank">alexander.afanasyev@ucla.edu</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div style="word-wrap:break-word"><div>HI Menghan,</div><div><br></div><div>I have pushed a couple of commits that should solve the configure process. Apparently, there was an indentation mistake at line 39, which caused the error that you have observed (library installed, but not detected).  Thanks for pointing to the problem!</div>

<div><br></div><div>As for LteNetDevice it is something different and definitely not related to the boost libraries.  Can you tell me which commit of the base NS-3 you have (just to double check), as well as what is your system (which version).  And last, can you send the exact command that you're typing that produces the error.  (If you can send or share in some way your build/config.log, it can also help.)</div>

<div><br></div>---<div>Alex</div><div><br><div><div>On May 4, 2013, at 3:02 AM, 李孟涵 <<a href="mailto:limenghan1101@gmail.com" target="_blank">limenghan1101@gmail.com</a>> wrote:</div><br><blockquote type="cite">

<div dir="ltr">Hi Alex,<div><br></div><div>    Thanks for your efforts in continuously updating the code. I have fixed the above problem. However, when I try to continue to compile the code, I met libboost problem below. </div>


<div><br></div><div><div>ndnSIM will not be build as it requires boost libraries: iostreams</div><div>Please upgrade your distribution or install custom boost libraries (<a href="http://ndnsim.net/faq.html#boost-libraries" target="_blank">http://ndnsim.net/faq.html#boost-libraries</a>)</div>


</div><div>    </div><div>    I have already built boost 1.53 in accordance with the tips form the FAQ, and the boost libs indeed included iostreams. So I checked wscript in ndnSIM to search the cause of error. Finally I tried to delete line 37 and 38. Then I can successfully build ndnSIM. But I don't know whether delete the judgement of "mt" can cause other problems. Seemingly, I failed to run ndn-simple and caused the following error:</div>


<div><br></div><div><div>assert failed. cond="uid != 0", msg="Assert in TypeId::LookupByName: ns3::LteNetDevice not found", file=../src/core/model/type-id.cc, line=419 </div><div>terminate called without an active exception</div>


<div><br></div><div>    If my behavior of deleting the code is inappropriate, then what should I do to successfully build the code.</div></div><div><br></div><div>    Thanks!</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">


2013/5/4 Alex Afanasyev <span dir="ltr"><<a href="mailto:alexander.afanasyev@ucla.edu" target="_blank">alexander.afanasyev@ucla.edu</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


Hi Menghan,<br>
<br>
Thanks for catching the problem!  Yesterday I was updating NS-3 base to the latest version (based on NS-3.17 release candidate / developer head) and forgot to push out necessary changes to ndnSIM.<br>
<br>
If you re-clone everything again, the error should disappear and the code should compile successfully.<br>
<br>
---<br>
Alex<br>
<div><br>
On May 3, 2013, at 9:13 AM, 李孟涵 <<a href="mailto:limenghan1101@gmail.com" target="_blank">limenghan1101@gmail.com</a>> wrote:<br>
<br>
> Hi all,<br>
><br>
>     I downloaded ndnSIM code from github without making any changes. But I can't build ndnSIM successfully. When I used waf to compile ndnSIM code, there were following error messages appeared.<br>
><br>
> parallels@parallels-Parallels-Virtual-Platform:~/ndnSIM/ns-3$ ./waf configure --enable-examples --enable-ndn-plugins=topology,mobility<br>
> Traceback (most recent call last):<br>
>   File "/home/parallels/ndnSIM/ns-3/.waf-1.7.10-4f6df1d839dc35640834d81573053140/waflib/Scripting.py", line 97, in waf_entry_point<br>
>     run_commands()<br>
>   File "/home/parallels/ndnSIM/ns-3/.waf-1.7.10-4f6df1d839dc35640834d81573053140/waflib/Scripting.py", line 149, in run_commands<br>
>     parse_options()<br>
>   File "/home/parallels/ndnSIM/ns-3/.waf-1.7.10-4f6df1d839dc35640834d81573053140/waflib/Scripting.py", line 127, in parse_options<br>
>     Context.create_context('options').execute()<br>
>   File "/home/parallels/ndnSIM/ns-3/.waf-1.7.10-4f6df1d839dc35640834d81573053140/waflib/Options.py", line 134, in execute<br>
>     super(OptionsContext,self).execute()<br>
>   File "/home/parallels/ndnSIM/ns-3/.waf-1.7.10-4f6df1d839dc35640834d81573053140/waflib/Context.py", line 87, in execute<br>
>     self.recurse([os.path.dirname(g_module.root_path)])<br>
>   File "/home/parallels/ndnSIM/ns-3/.waf-1.7.10-4f6df1d839dc35640834d81573053140/waflib/Context.py", line 128, in recurse<br>
>     user_function(self)<br>
>   File "/home/parallels/ndnSIM/ns-3/wscript", line 209, in options<br>
>     opt.recurse('src')<br>
>   File "/home/parallels/ndnSIM/ns-3/.waf-1.7.10-4f6df1d839dc35640834d81573053140/waflib/Context.py", line 128, in recurse<br>
>     user_function(self)<br>
>   File "/home/parallels/ndnSIM/ns-3/src/wscript", line 47, in options<br>
>     opt.recurse(module, mandatory=False)<br>
>   File "/home/parallels/ndnSIM/ns-3/.waf-1.7.10-4f6df1d839dc35640834d81573053140/waflib/Context.py", line 128, in recurse<br>
>     user_function(self)<br>
>   File "/home/parallels/ndnSIM/ns-3/src/ndnSIM/wscript", line 15, in options<br>
>     opt.tool_options('boost', tooldir=["waf-tools"])<br>
> AttributeError: 'OptionsContext' object has no attribute 'tool_options'<br>
> parallels@parallels-Parallels-Virtual-Platform:~/ndnSIM/ns-3$ ./waf configure<br>
> Traceback (most recent call last):<br>
>   File "/home/parallels/ndnSIM/ns-3/.waf-1.7.10-4f6df1d839dc35640834d81573053140/waflib/Scripting.py", line 97, in waf_entry_point<br>
>     run_commands()<br>
>   File "/home/parallels/ndnSIM/ns-3/.waf-1.7.10-4f6df1d839dc35640834d81573053140/waflib/Scripting.py", line 149, in run_commands<br>
>     parse_options()<br>
>   File "/home/parallels/ndnSIM/ns-3/.waf-1.7.10-4f6df1d839dc35640834d81573053140/waflib/Scripting.py", line 127, in parse_options<br>
>     Context.create_context('options').execute()<br>
>   File "/home/parallels/ndnSIM/ns-3/.waf-1.7.10-4f6df1d839dc35640834d81573053140/waflib/Options.py", line 134, in execute<br>
>     super(OptionsContext,self).execute()<br>
>   File "/home/parallels/ndnSIM/ns-3/.waf-1.7.10-4f6df1d839dc35640834d81573053140/waflib/Context.py", line 87, in execute<br>
>     self.recurse([os.path.dirname(g_module.root_path)])<br>
>   File "/home/parallels/ndnSIM/ns-3/.waf-1.7.10-4f6df1d839dc35640834d81573053140/waflib/Context.py", line 128, in recurse<br>
>     user_function(self)<br>
>   File "/home/parallels/ndnSIM/ns-3/wscript", line 209, in options<br>
>     opt.recurse('src')<br>
>   File "/home/parallels/ndnSIM/ns-3/.waf-1.7.10-4f6df1d839dc35640834d81573053140/waflib/Context.py", line 128, in recurse<br>
>     user_function(self)<br>
>   File "/home/parallels/ndnSIM/ns-3/src/wscript", line 47, in options<br>
>     opt.recurse(module, mandatory=False)<br>
>   File "/home/parallels/ndnSIM/ns-3/.waf-1.7.10-4f6df1d839dc35640834d81573053140/waflib/Context.py", line 122, in recurse<br>
>     wscript_module=load_module(node.abspath())<br>
>   File "/home/parallels/ndnSIM/ns-3/.waf-1.7.10-4f6df1d839dc35640834d81573053140/waflib/Context.py", line 281, in load_module<br>
>     exec(compile(code,path,'exec'),module.__dict__)<br>
>   File "/home/parallels/ndnSIM/ns-3/src/ndnSIM/wscript", line 4, in <module><br>
>     import Logs<br>
> ImportError: No module named Logs<br>
><br>
>   If above errors are due to lacking necessary patches or other reasons?<br>
>   Look forward to your reply!Thanks a lot~<br>
><br>
> Best regards,<br>
> --<br>
> Menghan Li<br>
> Ph.D. Candidate,<br>
> Department of Computer Science and Technology,<br>
> Tsinghua University, Beijing, China.<br>
</div>> _______________________________________________<br>
> ndnSIM mailing list<br>
> <a href="mailto:ndnSIM@lists.cs.ucla.edu" target="_blank">ndnSIM@lists.cs.ucla.edu</a><br>
> <a href="http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim" target="_blank">http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim</a><br>
<br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div><span>李孟涵(Menghan Li)</span></div><span><div>Ph.D. Candidate,</div><div>Department of Computer Science and Technology,</div><div>Tsinghua University, Beijing, China.</div>


</span>
</div>
</blockquote></div><br></div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div><span>李孟涵(Menghan Li)</span></div><span><div>Ph.D. Candidate,</div><div>Department of Computer Science and Technology,</div>

<div>Tsinghua University, Beijing, China.</div></span>
</div>
</div></div><span><config.log></span>_______________________________________________<div class="im"><br>ndnSIM mailing list<br><a href="mailto:ndnSIM@lists.cs.ucla.edu" target="_blank">ndnSIM@lists.cs.ucla.edu</a><br>
<a href="http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim" target="_blank">http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim</a><br></div></blockquote></div><br></div></div></blockquote></div><br><br clear="all"><div>
<br></div>-- <br><div><span>李孟涵(Menghan Li)</span></div><span><div>Ph.D. Candidate,</div><div>Department of Computer Science and Technology,</div><div>Tsinghua University, Beijing, China.</div></span>
</div>
</blockquote></div><br></div></body></html>