[ndnSIM] Running ndn-ping scenario

chavoosh ghasemi chavoosh.ghasemi.off at gmail.com
Sat Mar 17 15:49:53 PDT 2018


Susmit,

Thanks for sharing the link. I read it and just figured out I need to
download the ndnSIM v.2.5 and work on it (based on this link:
https://github.com/named-data-ndnSIM/scenario-template). Now ns-3 compiles
with no problem; however, after I changing the directory to
scenario-ndn-ping and running ./waf configure, when I try to run the
ndn-ping scenario (i.e. ./waf --run ping-simple), I face the following
error:


[ 1/10] Compiling ndn-tools/core/version.cpp
[ 2/10] Compiling ndn-tools/tools/ping/client/ping.cpp
../ndn-tools/tools/ping/client/ping.cpp: In constructor
‘ndn::ping::client::Ping::Ping(ndn::Face&, const
ndn::ping::client::Options&)’:
../ndn-tools/tools/ping/client/ping.cpp:39:17: error: ‘random’ is not a
class, namespace, or enumeration
     m_nextSeq = random::generateWord64();
                 ^~~~~~
../ndn-tools/tools/ping/client/ping.cpp: In member function ‘void
ndn::ping::client::Ping::performPing()’:
../ndn-tools/tools/ping/client/ping.cpp:68:69: error: no matching function
for call to ‘ndn::Face::expressInterest(ndn::Interest&,
std::_Bind_helper<false, void (ndn::ping::client::Ping::*)(const
ndn::Interest&, ndn::Data&, long unsigned int, const
boost::chrono::time_point<ndn::time::steady_clock>&),
ndn::ping::client::Ping*, const std::_Placeholder<1>&, const
std::_Placeholder<2>&, long unsigned int&,
boost::chrono::time_point<ndn::time::steady_clock,
boost::chrono::duration<long int, boost::ratio<1l, 1000000000l> > >
>::type, std::_Bind_helper<false, void (ndn::ping::client::Ping::*)(const
ndn::Interest&, long unsigned int), ndn::ping::client::Ping*, const
std::_Placeholder<1>&, long unsigned int&>::type)’
                          bind(&Ping::onTimeout, this, _1, m_nextSeq));
                                                                     ^
In file included from
/home/vagrant/ns-dev/scenario-ndn-ping/ndn-tools/core/common.hpp:61:0,
                 from ../ndn-tools/tools/ping/client/ping.hpp:26,
                 from ../ndn-tools/tools/ping/client/ping.cpp:23:
