<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=""><div class="">Ooops.  The instructions in README pointing to wrong places.  Will fix that.</div><div class=""><br class=""></div><div class="">As for the shared library error.  Assuming you're on Linux, restart or running `sudo ldconfig` should solve the problem.</div><div class=""><br class=""></div><div class="">---</div><div class="">Alex </div><br class=""><div><blockquote type="cite" class=""><div class="">On Jan 3, 2017, at 11:02 PM, John Baugh <<a href="mailto:jpbaugh@umich.edu" class="">jpbaugh@umich.edu</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div class=""><div class=""><div class=""><div class="">Alex,<br class=""><br class=""></div>I'm getting closer.  With the link to the scenarios you provided me, I was able to put my files in scenarios folder and try ./waf configure and ./waf from ndnSIM/my-simulations.<br class=""><br class=""></div>I used a different, simpler scenario now, called jpb-4-print.  I now get this error when I attempt to run it.  It compiles now, but appears to have a linker issue:<br class=""><br class="">jpbaugh@Janeway:~/ndnSIM/my-simulations$ ./waf<br class="">Waf: Entering directory `/home/jpbaugh/ndnSIM/my-simulations/build'<br class="">[1/2] Compiling scenarios/jpb-4-print.cpp<br class="">[2/2] Linking build/jpb-4-print<br class="">Waf: Leaving directory `/home/jpbaugh/ndnSIM/my-simulations/build'<br class="">'build' finished successfully (5.089s)<br class=""><b class="">jpbaugh@Janeway:~/ndnSIM/my-simulations$ ./waf --run=jpb-4-print<br class="">Waf: Entering directory `/home/jpbaugh/ndnSIM/my-simulations/build'<br class="">Waf: Leaving directory `/home/jpbaugh/ndnSIM/my-simulations/build'<br class="">'build' finished successfully (0.025s)<br class="">build/jpb-4-print: error while loading shared libraries: libns3-dev-core-optimized.so: cannot open shared object file: No such file or directory</b><br class=""><br class=""><br class=""></div>Thanks,<br class=""><br class=""></div>John<br class=""></div><div class="gmail_extra"><br class=""><div class="gmail_quote">On Wed, Jan 4, 2017 at 1:51 AM, John Baugh <span dir="ltr" class=""><<a href="mailto:jpbaugh@umich.edu" target="_blank" class="">jpbaugh@umich.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 dir="ltr" class="">Alex,<div class=""><br class=""></div><div class="">This is where I found the instructions:</div><div class=""><br class=""></div><div class=""><a href="https://github.com/named-data-ndnSIM/scenario-template" target="_blank" class="">https://github.com/named-data-<wbr class="">ndnSIM/scenario-template</a><br class=""></div><div class=""><br class=""></div><div class="">The README file on that page says to do:</div><div class=""><br class=""></div><div class=""><b class="">git clone git://<a href="http://github.com/cawka/ndnSIM-scenario-template.git" target="_blank" class="">github.com/cawka/ndnSIM-<wbr class="">scenario-template.git</a> my-simulations<br class=""></b></div><div class=""><br class=""></div><div class="">The wscript from this location does contain a reference to the libndn-cxx library.</div><div class=""><br class=""></div><div class="">I think the README needs updated...  It uses a different repository.</div><div class=""><br class=""></div><div class="">I'm about to try the tests again.</div><div class=""><br class=""></div><div class="">Thanks,</div><div class=""><br class=""></div><div class="">John</div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br class=""><div class="gmail_quote">On Wed, Jan 4, 2017 at 1:38 AM, 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"><div style="word-wrap:break-word" class="">2.3 should be ok.  Which exactly repository you cloned for scenario-template?  I just checked with the one listed on ndnSIM website (<a href="https://github.com/named-data-ndnSIM/scenario-template.git" target="_blank" class="">https://github.com/named-data<wbr class="">-ndnSIM/scenario-template.git</a>) and everything is working.<div class=""><br class=""></div><div class="">The correct template repository should not have this check:</div><div class=""> </div><div class="">     ...</div><span class=""><div class="">     Checking for 'libndn-cxx'                : not found </div></span><div class=""><div class=""><div class="">     ...</div></div><div class=""><br class=""></div><div class="">The you should have directory structure something like this</div><div class=""><br class=""></div><div class=""><div class="">some-folder-for-simulations/</div><div class="">├── ns-3/</div><div class="">│   ├── ...</div><div class="">│   ├── src/</div><div class="">│   │   ├── ...</div><div class="">│   │   ├── ndnSIM/</div><div class="">│   │   │   ├── ndn-cxx/</div><div class="">│   │   │   ├── NFD/</div><div class="">│   │   │   ├── model/</div><div class="">│   │   │   ├── ...</div><div class="">│   │   ├── ...</div><div class="">│   ├── ...</div><div class="">├── pybindgen/</div><div class="">│   ├── ...</div><div class="">└── scenario/</div><div class="">    ├── README.md</div><div class="">    ├── extensions/</div><div class="">    │   ├── README.md</div><div class="">    │   ├── some-code.hpp</div><div class="">    │   └── some-code.cpp</div><div class="">    ├── graphs/</div><div class="">    │   ├── ...</div><div class="">    ├── results/</div><div class="">    ├── run.py</div><div class="">    ├── scenarios/</div><div class="">    │   ├── README.md</div><div class="">    │   └── scenario-name.cpp</div><div class="">    ├── waf</div><div class="">    └── wscript</div></div><div class=""><br class=""></div><div class="">When you're inside scenario/ folder, you can run `./waf --run scenario-name` (files in scenarios/ folder are getting compiled into individual scenarios).</div><div class=""><br class=""></div><div class="">---</div><div class="">Alex</div><div class=""><div class="m_-5839343451534238913h5"><div class=""><br class=""><div class=""><blockquote type="cite" class=""><div class="">On Jan 3, 2017, at 9:56 PM, John Baugh <<a href="mailto:jpbaugh@umich.edu" target="_blank" class="">jpbaugh@umich.edu</a>> wrote:</div><br class="m_-5839343451534238913m_-3212672944330611850Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div class=""><div class=""><div class=""><div class=""><div class="">Junxiao,<br class=""><br class=""></div>That is peculiar...  perhaps I should ask a different question:<br class=""><br class=""></div><b class="">Should I be using ndnSIM 2.3</b>, even?  Or should I just go back to 2.1?  <br class=""><br class=""></div>If so, how might I accomplish this to ensure I don't get the newest version?<br class=""><br class=""></div>Thanks,<br class=""><br class=""></div>John<br class=""></div><div class="gmail_extra"><br class=""><div class="gmail_quote">On Wed, Jan 4, 2017 at 12:51 AM, Junxiao Shi <span dir="ltr" class=""><<a href="mailto:shijunxiao@email.arizona.edu" target="_blank" class="">shijunxiao@email.arizona.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 dir="ltr" class="">Hi John<div class=""><br class=""></div><div class="">The scenario template, as of <a href="https://github.com/named-data-ndnSIM/scenario-template/tree/2b5b6f55f04982273e62127082a19459ec68ff43" target="_blank" class="">commit 2b5b6f55f04982273e62127082a194<wbr class="">59ec68ff43</a> , is compatible with ndnSIM 2.1, and may or may not work with other versions.</div><div class="">However, I do not see why the scenario template is looking for ndn-cxx, because there's no "ndn-cxx" token in its wscript.</div><div class=""><br class=""></div><div class="">Yours, Junxiao</div></div><div class="m_-5839343451534238913m_-3212672944330611850HOEnZb"><div class="m_-5839343451534238913m_-3212672944330611850h5"><div class="gmail_extra"><br class=""><div class="gmail_quote">On Tue, Jan 3, 2017 at 10:44 PM, John Baugh <span dir="ltr" class=""><<a href="mailto:jpbaugh@umich.edu" target="_blank" class="">jpbaugh@umich.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 dir="ltr" class=""><div class=""><div class=""><div class=""><div class=""><div class="">Junxiao,<br class=""><br class=""></div>By "./waf configure and ./waf inside the scenario template", I took that as the ./waf inside my my-simulations directory, correct?<br class=""><br class=""></div>I performed the ./waf configure from inside there <i class="">after </i>doing a ./waf install (from inside ns-3 directory), and I get the following:<br class=""><br class="">jpbaugh@Janeway:~/ndnSIM/my-si<wbr class="">mulations$ ./waf configure<br class="">Setting top to                           : /home/jpbaugh/ndnSIM/my-simula<wbr class="">tions <br class="">Setting out to                           : /home/jpbaugh/ndnSIM/my-simula<wbr class="">tions/build <br class="">Checking for 'gcc' (C compiler)          : /usr/bin/gcc <br class="">Checking for 'g++' (C++ compiler)        : /usr/bin/g++ <br class="">Checking supported CXXFLAGS              : -std=c++11 <br class="">Checking supported CXXFLAGS              : -pedantic -Wall -O2 -g <br class="">Checking for program 'pkg-config'        : /usr/bin/pkg-config <br class="">Checking for 'libndn-cxx'                : not found <br class="">The configuration failed<br class="">(complete log in /home/jpbaugh/ndnSIM/my-simula<wbr class="">tions/build/config.log)<br class=""><br class=""><br class=""></div>My obvious assumption is that it cannot find the ndn-cxx library.  But I am following the instructions by the letter.  This is a fresh computer and a fresh install, so what might be the issue here?  And what is the best / appropriate corrective measure, as I assume ndnSIM is already installed.<br class=""><br class=""></div>Thanks,<br class=""><br class=""></div>John<br class=""></div><div class="m_-5839343451534238913m_-3212672944330611850m_1203329181060910881HOEnZb"><div class="m_-5839343451534238913m_-3212672944330611850m_1203329181060910881h5"><div class="gmail_extra"><br class=""><div class="gmail_quote">On Wed, Jan 4, 2017 at 12:36 AM, Junxiao Shi <span dir="ltr" class=""><<a href="mailto:shijunxiao@email.arizona.edu" target="_blank" class="">shijunxiao@email.arizona.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 dir="ltr" class="">Hi John<div class=""><br class=""><div class="gmail_extra"><div class="gmail_quote"><span class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr" class=""><div class=""><div class=""><div class=""><div class=""><div class="">1.)  Since I already had installed ndnSIM using the instructions in Getting Started on the main <a href="http://ndnsim.net/" target="_blank" class="">ndnSIM.net</a> page, I don't have to perform another git clone on ns-3-dev-ndnSIM.git or any of those files right?  It seems it's just downloading a separate copy of ndnSIM to put in a separate directory.  <b class="">So, all I did per the instructions was a git clone on the ndnSIM-scenario-template-git.<br class=""></b></div></div></div></div></div></div></blockquote></span><div class="">You don't need to clone ns-3 or ndnSIM again, as long as you have compatible version.</div><span class=""><div class=""><br class=""></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr" class=""><div class=""><div class=""><div class=""><div class="">2.)  I placed the downloaded branch (terminology might be off here) in my-simulations, <b class="">which in turn I have inside the ndnSIM folder</b>.  So, my-simulations is a directory that is a sibling directory of ns-3 and pybindgen, all three being inside the top level ndnSIM folder.  <b class="">Is this correct / ok?<br class=""></b></div></div></div></div></div></blockquote></span><div class="">Yes, this is correct. scenario template must be outside of ns-3 folder.</div><span class=""><div class=""><br class=""></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr" class=""><div class=""><div class=""><div class=""><div class=""><b class=""></b></div>3.)  I am very confused about the difference between the extensions and scenarios directories.  I was under the impression I could put a subdirectory under extensions named as my scenario, so I named a subdirectory of extensions "jpb-strategy1-test", which contains jpb-strategy1.cpp and a umd/ directory with some classes I'm using (they worked fine with ndnSIM 2.1.)  <b class="">Is this correct?<br class=""></b></div></div></div></div></blockquote></span><div class="">You may place multiple files in extensions/ folder, which will be linked with every scenario.</div><div class="">Every file in scenarios/ folder is an individual simulation which must have a main() function. Every file is linked with every object from extensions/ to create an executable.</div><span class=""><div class=""> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr" class=""><div class=""><div class=""><div class=""><b class=""></b></div>4.)  Now, it cannot find the scenario, regardless of whether its inside extensions or scenarios.  Does a .cpp or .cc file have to be at the top level or can I put a subdirectory?  I just want to remain organized.  I get the following:<br class=""><br class=""><b class=""><span class="">jpbaugh@Janeway:~/ndnSIM/ns-3$ ./waf --run=jpb-strategy1-test<br class="">Waf: Entering directory `/home/jpbaugh/ndnSIM/ns-3/bui<wbr class="">ld'<br class=""></span>program 'jpb-strategy1-test' not found; available programs are: ['subdir', 'scratch/subdir/subdir', 'scratch-simulator', 'scratch/scratch-simulator', 'test-runner', 'utils/test-runner', 'bench-simulator', 'utils/bench-simulator', 'bench-packets', 'utils/bench-packets', 'print-introspected-doxygen', 'utils/print-introspected-doxy<wbr class="">gen', 'tap-device-creator', 'src/fd-net-device/tap-device-<wbr class="">creator', 'raw-sock-creator', 'src/fd-net-device/raw-sock-cr<wbr class="">eator', 'tap-creator', 'src/tap-bridge/tap-creator']</b><br class=""></div></div></div></blockquote></span><div class="">You must first `sudo ./waf install` from ns-3 which installs ns-3 including ndnSIM system-wide (optimized build is recommended), and then `./waf configure` and `./waf` inside the scenario template.</div><div class=""><br class=""></div><div class="">Yours, Junxiao</div></div></div></div></div>
</blockquote></div><br class=""></div>
</div></div></blockquote></div><br class=""></div>
</div></div></blockquote></div><br class=""></div>
</div></blockquote></div><br class=""></div></div></div></div></div></blockquote></div><br class=""></div>
</div></div></blockquote></div><br class=""></div>


</div></blockquote></div><br class=""></body></html>