<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">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><div class="h5"><br>
On May 3, 2013, at 9:13 AM, ÀîÃϺ­ <<a href="mailto:limenghan1101@gmail.com">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></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" 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>