<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Assuming you're using Linux and you ran ` sudo ./waf install` after compiling ndnSIM/NS-3, run also `ldconfig`.  This will update cache of shared libraries, so the dynamic linker will be able to find them.<div class=""><br class=""></div><div class="">---</div><div class="">Alex</div><div class=""><br class=""><div class=""><div><blockquote type="cite" class=""><div class="">On Jun 9, 2016, at 10:48 PM, Muhammad Hosain Abdollahi Sabet <<a href="mailto:mhasabet@gmail.com" class="">mhasabet@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div class="gmail_default" style="font-family:tahoma,sans-serif">More info:<br class=""></div><div class="gmail_default" style="font-family:tahoma,sans-serif">It seems it has to do with the last commit.<br class=""></div><div class="gmail_default" style="font-family:tahoma,sans-serif">I've <i class="">waf</i>ed only with --logging(without --debug) and it works without --vis. With --vis I'm getting:<br class=""><br class=""><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote">'build' finished successfully (0.023s)<br class="">Traceback (most recent call last):<br class="">  File "<string>", line 1, in <module><br class="">  File "/usr/local/lib/python2.7/dist-packages/visualizer/__init__.py", line 2, in <module><br class="">    from core import start, register_plugin, set_bounds, add_initialization_hook<br class="">  File "/usr/local/lib/python2.7/dist-packages/visualizer/core.py", line 23, in <module><br class="">    import ns.core<br class="">  File "/usr/local/lib/python2.7/dist-packages/ns/core.py", line 5, in <module><br class="">    from . import _core<br class="">ImportError: libns3-dev-core-debug.so: cannot open shared object file: No such file or directory<br class=""></blockquote><br class=""></div><div class="gmail_default" style="font-family:tahoma,sans-serif">When I do <i class="">waf --debug --logging</i>, with or without --vis I get:<br class=""><br class=""><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote">'build' finished successfully (7.276s)<br class="">build/getme-simple: error while loading shared libraries: libns3-dev-core-debug.so: cannot open shared object file: No such file or directory</blockquote><div class=""><br class=""></div><div class="">The actual ns-3 build with -d debug is working correctly. With --vis and with <span style="font-family:tahoma,sans-serif;font-size:14px" class="">NS_LOG=nfd.Forwarder.<br class=""><br class=""></span></div><div class=""><span style="font-family:tahoma,sans-serif;font-size:14px" class="">Regard,<br class=""></span></div><div class=""><span style="font-family:tahoma,sans-serif;font-size:14px" class="">Thanks<br class=""></span> </div></div><br class=""><div class="gmail_extra"><div class="gmail_quote">On Mon, Jun 6, 2016 at 12:01 PM, Muhammad Hosain Abdollahi Sabet <span dir="ltr" class=""><<a href="mailto:mhasabet@gmail.com" target="_blank" class="">mhasabet@gmail.com</a>></span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr" class=""><div style="font-family:tahoma,sans-serif" class="">--Update</div><div style="font-family:tahoma,sans-serif" class="">My bad! I had done with wrong repository(cawka). I've done it with the right one. And now:</div><div style="font-family:tahoma,sans-serif" class=""><br class="">error while loading shared libraries: libns3-dev-core-debug.so: cannot open shared object file: No such file or directory</div><div style="font-family:tahoma,sans-serif" class=""><br class=""></div><div style="font-family:tahoma,sans-serif" class="">Any ideas?</div><div style="font-family:tahoma,sans-serif" class=""><br class=""></div><div style="font-family:tahoma,sans-serif" class="">P.S: Could you correct <a href="http://ndnsim.net/" target="_blank" class="">ndnsim.net</a>:</div><div style="font-family:tahoma,sans-serif" class=""><a href="http://ndnsim.net/2.1/getting-started.html#simulating-using-ndnsim" target="_blank" class="">http://ndnsim.net/2.1/getting-started.html#simulating-using-ndnsim</a></div><div style="font-family:tahoma,sans-serif" class="">It is still referring to cawka/ndnSIM-scenario-template.</div><div style="font-family:tahoma,sans-serif" class=""><br class=""></div><div style="font-family:tahoma,sans-serif" class="">Regards,</div><div style="font-family:tahoma,sans-serif" class="">Sabet</div><div style="font-family:tahoma,sans-serif" class=""><br class=""></div><div style="font-family:tahoma,sans-serif" class=""><br class=""></div></div><div class="gmail_extra"><br clear="all" class=""><div class=""><div data-smartmail="gmail_signature" class=""><div dir="ltr" class=""><div dir="rtl" class=""><font face="tahoma, sans-serif" class="">خندان باشید</font></div><div dir="rtl" class=""><font face="tahoma, sans-serif" class="">با تشکر</font></div></div></div></div><div class=""><div class="h5">
<br class=""><div class="gmail_quote">On Mon, Jun 6, 2016 at 10:24 AM, Muhammad Hosain Abdollahi Sabet <span dir="ltr" class=""><<a href="mailto:mhasabet@gmail.com" target="_blank" class="">mhasabet@gmail.com</a>></span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr" class=""><div style="font-family:tahoma,sans-serif" class="">Alex,</div><div style="font-family:tahoma,sans-serif" class=""><br class=""></div><div style="font-family:tahoma,sans-serif" class="">I did fetched the last commits, but still am getting those errors.</div><div style="font-family:tahoma,sans-serif" class=""><br class=""></div><div style="font-family:tahoma,sans-serif" class="">Regards,</div><div style="font-family:tahoma,sans-serif" class="">Sabet<br class=""></div></div><div class="gmail_extra"><br clear="all" class=""><div class=""><div data-smartmail="gmail_signature" class=""><div dir="ltr" class=""><div dir="rtl" class=""><font face="tahoma, sans-serif" class="">خندان باشید</font></div><div dir="rtl" class=""><font face="tahoma, sans-serif" class="">با تشکر</font></div></div></div></div><div class=""><div class="">
<br class=""><div class="gmail_quote">On Tue, May 31, 2016 at 6:10 PM, Alex Afanasyev <span dir="ltr" class=""><<a href="mailto:aa@cs.ucla.edu" target="_blank" class="">aa@cs.ucla.edu</a>></span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Sabet,<br class="">
<br class="">
That would be correct solution.  Some code in NS-3 doesn't pass the pedantic checks.  Check the latest commit to scenario-template repository, which fixes exactly this problem:<br class="">
<br class="">
<a href="https://github.com/named-data-ndnSIM/scenario-template/commit/2b5b6f55f04982273e62127082a19459ec68ff43" rel="noreferrer" target="_blank" class="">https://github.com/named-data-ndnSIM/scenario-template/commit/2b5b6f55f04982273e62127082a19459ec68ff43</a><br class="">
<br class="">
--<br class="">
Alex<br class="">
<div class=""><div class=""><br class="">
> On May 31, 2016, at 4:16 AM, Muhammad Hosain Abdollahi Sabet <<a href="mailto:mhasabet@gmail.com" target="_blank" class="">mhasabet@gmail.com</a>> wrote:<br class="">
><br class="">
> Alex,<br class="">
><br class="">
> I did so. And now I'm getting a whole set of<br class="">
><br class="">
> extra ‘;’ [-Werror=pedantic]<br class="">
> and<br class="">
> cc1plus: all warnings being treated as errors<br class="">
> and<br class="">
> extra tokens at end of #include directive [-Werror]<br class="">
><br class="">
><br class="">
> for header files. We could modify CXXFLAGS, but is it correct to do so? What is the problem?<br class="">
><br class="">
> ​Thanks,<br class="">
> Sabet​<br class="">
><br class="">
> On Tue, May 31, 2016 at 2:04 AM, Alex Afanasyev <<a href="mailto:aa@cs.ucla.edu" target="_blank" class="">aa@cs.ucla.edu</a>> wrote:<br class="">
> Did you use --debug flag when configuring the scenario?  If not, it still uses the optimized version of NS-3.<br class="">
><br class="">
> --<br class="">
> Alex<br class="">
><br class="">
>> On May 30, 2016, at 3:12 AM, Muhammad Hosain Abdollahi Sabet <<a href="mailto:mhasabet@gmail.com" target="_blank" class="">mhasabet@gmail.com</a>> wrote:<br class="">
>><br class="">
>> I did compile NS-3 in debug mode. And did compile my scenario with<br class="">
>><br class="">
>> export 'NS_LOG=*=debug|prefix_func|prefix_time'<br class="">
>> but again, I got only my application LOGs. So?<br class="">
>><br class="">
>> ​Regards,<br class="">
>> Sabet<br class="">
>><br class="">
>> On Mon, May 30, 2016 at 11:00 AM, Muhammad Hosain Abdollahi Sabet <<a href="mailto:mhasabet@gmail.com" target="_blank" class="">mhasabet@gmail.com</a>> wrote:<br class="">
>> ​Alex,<br class="">
>><br class="">
>> You're right. I've wafed with -d optimized accoriding to scenario-tamplate. I'll compile in debug mode and will let you know.<br class="">
>><br class="">
>> Thanks,<br class="">
>> Sabet<br class="">
>><br class="">
>> خندان باشید<br class="">
>> با تشکر<br class="">
>><br class="">
>> On Mon, May 30, 2016 at 12:24 AM, Alex Afanasyev <<a href="mailto:aa@cs.ucla.edu" target="_blank" class="">aa@cs.ucla.edu</a>> wrote:<br class="">
>> NS_LOG is enabled only in debug version of the simulator and scenario.  I'm guessing that you have compiled in optimized mode, where al NS_LOG macros are expanded to nothing.  Visualizer is using trace mechanism, so it works in either case.<br class="">
>><br class="">
>> Just compile NS-3 and your scenario in debug mode and it should work.<br class="">
>><br class="">
>> ---<br class="">
>> Alex<br class="">
>><br class="">
>><br class="">
>>> On May 26, 2016, at 10:58 AM, Muhammad Hosain Abdollahi Sabet <<a href="mailto:mhasabet@gmail.com" target="_blank" class="">mhasabet@gmail.com</a>> wrote:<br class="">
>>><br class="">
>>> ​Hi All,<br class="">
>>><br class="">
>>> I have faced a situation in which visualizer shows an exchange (both interest and data), but NS_LOG doesn't show it. Is it a bug or something? Or that exchange is really happening?<br class="">
>>><br class="">
>>> Thanks,<br class="">
>>> Sabet<br class="">
>><br class="">
>><br class="">
>><br class="">
><br class="">
><br class="">
<br class="">
</div></div></blockquote></div><br class=""></div></div></div>
</blockquote></div><br class=""></div></div></div>
</blockquote></div><br class=""></div></div>
</div></blockquote></div><br class=""></div></div></body></html>