<div dir="auto">Ashlesh,<div dir="auto"><br></div><div dir="auto">Strangely, that command never worked properly when I tried using it.  But I will revisit it.</div><div dir="auto"><br></div><div dir="auto">I could also install the cryptopp files in /usr/lib and /usr/include I suppose instead of editing the cryptopp.py script.</div><div dir="auto"><br></div><div dir="auto">I'm just confused as to why this didn't work out of the box.  It was possibly a previous bad installation with lingering ramifications.</div><div dir="auto"><br></div><div dir="auto">Thanks</div><div dir="auto"><br></div><div dir="auto">John</div></div><div class="gmail_extra"><br><div class="gmail_quote">On May 23, 2017 10:53 AM, "Ashlesh Gawande (agawande)" <<a href="mailto:agawande@memphis.edu">agawande@memphis.edu</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">



<div>

<div id="m_-2216511990260682681divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Arial,Helvetica,sans-serif" dir="ltr">
<p>You can specify cryptopp directory:</p>
<p>./waf configure --with-cryptopp=/usr/local</p>
<p>(./waf configure --help to get all the options)</p>
<p><br>
</p>
<p>Ashlesh</p>
</div>
<hr style="display:inline-block;width:98%">
<div id="m_-2216511990260682681divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> ndnSIM <<a href="mailto:ndnsim-bounces@lists.cs.ucla.edu" target="_blank">ndnsim-bounces@lists.cs.ucla.<wbr>edu</a>> on behalf of John Baugh <<a href="mailto:jpbaugh@umich.edu" target="_blank">jpbaugh@umich.edu</a>><br>
<b>Sent:</b> Tuesday, May 23, 2017 2:50:30 AM<br>
<b>To:</b> ndnsim<br>
<b>Subject:</b> Re: [ndnSIM] CryptoPP is present, but is not usable</font>
<div> </div>
</div>
<div>
<div dir="ltr">Greetings all,
<div><br>
</div>
<div>I solved the problem (or worked around the problem, perhaps?)</div>
<div><br>
</div>
<div><b>I'm not sure if this is a bug</b>, so I wanted to bring it to everyone's attention.  I kept running ./waf configure and no matter what, CryptoPP was failing.  Specifically, I obtained the error "CryptoPP is present, but is unusable"</div>
<div><br>
</div>
<div><b>Eventually, I dug down into the ndn-cxx/.waf-tools directory</b> and edited the<b> cryptopp.py
</b>file so that it printed the "root" inside the try block before the exception was occurring.  <b>The root was apparently /usr</b>, and I had my cryptopp installed in /usr/local/ - so I modified the file to reflect this.</div>
<div><br>
</div>
<div>Now, it appears to be working.</div>
<div><br>
</div>
<div><b><font size="4">For the sake of posterity, in order to build the customized version of ndnSIM after you've edited an ndnSIM file (I edited NFD/daemon/fw/forwarder.h and .cpp), you must do the following:</font></b></div>
<div><b><br>
</b></div>
<div>
<ol>
<li><b>Rebuild ndnSIM from the ns-3 directory using .waf</b>
<ul>
<li>First just run ./waf</li><li>Then run sudo ./waf install so that the scenario will pick up the changed files<br>
<br>
</li></ul>
</li><li><b>Rerun the scenario</b>
<ul>
<li>In the scenario directory, run ./waf --run=name-of-scenario</li><li>The rebuilding will occur automatically</li></ul>
</li></ol>
</div>
<div><b><br>
</b></div>
<div>Thanks everyone!  That was one of the most frustrating times I've ever had with a simulation environment.  I appreciate all the suggestions and help! :)</div>
<div><br>
</div>
<div>Again, I'm not sure if this is a bug or not.  In the cryptopp.py file, the root string (used in the %s string formatter) was apparently storing just "/usr", which isn't correct...  unless you install the cryptopp in the top directory of /usr.</div>
<div><br>
</div>
<div>John</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Tue, May 23, 2017 at 1:08 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">ndnSIM friends,
<div><br>
</div>
<div>So previously I had several issues arise related to re-compiling the Forwarder class files, and it did appear that this re-compilation worked... once.  Then, every time I tried running ./waf configure again, I received an error that the CryptoPP tests
 failed, and that "CryptoPP is present, but is not usable"</div>
<div><br>
</div>
<div><b><br>
</b></div>
<div><b><font size="4" color="#ff0000">Here is the config.log file from this error:</font></b></div>
<div><b><font color="#ff0000"><br>
</font></b></div>
<div><b><font color="#ff0000"><a href="https://drive.google.com/file/d/0By9ufeKqmJYYVGF2VzM0bC1hN0k/view?usp=sharing" target="_blank">https://drive.google.com/file/<wbr>d/0By9ufeKqmJYYVGF2VzM0bC1hN0k<wbr>/view?usp=sharing</a></font></b><br>
</div>
<div><b><br>
</b></div>
<div><b><br>
</b></div>
<div><br>
</div>
<div>I assumed perhaps I did something wrong, so just as a sanity check I <b>completely reinstalled ndnSIM
</b>and the required files into another directory, and without changing anything, fresh out of the box, so to speak,
<b>I still get the aforementioned error</b>.</div>
<div><br>
</div>
<div>In the config.log file it seems to imply that the cryptopp functions are "undefined".  The system seems to be able to find it (CryptoPP is present), but it doesn't make sense why it's "not usable".</div>
<div><br>
</div>
<div>I found a similar ndnSIM e-mail from someone with a similar / same problem, but now it doesn't appear to work.  And, shouldn't it work "out of the box" regardless?</div>
<div><br>
</div>
<div>I'm on Ubuntu 16.04 if that matters.</div>
<div><br>
</div>
<div>Thanks,</div>
<div><br>
</div>
<div>John</div>
</div>
</blockquote>
</div>
<br>
</div>
</div>
</div>

</blockquote></div></div>