named-data-ndnsim / scenario-template Goto Github PK
View Code? Open in Web Editor NEWTemplate for running simulation scenarios in ndnSIM
Template for running simulation scenarios in ndnSIM
I compiled ns3 with MPI enabled. I can run ndn-simple-mpi
from original installation directory of ns3 and ndnSIM. Now I am trying to run the same scenario by placing it under scenarios
directory of this template repository but it is failing with the following error.
[1/2] Compiling scenarios/ndn-simple-mpi.cpp
../scenarios/ndn-simple-mpi.cpp:31:2: error: #error "ndn-simple-mpi scenario can be compiled only if NS3_MPI is enabled"
#error "ndn-simple-mpi scenario can be compiled only if NS3_MPI is enabled"
^~~~~
I took all the steps for installation and ran sudo ./waf install
after compiling ns3 and ndnSIM. I could run other non mpi examples by placing them under this repo. Can you please suggest on what could be going wrong?
Hello,
using this scenario template with ndnSIM 2.8 (ns-3.30.1) and running waf configure
I ran into an error.
$ ./waf configure
Setting top to : /home/ndn/simulation
Setting out to : /home/ndn/simulation/build
Checking for 'gcc' (C compiler) : /usr/bin/gcc
Checking for 'g++' (C++ compiler) : /usr/bin/g++
Checking C++ compiler version : 9.3.0
Checking supported CXXFLAGS : -std=c++14
Checking supported LINKFLAGS : -fuse-ld=gold
Checking for program 'pkg-config' : /usr/bin/pkg-config
Checking for pkg-config version >= '0.0.0' : yes
Checking for ns3-core : 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/ndn/simulation/build/config.log)
Then I inspected config.log
:
$ cat build/config.log
[...]
Checking for ns3-core
['/usr/bin/pkg-config', '--cflags', '--libs', 'libns3-dev-core-optimized']
err: Package libns3-dev-core-optimized was not found in the pkg-config search path.
Perhaps you should add the directory containing `libns3-dev-core-optimized.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libns3-dev-core-optimized' found
not found
from /home/ndn/simulation: The configuration failed
Using PKG_CONFIG_PATH
variable option didn't help.
I investigated more and observed that filenames are different!
Since ndnSIM 2.8 (ns-3.30.1) the compiled files have the following prefix
libns3.30.1-
But in the older versions (like ndnSIM 2.7 which is based on ns-3.29) the compiled files were following the prefix searched by waf
:
libns3-dev-
I also tried to run a simulation example directly into the ns-3 folder and it works, so I guess this is the problem.
If needed, I can post here build logs, you tell me.
I installed ndnSIM as described into ndnsim.net.
Debug info:
I have tried running the ndn-simple scenario from a separate scenario folder using the template (as opposed to the examples folder) to get started and am getting the following error:
‘ns3::ndn::StrategyChoiceHelper’ has not been declared
I am running it using:
LD_LIBRARY_PATH=/usr/local/lib ./waf --run ndn-simple
Is there any reason why the StrategyChoiceHelper module is not recognized?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.