[Nfd-dev] ndn-tools

Alex Afanasyev aa at CS.UCLA.EDU
Fri Sep 4 00:47:16 PDT 2015


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 <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/533c5fff/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 841 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://www.lists.cs.ucla.edu/pipermail/nfd-dev/attachments/20150904/533c5fff/attachment.bin>


More information about the Nfd-dev mailing list