<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:DengXian;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:"\@DengXian";
        panose-1:2 1 6 0 3 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style></head><body lang=EN-US link=blue vlink="#954F72"><div class=WordSection1><p class=MsoNormal>Hi Xuxiang</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>It seems that <span style='font-family:"Courier New"'>./waf configure</span> is being executed in the wrong folder, as evidenced by:</p><p class=MsoNormal style='margin-left:.5in'><span style='font-family:"Courier New"'>Setting top to                           : /Users/apple/ndnSIM-test/ns-3/src/ndnSIM/ndn-cxx<o:p></o:p></span></p><p class=MsoNormal>According to <a href="http://ndnsim.net/2.1/getting-started.html#compiling-and-running-ndnsim">ndnSIM installation instructions</a>, this command should be executed in the top-level ns-3 folder, ie <span style='font-family:"Courier New"'>/Users/apple/ndnSIM-test/ns-3</span>, not inside ndnSIM or ndn-cxx folder.<span style='font-family:"Courier New"'><o:p></o:p></span></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>When you execute <span style='font-family:"Courier New"'>./waf configure</span> inside ndn-cxx, the compiler is looking for <span style='font-family:"Courier New"'>/Users/apple/ndnSIM-test/ns-3/src/ndnSIM/ndn-cxx/build/.conf_check_3a45ee5323740188e645eab38d82218a/../../src/ndnSIM/ndn-cxx/src/security/cryptopp.hpp</span> ie <span style='font-family:"Courier New"'>/Users/apple/ndnSIM-test/ns-3/src/ndnSIM/ndn-cxx/src/ndnSIM/ndn-cxx/src/security/cryptopp.hpp</span> and this file does not exist.</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Since ndnSIM 2.1, ndn-cxx becomes embedded and does not need separate installation. You aren’t the first one making this mistake.</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Once you get past this step, there’s another caution since you are trying to upgrade ndn-cxx: ndn-cxx commits since April 2016 requires Boost 1.54 or above, not Boost 1.49 as stated in ndnSIM 2.1 instructions.</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Yours, Junxiao</p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman",serif'><o:p> </o:p></span></p><div style='mso-element:para-border-div;border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in'><p class=MsoNormal style='border:none;padding:0in'><b>From: </b><a href="mailto:xuxiangtian@ucla.edu">Xuxiang Tian</a><br><b>Sent: </b>Monday, July 25, 2016 02:11<br><b>To: </b><a href="mailto:shijunxiao@email.arizona.edu">Junxiao Shi</a><br><b>Cc: </b><a href="mailto:ndnsim@lists.cs.ucla.edu">ndnsim</a><br><b>Subject: </b>Re: Update of submodule ndn-cxx for ndnSIM</p></div><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman",serif'><o:p> </o:p></span></p><div><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman",serif'>The problem may not be the include path because when I move the folder ndnSIM/ns-3/src/ndnSIM/ndn-cxx out of the folder /ndnSIM (the first ndnSIM), ndn-cxx can compile successfully, but when the folder ndnSIM/ns-3/src/ndnSIM/ndn-cxx stay inside, after I run ./waf configure, the message showed:</span><span style='font-size:12.0pt;font-family:"Times New Roman",serif'><o:p></o:p></span></p><div><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman",serif'><o:p> </o:p></span></p></div><div><div><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman",serif'>Setting top to                           : /Users/apple/ndnSIM-test/ns-3/src/ndnSIM/ndn-cxx<o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman",serif'>Setting out to                           : /Users/apple/ndnSIM-test/ns-3/src/ndnSIM/ndn-cxx/build<o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman",serif'>Building static library                  : no<o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman",serif'>Building shared library                  : yes<o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman",serif'>Checking for 'clang++' (C++ compiler)    : /usr/bin/clang++<o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman",serif'>Checking supported CXXFLAGS              : -std=c++11 -Wno-error=unneeded-internal-declaration -Wno-error=deprecated-register -Wno-error=unused-local-typedef -stdlib=libc++<o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman",serif'>Checking supported LINKFLAGS             : -stdlib=libc++<o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman",serif'>Checking supported CXXFLAGS              : -pedantic -Wall -O2 -g<o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman",serif'>Checking for std::is_default_constructible : yes<o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman",serif'>Checking for std::is_nothrow_move_constructible : yes<o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman",serif'>Checking for std::is_nothrow_move_assignable    : yes<o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman",serif'>Checking for friend typename-specifier          : yes<o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman",serif'>Checking for override and final specifiers      : yes<o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman",serif'>Checking for std::vector::insert with const_iterators : yes<o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman",serif'>Checking for program 'doxygen'                        : not found<o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman",serif'>Checking for program 'tar'                            : /usr/bin/tar<o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman",serif'>Checking for program 'sphinx-build'                   : not found<o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman",serif'>Checking for program 'sh'                             : /bin/sh<o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman",serif'>Checking for library pthread                          : yes<o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman",serif'>Checking for library rt                               : not found<o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman",serif'>Checking for function getpass                         : yes<o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman",serif'>Checking for rtnetlink                                : not found<o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman",serif'>Checking for framework CoreFoundation                 : yes<o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman",serif'>Checking for framework CoreServices                   : yes<o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman",serif'>Checking for framework Security                       : yes<o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman",serif'>Checking for program 'pkg-config'                     : /opt/local/bin/pkg-config<o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman",serif'>Checking for 'sqlite3'                                : yes<o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman",serif'> hecking Crypto++ lib                                 : 563<o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman",serif'>Checking if CryptoPP library works                    : no<o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman",serif'>Checking if CryptoPP library works                    : no<o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman",serif'>CryptoPP is present, but is not usable<o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman",serif'>(complete log in /Users/apple/ndnSIM-test/ns-3/src/ndnSIM/ndn-cxx/build/config.log)<o:p></o:p></span></p></div></div><div><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman",serif'><o:p> </o:p></span></p></div><div><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman",serif'><o:p> </o:p></span></p></div><div><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman",serif'>Then I read config.log, it seemed everything was fine except only one error:<o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman",serif'><o:p> </o:p></span></p></div><div><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman",serif'><o:p> </o:p></span></p></div><div><div><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman",serif'>[1/2] Compiling [32mbuild/.conf_check_3a45ee5323740188e645eab38d82218a/test.cpp [0m<o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman",serif'><o:p> </o:p></span></p></div><div><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman",serif'>['/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/opt/local/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', '-DCRYPTOPP_DISABLE_ASM', '../test.cpp', '-c', '-o', '/Users/apple/ndnSIM-test/ns-3/src/ndnSIM/ndn-cxx/build/.conf_check_3a45ee5323740188e645eab38d82218a/testbuild/test.cpp.1.o']<o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman",serif'>err: ../test.cpp:2:10: fatal error: '../../src/ndnSIM/ndn-cxx/src/security/cryptopp.hpp' file not found<o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman",serif'>#include "../../src/ndnSIM/ndn-cxx/src/security/cryptopp.hpp"<o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman",serif'>         ^<o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman",serif'>1 error generated.<o:p></o:p></span></p></div></div><div><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman",serif'><o:p> </o:p></span></p></div><div><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman",serif'>What confused me is that it showed fatal error: '../../src/ndnSIM/ndn-cxx/src/security/cryptopp.hpp' file not found, however, this file did exist. <o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman",serif'>Could you please let me know if I am supposed to modify some configure to make this file found<o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman",serif'><o:p> </o:p></span></p></div><div><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman",serif'>Yours, Xuxiang<o:p></o:p></span></p></div></div></div></body></html>