<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">Thanks.</div><div class=""><br class=""></div><div class="">Can you triple check that you have </div><div class=""><br class=""></div><div class="">- /usr/local/include/ndn-cxx folder, </div><div class="">- that it has header files, and </div><div class="">- that it has correct permissions... </div><div class=""><br class=""></div><div class="">I cannot think of any other reason why compiler cannot find the header(s).</div><div class=""><br class=""></div><div class="">---</div><div class="">Alex</div><br class=""><div><blockquote type="cite" class=""><div class="">On Sep 4, 2015, at 1:15 AM, Alexander Ni <<a href="mailto:alexni1992@gmail.com" class="">alexni1992@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div class="">Yes, here they are:<br class=""><br class="">1. export PKG_CONFIG_PATH=/usr/local/lib64/pkgconfig:$PKG_CONFIG_PATH<br class=""><br class=""></div>2. /usr/local/lib64/pkconfig/libndn-cxx.pc<br class=""><div class="">prefix=/usr/local<br class="">exec_prefix=/usr/local<br class="">libdir=/usr/local/lib64<br class="">includedir=/usr/local/include<br class=""><br class="">Name: libndn-cxx<br class="">Description: NDN C++ library with eXperimental eXtensions<br class="">Version: 0.3.2<br class="">Libs: -L${libdir}  -L/usr/lib64 -L/usr/lib -lndn-cxx -lboost_system -lboost_filesystem -lboost_date_time -lboost_iostreams -lboost_regex -lboost_program_options -lboost_chrono -lboost_random -lcryptopp -lsqlite3 -lrt -lpthread <br class="">Cflags: -I${includedir}  -I/usr/include<br class=""><br class="">3.<br class="">AR = ['/usr/bin/ar']<br class="">ARFLAGS = ['rcs']<br class="">BINDIR = '/usr/local/bin'<br class="">BOOST_VERSION = '1_55'<br class="">BOOST_VERSION_NUMBER = 105500<br class="">CC_VERSION = ('4', '9', '2')<br class="">COMPILER_CXX = 'g++'<br class="">CPPPATH_ST = '-I%s'<br class="">CXX = ['/usr/lib64/ccache/g++']<br class="">CXXFLAGS = ['-pedantic', '-Wall', '-O2', '-g', '-std=c++11']<br class="">CXXFLAGS_MACBUNDLE = ['-fPIC']<br class="">CXXFLAGS_cxxshlib = ['-fPIC']<br class="">CXXLNK_SRC_F = []<br class="">CXXLNK_TGT_F = ['-o']<br class="">CXX_NAME = 'gcc'<br class="">CXX_SRC_F = []<br class="">CXX_TGT_F = ['-c', '-o']<br class="">DATADIR = '/usr/local/share'<br class="">DATAROOTDIR = '/usr/local/share'<br class="">DEFINES = ['NDEBUG', 'HAVE_INTTYPES_H=1', 'HAVE_STDINT_H=1', 'HAVE_SYS_BITYPES_H=1', 'HAVE_SYS_TYPES_H=1']<br class="">DEFINES_NDN_CXX = ['HAVE_NDN_CXX=1']<br class="">DEFINES_PCAP = ['HAVE_PCAP=1']<br class="">DEFINES_ST = '-D%s'<br class="">DEST_BINFMT = 'elf'<br class="">DEST_CPU = 'x86_64'<br class="">DEST_OS = 'linux'<br class="">DOCDIR = '/usr/local/share/doc/ndn-tools'<br class="">DVIDIR = '/usr/local/share/doc/ndn-tools'<br class="">EXEC_PREFIX = '/usr/local'<br class="">HAVE_NDN_CXX = 1<br class="">HAVE_PCAP = 1<br class="">HTMLDIR = '/usr/local/share/doc/ndn-tools'<br class="">INCLUDEDIR = '/usr/local/include'<br class="">INCLUDES_BOOST = '/usr/include'<br class="">INCLUDES_NDN_CXX = ['/usr/local/include']<br class="">INFODIR = '/usr/local/share/info'<br class="">LIBDIR = '/usr/local/lib64'<br class="">LIBEXECDIR = '/usr/local/libexec'<br class="">LIBPATH_BOOST = ['/usr/lib64']<br class="">LIBPATH_NDN_CXX = ['/usr/local/lib64', '/usr/lib64']<br class="">LIBPATH_ST = '-L%s'<br class="">LIB_BOOST = ['boost_system', 'boost_iostreams', 'boost_regex']<br class="">LIB_NDN_CXX = ['ndn-cxx', 'boost_system', 'boost_filesystem', 'boost_date_time', 'boost_iostreams', 'boost_regex', 'boost_program_options', 'boost_chrono', 'boost_random', 'cryptopp', 'sqlite3', 'rt', 'pthread']<br class="">LIB_PCAP = ['pcap']<br class="">LIB_ST = '-l%s'<br class="">LINKFLAGS_MACBUNDLE = ['-bundle', '-undefined', 'dynamic_lookup']<br class="">LINKFLAGS_cxxshlib = ['-shared']<br class="">LINKFLAGS_cxxstlib = ['-Wl,-Bstatic']<br class="">LINK_CXX = ['/usr/lib64/ccache/g++']<br class="">LOCALEDIR = '/usr/local/share/locale'<br class="">LOCALSTATEDIR = '/usr/local/var'<br class="">MANDIR = '/usr/local/share/man'<br class="">OLDINCLUDEDIR = '/usr/include'<br class="">PACKAGE = 'ndn-tools'<br class="">PDFDIR = '/usr/local/share/doc/ndn-tools'<br class="">PKGCONFIG = ['/usr/bin/pkg-config']<br class="">PREFIX = '/usr/local'<br class="">PSDIR = '/usr/local/share/doc/ndn-tools'<br class="">RPATH_ST = '-Wl,-rpath,%s'<br class="">SBINDIR = '/usr/local/sbin'<br class="">SHAREDSTATEDIR = '/usr/local/com'<br class="">SHLIB_MARKER = '-Wl,-Bdynamic'<br class="">SONAME_ST = '-Wl,-h,%s'<br class="">SPHINX_BUILD = ['/usr/bin/sphinx-build']<br class="">STLIBPATH_ST = '-L%s'<br class="">STLIB_MARKER = '-Wl,-Bstatic'<br class="">STLIB_ST = '-l%s'<br class="">SYSCONFDIR = '/usr/local/etc'<br class="">cxxprogram_PATTERN = '%s'<br class="">cxxshlib_PATTERN = 'lib%s.so'<br class="">cxxstlib_PATTERN = 'lib%s.a'<br class="">define_key = ['HAVE_INTTYPES_H', 'HAVE_STDINT_H', 'HAVE_SYS_BITYPES_H', 'HAVE_SYS_TYPES_H']<br class="">macbundle_PATTERN = '%s.bundle'<br class=""><br class=""></div></div><div class="gmail_extra"><br clear="all" class=""><div class=""><div class="gmail_signature"><div dir="ltr" class=""><div class=""><div dir="ltr" class=""><span style="font-family: Arial, Tahoma, Verdana, sans-serif; font-size: 13.3333330154419px; line-height: 18.2000007629395px;" class="">Best Regards,</span><br class=""><div class=""><span style="font-family: Arial, Tahoma, Verdana, sans-serif; font-size: 13.3333330154419px; line-height: 18.2000007629395px;" class="">Alexander Ni</span></div><div class=""><span style="font-family: Arial, Tahoma, Verdana, sans-serif; font-size: 13.3333330154419px; line-height: 18.2000007629395px;" class=""><br class=""></span></div></div></div></div></div></div>
<br class=""><div class="gmail_quote">On Fri, Sep 4, 2015 at 5:02 PM, Alex Afanasyev <span dir="ltr" class=""><<a href="mailto:aa@cs.ucla.edu" target="_blank" class="">aa@cs.ucla.edu</a>></span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word" class=""><div class="">Can you please a little more details:</div><div class=""><br class=""></div><div class="">- what is the value for PKG_CONFIG_PATH</div><div class="">- what is the content of libndn-cxx.pc within the path (can you attach it)</div><div class="">- what is the content of build/c4che/_cache.py (can you attach it)</div><div class=""><br class=""></div><div class="">I'm almost certain that the include path pointed in libndn-cxx.pc does not contain ndn-cxx includes...</div><div class=""><br class=""></div><div class="">---</div><div class="">Alex</div><div class=""><div class="h5"><br class=""><div class=""><blockquote type="cite" class=""><div class="">On Sep 4, 2015, at 12:59 AM, Alexander Ni <<a href="mailto:alexni1992@gmail.com" target="_blank" class="">alexni1992@gmail.com</a>> wrote:</div><br class=""><div class=""><div dir="ltr" class="">There is the point, I already have set PKG_CONFIG_PATH path to libndn-cxx.pc before I configured it (below). But build command anyway showed me such error (previously mentioned) <br class=""><br class=""><div class="">[root@Consumer1 ndn-tools]# ./waf configure</div><div class="">Setting top to                           : /root/ndn/ndn-tools</div><div class="">Setting out to                           : /root/ndn/ndn-tools/build</div><div class="">Checking for 'g++' (C++ compiler)        : /usr/lib64/ccache/g++</div><div class="">Checking supported CXXFLAGS              : -std=c++11</div><div class="">Checking supported CXXFLAGS              : -pedantic -Wall -O2 -g</div><div class="">Checking for program 'sphinx-build'      : /usr/bin/sphinx-build</div><div class="">Checking for program 'pkg-config'        : /usr/bin/pkg-config</div><div class="">Checking for 'libndn-cxx'                : yes</div><div class="">Checking boost includes                  : 1.55.0</div><div class="">Checking boost libs                      : ok</div><div class="">Checking for boost linkage               : ok</div><div class="">Checking for header inttypes.h           : yes</div><div class="">Checking for header stdint.h             : yes</div><div class="">Checking for header sys/bitypes.h        : yes</div><div class="">Checking for __attribute__               : yes</div><div class="">Checking for header ['sys/types.h', 'sys/time.h', 'time.h'] : yes</div><div class="">Checking for 'libpcap'                                      : yes</div><div class="">'configure' finished successfully (0.897s)</div></div><div class="gmail_extra"><br clear="all" class=""><div class=""><div class=""><div dir="ltr" class=""><div class=""><div dir="ltr" class=""><span style="font-family:Arial,Tahoma,Verdana,sans-serif;font-size:13.3333330154419px;line-height:18.2000007629395px" class="">Best Regards,</span><br class=""><div class=""><span style="font-family:Arial,Tahoma,Verdana,sans-serif;font-size:13.3333330154419px;line-height:18.2000007629395px" class="">Alexander Ni</span></div><div class=""><span style="font-family:Arial,Tahoma,Verdana,sans-serif;font-size:13.3333330154419px;line-height:18.2000007629395px" class=""><br class=""></span></div></div></div></div></div></div>
<br class=""><div class="gmail_quote">On Fri, Sep 4, 2015 at 4:47 PM, Alex Afanasyev <span dir="ltr" class=""><<a href="mailto:aa@cs.ucla.edu" target="_blank" class="">aa@cs.ucla.edu</a>></span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word" class=""><div class="">It seems that the compilation cannot find ndn-cxx library headers.</div><div class=""><br class=""></div><div class="">The configuration script uses pkg-config to find parameters (include and linker flags) for the library.  The standard location for it is /usr/local/lib/pkgconfig/libndn-cxx.pc and /usr/lib*/pkgconfig/libndn-cxx.pc.</div><div class=""><br class=""></div><div class="">If you have previously installed ndn-cxx into a standard location and then removed headers, but kept .pc file, then you may get the error you showing.   To use ndn-cxx from a non-standard location, you need to set PKG_CONFIG_PATH environment variable (see hints in <a href="http://named-data.net/doc/NFD/current/INSTALL.html" target="_blank" class="">http://named-data.net/doc/NFD/current/INSTALL.html</a>).</div><div class=""><br class=""></div><div class="">---</div><div class="">Alex</div><br class=""><div class=""><blockquote type="cite" class=""><div class=""><div class=""><div class="">On Sep 4, 2015, at 12:43 AM, Alexander Ni <<a href="mailto:alexni1992@gmail.com" target="_blank" class="">alexni1992@gmail.com</a>> wrote:</div><br class=""></div></div><div class=""><div class=""><div class=""><div dir="ltr" class=""><div class="">Hello everyone.<br class=""><br class="">I was trying to build ndn-tools but in non-standard location get an error. Can somebody help me to solve this problem?</div><div class=""><br class="">./waf<br class=""><br class="">[ 5/40] Compiling tools/dump/main.cpp<br class="">In file included from ../core/version.hpp:23:0,<br class="">                 from ../core/version.cpp:20:<br class="">../core/common.hpp:64:48: fatal error: ndn-cxx/security/signing-helpers.hpp: No such file or directory<br class=""> #include <ndn-cxx/security/signing-helpers.hpp><br class="">                                                ^<br class="">compilation terminated.<br class=""><br class="">In file included from /root/ndn/ndn-tools/core/version.hpp:23:0,<br class="">                 from ../tools/peek/ndn-peek.cpp:51:<br class="">/root/ndn/ndn-tools/core/common.hpp:64:48: fatal error: ndn-cxx/security/signing-helpers.hpp: No such file or directory<br class=""> #include <ndn-cxx/security/signing-helpers.hpp><br class="">                                                ^<br class="">compilation terminated.<br class=""><br class="">In file included from /root/ndn/ndn-tools/core/version.hpp:23:0,<br class="">                 from ../tools/peek/ndn-poke.cpp:51:<br class="">/root/ndn/ndn-tools/core/common.hpp:64:48: fatal error: ndn-cxx/security/signing-helpers.hpp: No such file or directory<br class=""> #include <ndn-cxx/security/signing-helpers.hpp><br class="">                                                ^<br class="">compilation terminated.<br class=""><br class="">In file included from /root/ndn/ndn-tools/core/version.hpp:23:0,<br class="">                 from ../tools/dump/main.cpp:38:<br class="">/root/ndn/ndn-tools/core/common.hpp:64:48: fatal error: ndn-cxx/security/signing-helpers.hpp: No such file or directory<br class=""> #include <ndn-cxx/security/signing-helpers.hpp><br class="">                                                ^<br class="">compilation terminated.<br class=""><br class="">Waf: Leaving directory `/root/ndn/ndn-tools/build'<br class="">Build failed<br class=""> -> task in 'core-objects' failed (exit status 1): <br class="">    {task 139918217243024: cxx version.cpp -> version.cpp.1.o}<br class="">['/usr/lib64/ccache/g++', '-pedantic', '-Wall', '-O2', '-g', '-std=c++11', '-I/usr/local/include', '-I/usr/include', '-DNDEBUG', '-DHAVE_INTTYPES_H=1', '-DHAVE_STDINT_H=1', '-DHAVE_SYS_BITYPES_H=1', '-DHAVE_SYS_TYPES_H=1', '-DHAVE_NDN_CXX=1', '../core/version.cpp', '-c', '-o', '/root/ndn/ndn-tools/build/core/version.cpp.1.o']<br class=""> -> task in '../../bin/ndnpeek' failed (exit status 1): <br class="">    {task 139918217338640: cxx ndn-peek.cpp -> ndn-peek.cpp.1.o}<br class="">['/usr/lib64/ccache/g++', '-pedantic', '-Wall', '-O2', '-g', '-std=c++11', '-I/root/ndn/ndn-tools/build', '-I/root/ndn/ndn-tools', '-I/usr/local/include', '-I/usr/include', '-DNDEBUG', '-DHAVE_INTTYPES_H=1', '-DHAVE_STDINT_H=1', '-DHAVE_SYS_BITYPES_H=1', '-DHAVE_SYS_TYPES_H=1', '-DHAVE_NDN_CXX=1', '../tools/peek/ndn-peek.cpp', '-c', '-o', '/root/ndn/ndn-tools/build/tools/peek/ndn-peek.cpp.1.o']<br class=""> -> task in '../../bin/ndnpoke' failed (exit status 1): <br class="">    {task 139918217363152: cxx ndn-poke.cpp -> ndn-poke.cpp.2.o}<br class="">['/usr/lib64/ccache/g++', '-pedantic', '-Wall', '-O2', '-g', '-std=c++11', '-I/root/ndn/ndn-tools/build', '-I/root/ndn/ndn-tools', '-I/usr/local/include', '-I/usr/include', '-DNDEBUG', '-DHAVE_INTTYPES_H=1', '-DHAVE_STDINT_H=1', '-DHAVE_SYS_BITYPES_H=1', '-DHAVE_SYS_TYPES_H=1', '-DHAVE_NDN_CXX=1', '../tools/peek/ndn-poke.cpp', '-c', '-o', '/root/ndn/ndn-tools/build/tools/peek/ndn-poke.cpp.2.o']<br class=""> -> task in '../../bin/ndndump' failed (exit status 1): <br class="">    {task 139918217362960: cxx main.cpp -> main.cpp.2.o}<br class="">['/usr/lib64/ccache/g++', '-pedantic', '-Wall', '-O2', '-g', '-std=c++11', '-I/root/ndn/ndn-tools/build/tools/dump', '-I/root/ndn/ndn-tools/tools/dump', '-I/root/ndn/ndn-tools/build', '-I/root/ndn/ndn-tools', '-I/usr/local/include', '-I/usr/include', '-DNDEBUG', '-DHAVE_INTTYPES_H=1', '-DHAVE_STDINT_H=1', '-DHAVE_SYS_BITYPES_H=1', '-DHAVE_SYS_TYPES_H=1', '-DHAVE_NDN_CXX=1', '-DHAVE_PCAP=1', '../tools/dump/main.cpp', '-c', '-o', '/root/ndn/ndn-tools/build/tools/dump/main.cpp.2.o']<br class=""><br class=""></div><div class=""><br class=""></div><div class=""><div class=""><div class=""><div class=""><div class=""><div dir="ltr" class=""><div class=""><div dir="ltr" class=""><span style="font-family:Arial,Tahoma,Verdana,sans-serif;font-size:13.3333px;line-height:18.2px" class="">Best Regards,</span><br class=""><div class=""><span style="font-family:Arial,Tahoma,Verdana,sans-serif;font-size:13.3333px;line-height:18.2px" class="">Alexander Ni</span></div><div class=""><span style="font-family:Arial,Tahoma,Verdana,sans-serif;font-size:13.3333px;line-height:18.2px" class=""><br class=""></span></div></div></div></div></div></div>
</div></div></div></div></div></div>
_______________________________________________<br class="">Nfd-dev mailing list<br class=""><a href="mailto:Nfd-dev@lists.cs.ucla.edu" target="_blank" class="">Nfd-dev@lists.cs.ucla.edu</a><br class=""><a href="http://www.lists.cs.ucla.edu/mailman/listinfo/nfd-dev" target="_blank" class="">http://www.lists.cs.ucla.edu/mailman/listinfo/nfd-dev</a><br class=""></div></blockquote></div><br class=""></div></blockquote></div><br class=""></div>
</div></blockquote></div><br class=""></div></div></div></blockquote></div><br class=""></div>
</div></blockquote></div><br class=""></body></html>