[Nfd-dev] ndn-tools

Alexander Ni alexni1992 at gmail.com
Fri Sep 4 00:59:22 PDT 2015


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)

[root at Consumer1 ndn-tools]# ./waf configure
Setting top to                           : /root/ndn/ndn-tools
Setting out to                           : /root/ndn/ndn-tools/build
Checking for 'g++' (C++ compiler)        : /usr/lib64/ccache/g++
Checking supported CXXFLAGS              : -std=c++11
Checking supported CXXFLAGS              : -pedantic -Wall -O2 -g
Checking for program 'sphinx-build'      : /usr/bin/sphinx-build
Checking for program 'pkg-config'        : /usr/bin/pkg-config
Checking for 'libndn-cxx'                : yes
Checking boost includes                  : 1.55.0
Checking boost libs                      : ok
Checking for boost linkage               : ok
Checking for header inttypes.h           : yes
Checking for header stdint.h             : yes
Checking for header sys/bitypes.h        : yes
Checking for __attribute__               : yes
Checking for header ['sys/types.h', 'sys/time.h', 'time.h'] : yes
Checking for 'libpcap'                                      : yes
'configure' finished successfully (0.897s)

Best Regards,
Alexander Ni


On Fri, Sep 4, 2015 at 4:47 PM, Alex Afanasyev <aa at cs.ucla.edu> wrote:

> It seems that the compilation cannot find ndn-cxx library headers.
>
> 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.
>
> 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
> http://named-data.net/doc/NFD/current/INSTALL.html).
>
> ---
> Alex
>
> On Sep 4, 2015, at 12:43 AM, Alexander Ni <alexni1992 at gmail.com> wrote:
>
> Hello everyone.
>
> I was trying to build ndn-tools but in non-standard location get an error.
> Can somebody help me to solve this problem?
>
> ./waf
>
> [ 5/40] Compiling tools/dump/main.cpp
> In file included from ../core/version.hpp:23:0,
>                  from ../core/version.cpp:20:
> ../core/common.hpp:64:48: fatal error:
> ndn-cxx/security/signing-helpers.hpp: No such file or directory
>  #include <ndn-cxx/security/signing-helpers.hpp>
>                                                 ^
> compilation terminated.
>
> In file included from /root/ndn/ndn-tools/core/version.hpp:23:0,
>                  from ../tools/peek/ndn-peek.cpp:51:
> /root/ndn/ndn-tools/core/common.hpp:64:48: fatal error:
> ndn-cxx/security/signing-helpers.hpp: No such file or directory
>  #include <ndn-cxx/security/signing-helpers.hpp>
>                                                 ^
> compilation terminated.
>
> In file included from /root/ndn/ndn-tools/core/version.hpp:23:0,
>                  from ../tools/peek/ndn-poke.cpp:51:
> /root/ndn/ndn-tools/core/common.hpp:64:48: fatal error:
> ndn-cxx/security/signing-helpers.hpp: No such file or directory
>  #include <ndn-cxx/security/signing-helpers.hpp>
>                                                 ^
> compilation terminated.
>
> In file included from /root/ndn/ndn-tools/core/version.hpp:23:0,
>                  from ../tools/dump/main.cpp:38:
> /root/ndn/ndn-tools/core/common.hpp:64:48: fatal error:
> ndn-cxx/security/signing-helpers.hpp: No such file or directory
>  #include <ndn-cxx/security/signing-helpers.hpp>
>                                                 ^
> compilation terminated.
>
> Waf: Leaving directory `/root/ndn/ndn-tools/build'
> Build failed
>  -> task in 'core-objects' failed (exit status 1):
>     {task 139918217243024: cxx version.cpp -> version.cpp.1.o}
> ['/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']
>  -> task in '../../bin/ndnpeek' failed (exit status 1):
>     {task 139918217338640: cxx ndn-peek.cpp -> ndn-peek.cpp.1.o}
> ['/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']
>  -> task in '../../bin/ndnpoke' failed (exit status 1):
>     {task 139918217363152: cxx ndn-poke.cpp -> ndn-poke.cpp.2.o}
> ['/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']
>  -> task in '../../bin/ndndump' failed (exit status 1):
>     {task 139918217362960: cxx main.cpp -> main.cpp.2.o}
> ['/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']
>
>
> Best Regards,
> Alexander Ni
>
> _______________________________________________
> Nfd-dev mailing list
> Nfd-dev at lists.cs.ucla.edu
> http://www.lists.cs.ucla.edu/mailman/listinfo/nfd-dev
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/nfd-dev/attachments/20150904/72c0ecb0/attachment.html>


More information about the Nfd-dev mailing list