[Nfd-dev] Compiling NFD on MacOS

Md Ashiqur Rahman marahman at email.arizona.edu
Fri Oct 27 12:16:05 PDT 2017


Hello,

I'm trying to compile NFD on MacOS without root access and getting error. I
have never tried nfd on macos before.

Here are the steps I'm following:

# ndn-cxx
git clone https://github.com/named-data/ndn-cxx.git
cd ndn-cxx
./waf configure --prefix=/Users/marahman/ndn-lib/ndn-cxx/ --debug
--with-tests --with-examples
./waf
./waf install
cd ..

# nfd
git clone ssh://Ashiq@gerrit.named-data.net:29418/NFD
cd NFD
export PKG_CONFIG_PATH=/Users/marahman/ndn-lib/ndn-cxx/lib/pkgconfig
export LD_LIBRARY_PATH=/Users/marahman/ndn-lib/ndn-cxx/lib:$LD_LIBRARY_PATH
CXXFLAGS="-I/Users/marahman/ndn-lib/ndn-cxx/include"
LDFLAGS="-L/Users/marahman/ndn-lib/ndn-cxx/lib" ./waf configure --debug
--with-tests
./waf

I get the following error when compiling NFD:

[287/297] Linking build/bin/ndn-autoconfig
Undefined symbols for architecture x86_64:
  "ndn::ip::addressFromString(std::__1::basic_string<char,
std::__1::char_traits<char>, std::__1::allocator<char> > const&)",
referenced from:
      nfd::operator>>(std::__1::basic_istream<char,
std::__1::char_traits<char> >&, nfd::Network&) in network.cpp.2.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see
invocation)

Undefined symbols for architecture x86_64:
  "ndn::ip::addressFromString(std::__1::basic_string<char,
std::__1::char_traits<char>, std::__1::allocator<char> > const&)",
referenced from:
      nfd::operator>>(std::__1::basic_istream<char,
std::__1::char_traits<char> >&, nfd::Network&) in network.cpp.2.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see
invocation)

Need help resolving this issue.

Regards-
Ashiq
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/nfd-dev/attachments/20171027/2bcc6968/attachment.html>


More information about the Nfd-dev mailing list