<div dir="ltr"><div><div><div><div><div>Junxiao,<br><br></div>By "./waf configure and ./waf inside the scenario template", I took that as the ./waf inside my my-simulations directory, correct?<br><br></div>I performed the ./waf configure from inside there <i>after </i>doing a ./waf install (from inside ns-3 directory), and I get the following:<br><br>jpbaugh@Janeway:~/ndnSIM/my-simulations$ ./waf configure<br>Setting top to                           : /home/jpbaugh/ndnSIM/my-simulations <br>Setting out to                           : /home/jpbaugh/ndnSIM/my-simulations/build <br>Checking for 'gcc' (C compiler)          : /usr/bin/gcc <br>Checking for 'g++' (C++ compiler)        : /usr/bin/g++ <br>Checking supported CXXFLAGS              : -std=c++11 <br>Checking supported CXXFLAGS              : -pedantic -Wall -O2 -g <br>Checking for program 'pkg-config'        : /usr/bin/pkg-config <br>Checking for 'libndn-cxx'                : not found <br>The configuration failed<br>(complete log in /home/jpbaugh/ndnSIM/my-simulations/build/config.log)<br><br><br></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><br></div>Thanks,<br><br></div>John<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jan 4, 2017 at 12:36 AM, Junxiao Shi <span dir="ltr"><<a href="mailto:shijunxiao@email.arizona.edu" target="_blank">shijunxiao@email.arizona.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi John<div><br><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"><div><div><div><div><div>1.)  Since I already had installed ndnSIM using the instructions in Getting Started on the main ndnSIM.net 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>So, all I did per the instructions was a git clone on the ndnSIM-scenario-template-git.<br></b></div></div></div></div></div></div></blockquote></span><div>You don't need to clone ns-3 or ndnSIM again, as long as you have compatible version.</div><span class=""><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div>2.)  I placed the downloaded branch (terminology might be off here) in my-simulations, <b>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>Is this correct / ok?<br></b></div></div></div></div></div></blockquote></span><div>Yes, this is correct. scenario template must be outside of ns-3 folder.</div><span class=""><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div><b></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>Is this correct?<br></b></div></div></div></div></blockquote></span><div>You may place multiple files in extensions/ folder, which will be linked with every scenario.</div><div>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> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><b></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><br><b><span>jpbaugh@Janeway:~/ndnSIM/ns-3$ ./waf --run=jpb-strategy1-test<br>Waf: Entering directory `/home/jpbaugh/ndnSIM/ns-3/bui<wbr>ld'<br></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>gen', 'tap-device-creator', 'src/fd-net-device/tap-device-<wbr>creator', 'raw-sock-creator', 'src/fd-net-device/raw-sock-cr<wbr>eator', 'tap-creator', 'src/tap-bridge/tap-creator']</b><br></div></div></div></blockquote></span><div>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><br></div><div>Yours, Junxiao</div></div></div></div></div>
</blockquote></div><br></div>