Giter Site home page Giter Site logo

scenario-template's People

Contributors

cawka avatar spirosmastorakis avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

scenario-template's Issues

ndn-simple-mpi.cpp compilation fails because NS3_MPI not enabled

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?

waf searches for wrong ns-3 libs

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:

  • OS: Ubuntu 20.04
  • ndnSIM version: 2.8
  • ns-3 version 3.30.1

StrategyChoiceHelper Module

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?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.