building nano-sim module by telematics in ns3

109 views
Skip to first unread message

nasrin

unread,
Oct 5, 2017, 11:14:34 AM10/5/17
to ns-3-users
hi friends.
i need to add nanosim module to ns3 . but i got some errors.
im using gcc 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.4) 
and ns3-19 on windows 10.

after building :

AttributeError: 'BuildContext' object has no attribute 'add_subdirs'

after running healthcare.cc example in nanosim : 

wscript:60: Warning: (in nanonetworks) Requested to build modular python bindings, but apidefs dir not found => skipped the bindings.

 wutils.VNUM = None

program 'scratch/examples/health-care' not found; available programs are: ['subdir', 'scratch/subdir/subdir', 'scratch-simulator', 'scratch/scratch-simulator', 'examples', 'scratch/examples/examples', 'test-runner', 'utils/test-runner', 'bench-simulator', 'utils/bench-simulator', 'bench-packets', 'utils/bench-packets', 'print-introspected-doxygen', 'utils/print-introspected-doxygen', 'emu-sock-creator', 'src/emu/emu-sock-creator', 'tap-device-creator', 'src/fd-net-device/tap-device-creator', 'raw-sock-creator', 'src/fd-net-device/raw-sock-creator', 'tap-creator', 'src/tap-bridge/tap-creator']


i also attached full build results ...please help me. i really need to fix it as soon as possible.
regards.
error.docx

nasrin

unread,
Oct 7, 2017, 11:04:53 AM10/7/17
to ns-3-users
hello everyone .
finally i found the solution for fixing those errors mentioned above and put it here for everyone may face them in the future :)
after compiling according to :  http://telematics.poliba.it/index.php/en/nano-sim
for running the healthcare.cc , you must copy just the healthcare.cc file in scratch folder and not the all example folder which is including healthcare.cc.
wrong : ./waf --run scratch/examples/healthcare
correct : ./waf --run scratch/health-care
good luck.

jeje omar

unread,
Nov 16, 2017, 11:39:17 AM11/16/17
to ns-3-users
hi
did you instrall older version of ns3 or the new one

jeje omar

unread,
Nov 16, 2017, 12:39:56 PM11/16/17
to ns-3-users
Sorruy I didn't see that ns3.19 is used
Reply all
Reply to author
Forward
0 new messages