[ndnSIM] question for topology
Alex Afanasyev
alexander.afanasyev at ucla.edu
Tue Mar 5 23:31:23 PST 2013
Where did you install NS-3 ? in /usr/local/? Do you have /usr/local/include/ns3-dev folder?
--
Alex
On Mar 5, 2013, at 11:05 PM, aaronishere <aaronishere at qq.com> wrote:
> Hi, Alex
> 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.
> For example:
> 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
>
> not found
> from /home/ndnSIM/ndnSIM-sample-topologies: The configuration failed
> from /home/ndnSIM/ndnSIM-sample-topologies:
>
>
>
> aaron
>
> From: Alex Afanasyev
> Date: 2013-03-06 10:59
> To: aaronishere
> CC: ndnsim
> Subject: Re: [ndnSIM] question for topology
> Hi Aaron,
>
> 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:
>
> mkdir ns-dev
> cd ns-dev
>
> 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
>
> cd ns-3
> ./waf configure
> ./waf install
>
> cd ../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
> topologyReader.SetFileName ("src/ndnSIM/examples/topologies/topo-grid-3x3.txt");
> 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.
>
> ---
> Alex
> _______________________________________________
> ndnSIM mailing list
> ndnSIM at lists.cs.ucla.edu
> http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20130305/2e4ce8e0/attachment.html>
More information about the ndnSIM
mailing list