<div dir="ltr"><div>Hi,</div><div><br></div>I am not sure if this is the right way, but I figured out a workaround. Changed the contents of file "ndn-cxx/.waf-tools/cryptopp.py" as follows (see line #30 below) and it worked. <div><br><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div> 29 CRYPTOPP_CHECK_FRAGMENT = '''                                                                       </div><div> 30 #include "../../src/security/cryptopp.hpp"                                                          </div><div> 31 #include <iostream>                                                                                </div><div> 32 </div></blockquote><div><p class="">Hope this helps. </p><p class="">/anil.</p><p class="">                                       <br></p></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Mar 28, 2016 at 5:43 PM, Anil Jangam <span dir="ltr"><<a href="mailto:anilj.mailing@gmail.com" target="_blank">anilj.mailing@gmail.com</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"><font size="4">I tried compiling the same from the ndn-cxx which is a submodule in ndnSIM and it gave the same problem there too. According to the file path, the include path should be - </font><span style="font-size:large">../../../src/ndnSIM/ndn-cxx/src/security/cryptopp.hpp instead of </span><span style="font-size:large">../../src/ndnSIM/ndn-cxx/src/security/cryptopp.hpp </span><p><font size="4">Does this build require to export some env variable before it can be configured and built? </font></p><span class="HOEnZb"><font color="#888888"><p><font size="4">/anil.</font></p><p><br></p></font></span></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Mar 28, 2016 at 5:30 PM, Anil Jangam <span dir="ltr"><<a href="mailto:anilj.mailing@gmail.com" target="_blank">anilj.mailing@gmail.com</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"><font size="4">Hi All,</font><div><font size="4"><br></font></div><div><font size="4">This problem still persist for me and I am trying it on Mac. </font><div><font size="4"><br></font></div><div><font size="4">As discussed on this thread, I extracted the command line from the build/config.log file. It is compiling "../test.cpp" file, which it generates on the fly I guess. I am not sure how it picks up the #include path for cryptopp.hpp, but it is #including the file as "../../src/ndnSIM/ndn-cxx/src/security/cryptopp.hpp". I verified and this path is actually from ndnSIM's ndn-cxx.  I am not sure why a standalone ndn-cxx compile would look for ndnSIM. </font></div><div><font size="4"><br></font></div><div><font size="4">I think the configure tool is doing all this automatically and we do not have any control on this. I also tried installing this from the sources but no success. </font></div>







<blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div><p><span><font size="4">/usr/bin/clang++ -pedantic -Wall -O2 -g -std=c++11 -Wno-error=unneeded-internal-declaration -Wno-error=deprecated-register -Wno-error=unused-local-typedef -stdlib=libc++ -I/usr/include -DNDEBUG -DHAVE_IS_DEFAULT_CONSTRUCTIBLE=1 -DHAVE_IS_NOTHROW_MOVE_CONSTRUCTIBLE=1 -DHAVE_IS_NOTHROW_MOVE_ASSIGNABLE=1 -DHAVE_CXX_FRIEND_TYPENAME=1 -DHAVE_CXX_OVERRIDE_FINAL=1 -DNDN_CXX_HAVE_VECTOR_INSERT_ERASE_CONST_ITERATOR=1 -DHAVE_PTHREAD=1 -DHAVE_GETPASS=1 -DHAVE_COREFOUNDATION_COREFOUNDATION_H=1 -DHAVE_CORESERVICES_CORESERVICES_H=1 -DHAVE_SECURITY=1 -DHAVE_OSX_SECURITY=1 -DHAVE_SQLITE3=1 ../test.cpp -c -o /Users/usrp1/sandbox/ndn-cxx/build/.conf_check_1689d110c002d2313f4665d22885dc23/testbuild/test.cpp.1.o</font></span></p></div></blockquote><div>







<p><font size="4">Can someone guess what is the issue?<span><font color="#888888"><br></font></span></font></p><span><font color="#888888"><p><font size="4">/anil.</font></p><p><br></p></font></span></div></div></div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Nov 17, 2015 at 1:09 PM, Natalya Rozhnova <span dir="ltr"><<a href="mailto:rozhnova.natalya@gmail.com" target="_blank">rozhnova.natalya@gmail.com</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"><div><div><div>Hi Marco,<br><br></div>YES, IT WORKS! Thanks!<br><br></div>best,<br></div>Natalya<br></div><div class="gmail_extra"><br><div class="gmail_quote">2015-11-17 19:27 GMT+01:00 Marco Ulgelmo <span dir="ltr"><<a href="mailto:marco.ulgelmo@aol.com" target="_blank">marco.ulgelmo@aol.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">Have you tried with the following?<div><br></div><div><div style="margin:0px;font-size:11px;font-family:Menlo">LD_LIBRARY_PATH="/usr/local:$LD_LIBRARY_PATH"</div><div style="margin:0px;font-size:11px;font-family:Menlo">PKG_CONFIG_PATH="/usr/local/pkgconfig:$PKG_CONFIG_PATH"</div><div style="margin:0px;font-size:11px;font-family:Menlo">PATH="/usr/local/bin:$PATH"</div><div style="margin:0px;font-size:11px;font-family:Menlo">LIBRARY_PATH="/usr/local/lib:$LIBRARY_PATH"</div><div style="margin:0px;font-size:11px;font-family:Menlo">INCLUDE_PATH="/usr/local/include:$INCLUDE_PATH"</div><div style="margin:0px;font-size:11px;font-family:Menlo">export LD_LIBRARY_PATH PKG_CONFIG_PATH PATH LIBRARY_PATH INCLUDE_PATH</div></div><div><div><div><div><div><br><div><blockquote type="cite"><div>On 17 Nov 2015, at 19:17, Natalya Rozhnova <<a href="mailto:rozhnova.natalya@gmail.com" target="_blank">rozhnova.natalya@gmail.com</a>> wrote:</div><br><div><div dir="ltr"><div><div><div><div>Hi Marco,<br><br></div>Yes, I see. I downloaded it manually from <a href="http://www.cryptopp.com/#download" target="_blank">http://www.cryptopp.com/#download</a> and installed to /usr/local<br></div>The problem was in cryptopp.hpp that was not found. It was an error in the path to it. <br></div>Now, it compiles but I have another problem when running ndn-simple:<br>ns-3/build/src/ndnSIM/examples/ns3-dev-ndn-simple-debug: error while loading shared libraries: libcryptopp.so: cannot open shared object file: No such file or directory<br>Command ['/home/nemo/new_test/ns-3/build/src/ndnSIM/examples/ns3-dev-ndn-simple-debug'] exited with code 127<br><br></div>Any idea what it may be due to?<br></div><div class="gmail_extra"><br><div class="gmail_quote">2015-11-16 15:29 GMT+01:00 Marco Ulgelmo <span dir="ltr"><<a href="mailto:marco.ulgelmo@aol.com" target="_blank">marco.ulgelmo@aol.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">What I meant is that the default version of Crypto++ library isn’t working for me either and I was not able to run a test. However by downloading and installing it (just tell me if you have already done so) I was able to correctly run the simulations. The —with-cryptopp is needed to tell the configure script where to find the crypto libraries (otherwise it will find those in the default location and not the one you downloaded).<br>
What version of Cryptopp are you currently using?<br>
<div><div><br>
> On 16 Nov 2015, at 11:17, Natalya Rozhnova <<a href="mailto:rozhnova.natalya@gmail.com" target="_blank">rozhnova.natalya@gmail.com</a>> wrote:<br>
><br>
> Hi Marco,<br>
><br>
> The problem is not to find the library but to make a test…<br>
> As I said in my previous message I tried the option —with-cryptopp=path but it doesn’t change anything.<br>
><br>
> The error is: CryptoPP is present (so it finds the library) but unusable (don’t get what’s the problem)<br>
> Any idea?<br>
><br>
> Best,<br>
> Natalya<br>
><br>
><br>
>> Le 15 nov. 2015 à 13:10, Marco Ulgelmo <<a href="mailto:marco.ulgelmo@aol.com" target="_blank">marco.ulgelmo@aol.com</a>> a écrit :<br>
>><br>
>> Hi,<br>
>><br>
>> I resolved that issue by downloading and installing that library separately. When you compile ndnSIM just specify where to find the new library with the --with-cryptopp=/path/to/library<br>
>><br>
>> Marco Ulgelmo<br>
>><br>
>>> On 13 Nov 2015, at 17:16, Natalya Rozhnova <<a href="mailto:rozhnova.natalya@gmail.com" target="_blank">rozhnova.natalya@gmail.com</a>> wrote:<br>
>>><br>
>>> Hi guys,<br>
>>><br>
>>> I'm trying to compile the ns3 with ndnSIM 2.1 but I have a following problem when configuring :<br>
>>><br>
>>> CryptoPP is present, but is not usable<br>
>>><br>
>>> Could you please tell me what's wrong and what I supposed to do to resolve this?<br>
>>><br>
>>> BTW:<br>
>>>> whereis libcryptopp<br>
>>> libcryptopp: /usr/local/lib/libcryptopp.a /usr/local/lib/libcryptopp.so<br>
>>><br>
>>> I have also tried to use the option --with-cryptopp=/usr/local but it doesn't help...<br>
>>><br>
>>> Thanks in advance for your reply,<br>
>>> Best,<br>
>>> Natalya<br>
>>> _______________________________________________<br>
>>> ndnSIM mailing list<br>
>>> <a href="mailto:ndnSIM@lists.cs.ucla.edu" target="_blank">ndnSIM@lists.cs.ucla.edu</a><br>
>>> <a href="http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim" rel="noreferrer" target="_blank">http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim</a><br>
>><br>
><br>
<br>
</div></div></blockquote></div><br></div>
</div></blockquote></div><br></div></div></div></div></div></div></blockquote></div><br></div>
<br>_______________________________________________<br>
ndnSIM mailing list<br>
<a href="mailto:ndnSIM@lists.cs.ucla.edu" target="_blank">ndnSIM@lists.cs.ucla.edu</a><br>
<a href="http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim" rel="noreferrer" target="_blank">http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim</a><br>
<br></blockquote></div><br></div>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>