<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body>
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Arial,Helvetica,sans-serif;" dir="ltr">
<p>I think build/ is the build folder where files get copied from src/ for compilation purposes.</p>
<p>After you compile, maybe you need to install it to the system:</p>
<p>sudo ./waf install.</p>
<p>Then your scenario should be able to detect (run ./waf distclean first).</p>
<p><br>
</p>
<p>Ashlesh</p>
</div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> ndnSIM <ndnsim-bounces@lists.cs.ucla.edu> on behalf of John Baugh <jpbaugh@umich.edu><br>
<b>Sent:</b> Friday, May 19, 2017 1:35:50 AM<br>
<b>To:</b> ndnsim<br>
<b>Subject:</b> Re: [ndnSIM] Trying to re-compile ndnSIM class Forwarder</font>
<div> </div>
</div>
<div>
<div dir="ltr">Greetings again friends,
<div><br>
</div>
<div>I'm up working on this trying to get my scenario to work with a custom forwarder again at nearly 3 a.m.
<i>on my birthday</i>.  I'm not sure if that's dedication or insanity.  ;)</div>
<div><br>
</div>
<div>I spent another 4-5 hours trying to figure out this specific problem tonight, but with no luck.  I have found the following:</div>
<div><br>
</div>
<div>1.  forwarder.hpp lives in <b>both </b>ns-3/build/ns3/ndnSIM/NFD/daemon/fw <b>
as well as </b>ns-3/src/ndnSIM/NFD/daemon/fw</div>
<div>     The later also has a forwarder.cpp in it.</div>
<div><br>
</div>
<div>2.  Which one of the copies (?) of forwarder.hpp mentioned above am I supposed to change / modify for my scenarios to use it instead of the default one?  Where is the corresponding forwarder.cpp file for the one in ns-3/build path (there is one in the
 ns-3/src path, but none to be found in ns-3/build path mentioned above)</div>
<div><br>
</div>
<div>3.  Why is there a <b>waf </b>in so many different directories?  They seem to be specialized to the different components of ndnSIM, such as NFD, ndn-cxx, and specific scenarios -  Perhaps I'm using the wrong one(s)?</div>
<div><br>
</div>
<div>4.  My scenarios are still saying that the Forwarder class doesn't have a printMessageForTest method, even though I have it declared in both the copies of forwarder.hpp, and have it defined in forwarder.cpp.  I tried recompiling using ./waf in various
 directories, and I cannot find a solution to this problem.</div>
<div><br>
</div>
<div>I appreciate your patience again.  This is a really irritating situation, and I'm fairly certain there's something simple I'm missing.  Any help would be greatly appreciated.</div>
<div><br>
</div>
<div>Thanks,</div>
<div><br>
</div>
<div>John</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Thu, May 18, 2017 at 2:47 AM, John Baugh <span dir="ltr">
<<a href="mailto:jpbaugh@umich.edu" target="_blank">jpbaugh@umich.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">Greetings ndnSIM friends,
<div><br>
</div>
<div><br>
</div>
<div>I've spent the last few days working on trying to modify the Forwarder class (which I did - I modified
<b>ns-3/src/ndnSIM/NFD/daemon/fw/<wbr>forwarder.[hpp, cpp]</b>)</div>
<div><br>
</div>
<div>However, ./waf doesn't seem to work properly.  I even did a ./waf clean and ./waf build.  On one of the runs of ./waf I did notice it (apparently?) successfully re-build the forwarder.cpp file.</div>
<div><br>
</div>
<div>What I did was add a method (the prototype to .hpp and definition to .cpp) called
<b>printMessageForTest())</b></div>
<div><b><br>
</b></div>
<div>I would assume that after ndnSIM was rebuilt with ./waf that my scenario, which calls printMessageForTest on the forwarder would actually work, but it doesn't recognize it.</div>
<div><br>
</div>
<div>Any clue what's going on?</div>
<div><br>
</div>
<div>Alternatively, if anyone could give an appropriate procedure for ensuring all changes make it into the system when modifications of actual ndnSIM files are made, it would be appreciated.</div>
<div><br>
</div>
<div>Looking forward to hearing from you,</div>
<div><br>
</div>
<div>John</div>
</div>
</blockquote>
</div>
<br>
</div>
</div>
</body>
</html>