[Nfd-dev] some questions when running example in ndn-cxx

Ashlesh Gawande (agawande) agawande at memphis.edu
Wed Jul 12 08:25:48 PDT 2017


You cannot mix and match source and PPA.

When you install the NFD PPA it installs its own ndn-cxx lib.

So you should uninstall ndn-cxx (from source):

sudo ./waf uninstall.

Then compile the example separately linking ndn-cxx installed in the system:

g++ consumer.cpp -o consumer -lndn-cxx -lboost_system


Ashlesh

________________________________
From: Nfd-dev <nfd-dev-bounces at lists.cs.ucla.edu> on behalf of jinyangl at mail.ustc.edu.cn <jinyangl at mail.ustc.edu.cn>
Sent: Wednesday, July 12, 2017 9:34:56 AM
To: nfd-dev
Subject: [Nfd-dev] some questions when running example in ndn-cxx


We have some problems when we are installing ndn-cxx (Building from Source)  and NFD (PPA) on bananapi R1(a device similar to Raspberry, but better performance)
OS version: 2017-05-09-ubuntu-16.04-mate-nodered-ros-tensorflow-preview-bpi-m1-m1p-r1-sd-16GB<https://www.banana-pi.org.cn/r1-download.html>
linux kernel version: 3.4.114-sun7i.
Step 1:
We want to configure ndn-cxx throught following method :
…….
cd ndn-cxx/
./waf configure –with-examples –boost-lib=/usr/lib/arm-linux-gnueabihf
./waf
./waf install
sudo ldconfig
……..
(There is no error in this step)

Step 2:
We install NFD Using the NDN PPA Repository on bananapi R1
…..
sudo apt-get install software-properties-common
sudo add-apt-repository ppa:named-data/ppa
sudo apt-get update
sudo apt-get install nfd
…..
And then ,we can start up NFD successfully:
nfd-start
nfd-status(it will have some codes on screen,please see appendix)

Step 3:
We want to run some examples in ndn-cxx document,so we configure examples :
…
cd ndn-cxx/
./waf configure –with-examples –boost-lib=/usr/lib/arm-linux-gnueabihf
./waf
./waf install
sudo ldconfig
…..
(There is no error in this step)
Step 4 :
To run examples:
……
cd /ndn-cxx/build/examples
./producer
(There is no error in this step, And then open a another command line interface to run ./consumer)

./consumer(and sudo ./consumer)
Unfortunately,it occur some fault in this step  on the screen:
./consumer: symbol lookup error: ./consumer: undefined symbol:
_ZN3ndn8InterestC1ERKNS_4NameEN5boost6chrono8durationIxNS4_5ratioILx1ELx1000EEEEE

Why?
Do you know what's going on????

I thank that is because that I configure /ndn-cxx/examples through the order –boost-lib=/usr/lib/arm-linux-gnueabihf, wheather if NFD can not identify the executable program throught this method ?
But But how can i solve this problem?
________________________________
jinyangl at mail.ustc.edu.cn
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/nfd-dev/attachments/20170712/8ed77656/attachment-0001.html>


More information about the Nfd-dev mailing list