<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Jun 26, 2016, at 2:43 PM, Ravi Ravindran <<a href="mailto:ravi.ravindran@gmail.com" class="">ravi.ravindran@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div class="">HI Alex,</div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">I'm facing two other issues with ndnSIM2.1</div><div class=""><br class=""></div><div class="">1. Cannot run it with the visualizer, i compiled it with the python binding.</div><div class=""><br class=""></div><div class=""><div class="">Ravis-MBP:ns-3 ravi$ ./waf --run ndn-grid --vis</div><div class="">Waf: Entering directory `/Users/ravi/Documents/code/ndnSIM2.1/ns-3/build'</div><div class="">Waf: Leaving directory `/Users/ravi/Documents/code/ndnSIM2.1/ns-3/build'</div><div class="">Build commands will be stored in build/compile_commands.json</div><div class="">'build' finished successfully (2.112s)</div><div class=""><br class=""></div><div class="">** (process:83730): WARNING **: Trying to register gtype 'GMountMountFlags' as enum when in fact it is of type 'GFlags'</div><div class=""><br class=""></div><div class="">** (process:83730): WARNING **: Trying to register gtype 'GDriveStartFlags' as enum when in fact it is of type 'GFlags'</div><div class=""><br class=""></div><div class="">** (process:83730): WARNING **: Trying to register gtype 'GSocketMsgFlags' as enum when in fact it is of type 'GFlags'</div><div class="">/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/gtk-2.0/gtk/__init__.py:57: GtkWarning: could not open display</div><div class="">  warnings.warn(str(e), _gtk.Warning)</div><div class="">Could not load plugin 'show_last_packets.py': No module named kiwi.ui.objectlist</div><div class="">/Users/ravi/Documents/code/ndnSIM2.1/ns-3/src/visualizer/visualizer/core.py:641: Warning: invalid (NULL) pointer instance</div><div class="">  self.window = gtk.Window()</div><div class="">/Users/ravi/Documents/code/ndnSIM2.1/ns-3/src/visualizer/visualizer/core.py:641: Warning: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed</div><div class="">  self.window = gtk.Window()</div><div class="">/Users/ravi/Documents/code/ndnSIM2.1/ns-3/src/visualizer/visualizer/core.py:653: GtkWarning: gtk_settings_get_for_screen: assertion 'GDK_IS_SCREEN (screen)' failed</div><div class="">  sw = gtk.ScrolledWindow(); sw.show()</div></div></div></div></blockquote><div><br class=""></div>I'm guessing that you don't have XQuartz installed (<a href="https://www.xquartz.org/" class="">https://www.xquartz.org/</a>).  I've tested on my machine, visualizer works with macports (not possible at all with Homebrew).<br class=""><div><br class=""></div><div><br class=""></div><blockquote type="cite" class=""><div class=""><div dir="ltr" class=""><div class="">2. Running scenarios in the scenario folder, doesn't work, so for this i copied the ndn-grid example to the ,configured it for the debug flag..                                                                                                                                                                                                                                                                                                                                                                            </div><div class=""><br class=""></div><div class=""><div class="">Ravis-MBP:scenario ravi$ ./waf</div><div class="">Waf: Entering directory `/Users/ravi/Documents/code/ndnSIM2.1/scenario/build'</div><div class="">[1/2] Compiling scenarios/ndn-grid.cpp</div><div class="">In file included from ../scenarios/ndn-grid.cpp:26:</div><div class="">In file included from /usr/local/include/ns3-dev/ns3/ndnSIM-module.h:10:</div><div class="">In file included from /usr/local/include/ns3-dev/ns3/ndn-all.hpp:23:</div><div class="">In file included from /usr/local/include/ns3-dev/ns3/ndnSIM/helper/ndn-stack-helper.hpp:30:</div><div class="">In file included from /usr/local/include/ns3-dev/ns3/ndnSIM/helper/ndn-face-container.hpp:30:</div><div class="">In file included from /usr/local/include/ns3-dev/ns3/ndnSIM/model/ndn-face.hpp:23:</div><div class="">In file included from /usr/local/include/ns3-dev/ns3/ndnSIM/NFD/daemon/face/face.hpp:29:</div><div class="">In file included from /Users/ravi/Documents/code/ndnSIM2.1/ns-3/build/ns3/ndnSIM/NFD/common.hpp:66:</div><div class="">In file included from /Users/ravi/Documents/code/ndnSIM2.1/ns-3/build/ns3/ndnSIM/ndn-cxx/util/signal.hpp:25:</div><div class="">/Users/ravi/Documents/code/ndnSIM2.1/ns-3/build/ns3/ndnSIM/ndn-cxx/util/signal-signal.hpp:108:4: error: "cannot declare Owner as friend"</div><div class="">#  error "cannot declare Owner as friend"</div><div class="">   ^</div><div class="">In file included from ../scenarios/ndn-grid.cpp:26:</div><div class="">In file included from /usr/local/include/ns3-dev/ns3/ndnSIM-module.h:10:</div><div class="">In file included from /usr/local/include/ns3-dev/ns3/ndn-all.hpp:23:</div><div class="">In file included from /usr/local/include/ns3-dev/ns3/ndnSIM/helper/ndn-stack-helper.hpp:30:</div><div class="">In file included from /usr/local/include/ns3-dev/ns3/ndnSIM/helper/ndn-face-container.hpp:30:</div><div class="">In file included from /usr/local/include/ns3-dev/ns3/ndnSIM/model/ndn-face.hpp:23:</div><div class="">/usr/local/include/ns3-dev/ns3/ndnSIM/NFD/daemon/face/face.hpp:139:13: error: no type named 'FacePersistency' in namespace 'ndn::nfd'</div><div class="">  ndn::nfd::FacePersistency</div><div class="">  ~~~~~~~~~~^</div><div class="">/usr/local/include/ns3-dev/ns3/ndnSIM/NFD/daemon/face/face.hpp:180:28: error: no type named 'FacePersistency' in namespace 'ndn::nfd'</div><div class="">  setPersistency(ndn::nfd::FacePersistency persistency);</div><div class="">                 ~~~~~~~~~~^</div><div class="">/usr/local/include/ns3-dev/ns3/ndnSIM/NFD/daemon/face/face.hpp:211:13: error: no type named 'FacePersistency' in namespace 'ndn::nfd'</div><div class="">  ndn::nfd::FacePersistency m_persistency;</div></div></div></div></blockquote><div><br class=""></div><div>Just did the same and had no problems.  I got a bunch of warnings from boost, but the compilation of ndn-grid.cpp (copied from src/ndnSIM/examples/ndn-grid.cpp to scenarios/ folder).</div><div><br class=""></div><div>Not sure what could be wrong in your installation.  Did you run `sudo ./waf install` after compiling ndnSIM/NS-3?  I have only one guess that you may had previous installation of ndnSIM.</div><div><br class=""></div><div>--</div><div>Alex</div><br class=""><blockquote type="cite" class=""><div class=""><div class="gmail_extra"><br class=""><div class="gmail_quote">On Fri, Jun 24, 2016 at 2:31 PM, Ravi Ravindran <span dir="ltr" class=""><<a href="mailto:ravi.ravindran@gmail.com" target="_blank" class="">ravi.ravindran@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="">Sure, thanks.<div class=""><br class=""></div><div class="">Regards,</div><div class="">Ravi</div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br class=""><div class="gmail_quote">On Fri, Jun 24, 2016 at 11:20 AM, Alex Afanasyev <span dir="ltr" class=""><<a href="mailto:alexander.afanasyev@ucla.edu" target="_blank" class="">alexander.afanasyev@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"><div style="word-wrap:break-word" class="">It works, though i was able to install dependnecies only with macports.  There are a few missing packages for homebrew.<div class=""><br class=""></div><div class="">---</div><div class="">Alex</div><div class=""><div class=""><div class=""><br class=""><div class=""><blockquote type="cite" class=""><div class="">On Jun 24, 2016, at 11:18 AM, Ravi Ravindran <<a href="mailto:ravi.ravindran@gmail.com" target="_blank" class="">ravi.ravindran@gmail.com</a>> wrote:</div><br class=""><div class=""><div dir="ltr" class="">Sure that worked..!. So the visualizer doesn't work on MAC, or has it to do something with homebrew based setups ?<div class=""><br class=""></div><div class="">Thanks</div><div class="">Ravi</div></div><div class="gmail_extra"><br class=""><div class="gmail_quote">On Fri, Jun 24, 2016 at 11:08 AM, Alex Afanasyev <span dir="ltr" class=""><<a href="mailto:alexander.afanasyev@ucla.edu" target="_blank" class="">alexander.afanasyev@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"><div style="word-wrap:break-word" class="">macport's version of cryptopp library was broken at some point.  Check if you have /opt/local/lib/libcryptopp.so or /opt/local/lib/libcryptopp.dylib file.  If so, remove it and try to recompile NS-3.<div class=""><br class=""></div><div class="">I am yet to try compilation myself with macports (not sure when).</div><div class=""><div class=""><div class=""><br class=""><div class=""><blockquote type="cite" class=""><div class="">On Jun 24, 2016, at 11:05 AM, Ravi Ravindran <<a href="mailto:ravi.ravindran@gmail.com" target="_blank" class="">ravi.ravindran@gmail.com</a>> wrote:</div><br class=""><div class=""><div dir="ltr" class="">Macports..Alex.<div class=""><br class=""></div><div class="">Regards,</div><div class="">Ravi</div></div><div class="gmail_extra"><br class=""><div class="gmail_quote">On Fri, Jun 24, 2016 at 10:42 AM, Alex Afanasyev <span dir="ltr" class=""><<a href="mailto:alexander.afanasyev@ucla.edu" target="_blank" class="">alexander.afanasyev@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">Yes, I'm using it on my mac.  Are you using macrports or homebrew (I've been using homebrew myself lately, though it doesn't support visualizer).<br class="">
<br class="">
--<br class="">
Alex<br class="">
<div class=""><div class=""><br class="">
> On Jun 24, 2016, at 10:39 AM, Ravi Ravindran <<a href="mailto:ravi.ravindran@gmail.com" target="_blank" class="">ravi.ravindran@gmail.com</a>> wrote:<br class="">
><br class="">
> hi Anil,<br class="">
><br class="">
> Have you tried compiling ndnSIM2.1 on MAC, if so, i'm getting an error:<br class="">
><br class="">
><br class="">
> 2577/2642] Linking build/examples/wireless/ns3-dev-wifi-sleep-debug<br class="">
> [2578/2642] Linking build/libns3-dev-wave-debug.dylib<br class="">
> Undefined symbols for architecture x86_64:<br class="">
>   "vtable for CryptoPP::SHA256", referenced from:<br class="">
>       CryptoPP::SHA256::SHA256() in sec-tpm-file.cpp.3.o<br class="">
>       CryptoPP::SHA256::SHA256(CryptoPP::SHA256 const&) in sec-tpm-file.cpp.3.o<br class="">
>       CryptoPP::SHA256::SHA256() in validator.cpp.3.o<br class="">
>       CryptoPP::SHA256::SHA256(CryptoPP::SHA256 const&) in validator.cpp.3.o<br class="">
>       CryptoPP::SHA256::SHA256() in crypto.cpp.3.o<br class="">
>       CryptoPP::SHA256::SHA256(CryptoPP::SHA256 const&) in crypto.cpp.3.o<br class="">
>       CryptoPP::SHA256::SHA256() in digest.cpp.3.o<br class="">
>       ...<br class="">
>   NOTE: a missing vtable usually means the first non-inline virtual member function has no definition.<br class="">
> ld: symbol(s) not found for architecture x86_64<br class="">
> clang: error: linker command failed w<br class="">
><br class="">
> Regards,<br class="">
> Ravi<br class="">
<br class="">
</div></div></blockquote></div><br class=""></div>
</div></blockquote></div><br class=""></div></div></div></div></blockquote></div><br class=""></div>
</div></blockquote></div><br class=""></div></div></div></div></blockquote></div><br class=""></div>
</div></div></blockquote></div><br class=""></div>
</div></blockquote></div><br class=""></body></html>