/home/vagrant/ns-dev/ns-3/build/ns3/ndnSIM/ndn-cxx/face.hpp:229:3: note:
candidate: const ndn::PendingInterestId* ndn::Face::expressInterest(const
ndn::Interest&, const DataCallback&, const NackCallback&, const
TimeoutCallback&)
   expressInterest(const Interest& interest,
   ^~~~~~~~~~~~~~~
/home/vagrant/ns-dev/ns-3/build/ns3/ndnSIM/ndn-cxx/face.hpp:229:3: note:
candidate expects 4 arguments, 3 provided

What can be the problem?

Bests,
*- Chavoosh*

On Fri, Mar 16, 2018 at 1:49 PM, Susmit <susmit at cs.colostate.edu> wrote:

> Do you have libcryptopp installed?
> If you do, try following this thread:
> http://www.lists.cs.ucla.edu/pipermail/ndnsim/2017-September/004152.html
>
>
>
>
> On Fri, Mar 16, 2018 at 2:21 PM, chavoosh ghasemi
> <chavoosh.ghasemi.off at gmail.com> wrote:
> > Hi,
> >
> > I am trying to run ndn-ping application in ndnSIM, so I followed steps in
> > https://github.com/named-data-ndnSIM/scenario-ndn-ping. Note that I
> checked
> > out to ns-3.23-dev-ndnSIM-2.1 and ndnSIM 2.1; however, I get the
> following
> > compilation error when I want to compile the code (./waf configure -d
> > optimized). How can this problem be solved? Is it about the version of
> > ns-dev or ndnSIM?
> >
> > Compilation error:
> >
> > Traceback (most recent call last):
> >   File
> > "/home/vagrant/ns-dev/ns-3/.waf-1.8.12-f00e5b53f6bbeab1384a38c9cc5d51
> f7/waflib/Scripting.py",
> > line 108, in waf_entry_point
> >     run_commands()
> >   File
> > "/home/vagrant/ns-dev/ns-3/.waf-1.8.12-f00e5b53f6bbeab1384a38c9cc5d51
> f7/waflib/Scripting.py",
> > line 165, in run_commands
> >     parse_options()
> >   File
> > "/home/vagrant/ns-dev/ns-3/.waf-1.8.12-f00e5b53f6bbeab1384a38c9cc5d51
> f7/waflib/Scripting.py",
> > line 138, in parse_options
> >     Context.create_context('options').execute()
> >   File
> > "/home/vagrant/ns-dev/ns-3/.waf-1.8.12-f00e5b53f6bbeab1384a38c9cc5d51
> f7/waflib/Options.py",
> > line 146, in execute
> >     super(OptionsContext,self).execute()
> >   File
> > "/home/vagrant/ns-dev/ns-3/.waf-1.8.12-f00e5b53f6bbeab1384a38c9cc5d51
> f7/waflib/Context.py",
> > line 92, in execute
> >     self.recurse([os.path.dirname(g_module.root_path)])
> >   File
> > "/home/vagrant/ns-dev/ns-3/.waf-1.8.12-f00e5b53f6bbeab1384a38c9cc5d51
> f7/waflib/Context.py",
> > line 133, in recurse
> >     user_function(self)
> >   File "/home/vagrant/ns-dev/ns-3/wscript", line 213, in options
> >     opt.recurse('src')
> >   File
> > "/home/vagrant/ns-dev/ns-3/.waf-1.8.12-f00e5b53f6bbeab1384a38c9cc5d51
> f7/waflib/Context.py",
> > line 133, in recurse
> >     user_function(self)
> >   File "/home/vagrant/ns-dev/ns-3/src/wscript", line 48, in options
> >     opt.recurse(module, mandatory=False)
> >   File
> > "/home/vagrant/ns-dev/ns-3/.waf-1.8.12-f00e5b53f6bbeab1384a38c9cc5d51
> f7/waflib/Context.py",
> > line 133, in recurse
> >     user_function(self)
> >   File "/home/vagrant/ns-dev/ns-3/src/ndnSIM/wscript", line 18, in
> options
> >     tooldir=['%s/ndn-cxx/.waf-tools' % opt.path.abspath()])
> >   File
> > "/home/vagrant/ns-dev/ns-3/.waf-1.8.12-f00e5b53f6bbeab1384a38c9cc5d51
> f7/waflib/Context.py",
> > line 86, in load
> >     module=load_tool(t,path)
> >   File
> > "/home/vagrant/ns-dev/ns-3/.waf-1.8.12-f00e5b53f6bbeab1384a38c9cc5d51
> f7/waflib/Context.py",
> > line 342, in load_tool
> >     __import__(tool)
> > ImportError: No module named cryptopp
> >
> >
> > --
> > Chavoosh Ghasemi
> >
> > Ph.D. Student in Computer Networking
> > University of Arizona - Computer Science Department
> > Address: Gould-Simpson 721B, 1040 E. 4th Street,
> >                  Tucson, AZ 85721
> >
> > "The quieter you become, the more you can hear"
> >
> > _______________________________________________
> > ndnSIM mailing list
> > ndnSIM at lists.cs.ucla.edu
> > http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim
> >
>
> --
>
> ====================================
> http://www.cs.colostate.edu/~susmit
> ====================================
>



-- 
*Chavoosh Ghasemi*

Ph.D. Student in Computer Networking
University of Arizona - Computer Science Department
*Address: Gould-Simpson 721B, *
*1040 E. 4th Street,*


*                 Tucson, AZ 85721"The quieter you become, the more you can
hear"*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20180317/3e39fb22/attachment.html>


More information about the ndnSIM mailing list