You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 variableNo package 'libns3-dev-core-optimized' foundnot foundfrom /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.
As a quick hack, you can modify .waf-tools/ns3.py to reference libns3.30.1- prefix. I will try to make a bit more general version of it / fix base NS3 to revert back to the old convention.
As a quick hack, you can modify .waf-tools/ns3.py to reference libns3.30.1- prefix. I will try to make a bit more general version of it / fix base NS3 to revert back to the old convention.
as fam4r diagnose the problem correctly. With libns3.30.1- prefix it doesn't work for me. I have to do libns3.35.- in .waf-tools/ns3.py file. I think latest ns3 update the library and this prefix no longer work.
Hello,
using this scenario template with ndnSIM 2.8 (ns-3.30.1) and running
waf configure
I ran into an error.Then I inspected
config.log
: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
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
: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:
The text was updated successfully, but these errors were encountered: