[ndnSIM] question for topology
aaronishere at qq.com
Tue Mar 5 23:05:54 PST 2013
when I typed ./waf configure or PKG_CONFIG_PATH=/home/ndnSIM/lib/pkgconfig ./waf configure
it showed like below:
gconfig ./waf configure
Setting top to : /home/ndnSIM-3-6/ndnSIM-sample-topologies
Setting out to : /home/ndnSIM-3-6/ndnSIM-sample-topologies/build
Checking for 'g++' (c++ compiler) : /usr/bin/g++
Checking boost includes : 1_50
Checking boost libs : ok
Checking for boost linkage : ok
Checking for program pkg-config : /usr/bin/pkg-config
Checking for pkg-config version >= '0.0.0' : yes
Checking for ns3-ndnSIM : not found
NS-3 or one of the required NS-3 modules not found
NS-3 needs to be compiled and installed somewhere. You may need also to set PKG_CONFIG_PATH variable in order for configure find installed NS-3.
PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:$PKG_CONFIG_PATH ./waf configure
(complete log in /home/ndnSIM-3-6/ndnSIM-sample-topologies/build/config.log)
it seems that NS-3 is not found and the log in the build is like below:
Checking for ns3-ndnSIM
['/usr/bin/pkg-config', '--cflags', '--libs', 'libns3-dev-ndnSIM-optimized']
err: Package libns3-dev-ndnSIM-optimized was not found in the pkg-config search path.
Perhaps you should add the directory containing `libns3-dev-ndnSIM-optimized.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libns3-dev-ndnSIM-optimized' found
from /home/ndnSIM/ndnSIM-sample-topologies: The configuration failed
From: Alex Afanasyev
Date: 2013-03-06 10:59
Subject: Re: [ndnSIM] question for topology
Sorry, you are not the first one who gets confused with my template. I hope a corrected README file is more clear.
In any case, you need to clone ndnSIM-sample-topologies into a separate location, not related to ns-3. Let's say you start from scratch, then you can do the following:
git clone git://github.com/cawka/ns-3-dev-ndnSIM.git -b ns-3.16-ndnSIM ns-3
git clone git://github.com/NDN-Routing/ndnSIM.git -b v0.2.6 ns-3/src/ndnSIM
git clone git://github.com/cawka/ndnSIM-sample-topologies.git ndnSIM-sample-topologies
(there are some tricks to compile ndnSIM-sample-topologies, but README talks about them)
As for the usage, you can create your scenario similar to http://ndnsim.net/examples.html#node-grid-example-using-topology-plugin, but instead of
write something like
topologyReader.SetFileName ("topologies/bw-delay-rand-1/1221.r0-conv-annotated.txt"); // you also need to adjust other parts of the scenario
(or you can just copy .txt files to your preferred location)
Btw. This template can be used for all your custom simulations. Just put any scenario that you're working on in scenarios/ folder and all of them will be automatically compiled when you do ./waf and you can run.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the ndnSIM