ns3.20 unable to generate animation.XML trace file

754 views
Skip to first unread message

yoanmo...@gmail.com

unread,
Apr 19, 2017, 10:34:54 AM4/19/17
to ns-3-users
Hiiiiii Dear Ns3 Users,

I have installed ns3.20 in vırtualMachıne (VMware Workstation Pro)  on Ubuntu 14.04.
I wanted to run 
manet-routing-compare.cc, so I've included the header #include "ns3/netanim-module.h"  in my test program (manet-routing-compare.cc)
and I've
also added the statement "AnimationInterface anim ("manetrouting.xml"); in the program before Simulator::Run()
After that I run waf  @ubuntu:~/Desktop/ns-allinone-3.20/ns-3.20$ ./waf --run manet-routing-compare
The  program is executing properly  on terminal without any errors but the manetrouting.xml  IS NOT GENERATED after executing it.
I looked for the XML file in the folder I run WAF(@ubuntu:~/Desktop/ns-allinone-3.20/ns-3.20$) but I couldnt find it 
The code I used is attached:

Thanks !!!!!!!
manet-routing-compare.cc

Tommaso Pecorella

unread,
Apr 23, 2017, 9:53:38 PM4/23/17
to ns-3-users
Hi,

it is generated, try to refresh your folder view.
Moreover, please switch to the latest ns-3 version (ns-3.26 right now). We can't offer support for old ns-3 releases.

T.

yoanmo...@gmail.com

unread,
Apr 24, 2017, 5:01:46 AM4/24/17
to ns-3-users

Thank you very much for the prompt reply Mrs Tommaso Pecorella

I 've refreshed the folder view by (ctrl+R) but still the same
maybe I missed something when I was installing ns3 and I passed 3 weeks trying to generate it.
Please Can you attach the generated file? I really need it and I need also .xml for OLSR for that I changed 
m_protocol (2) // AODV   to m_protocol (1) // OLSR
I also changed AnimationInterface anim("olsr.xml");
Please Can you run again (for OLSR) the program and attach 
the generated files ?
the program file is attached below

I gonna switch to the latest ns-3.26
manet-routing-compare.cc
Message has been deleted

Tommaso Pecorella

unread,
Apr 24, 2017, 10:25:37 AM4/24/17
to ns-3-users
Hi,

my xml generated file won't work on your computer because I'm using ns-3-dev.
Check that you have write permissions on your ns-3 folder, and try using the terminal:
"ls -l *.xml"

T.

yoanmo...@gmail.com

unread,
Apr 24, 2017, 4:28:17 PM4/24/17
to ns-3-users
Hi Mr Tommaso Pecorella

I checked it out, I have 
permissions to read and Write on ns-3 folder
and when I tap  "ls -l *.xml " I got   ls: cannot access *.xml: No such file or directory
I 've just installed ns-3.26 right now ,  and I run the program , it  is executing properly  without any errors  but still no generate .xml

During the installation of ns-3 , I
 have followed the steps from https://www.nsnam.org/wiki/Installation#Ubuntu.2FDebian
but I couldnt install 
cmake libc6-dev libc6-dev-i386 g++-multilib
When I put  sudo apt-get install cmake libc6-dev libc6-dev-i386 g++-multilib
it give me
Reading package lists... Done
Building dependency tree      
Reading state information... Done
E: Unable to locate package libc6-dev-i386

so I have skipped without installing those packets ,Do you think that, this was the source of my problem ?


Thanks !!!!!!!

Tommaso Pecorella

unread,
Apr 24, 2017, 8:11:10 PM4/24/17
to ns-3-users
Are you sure you're actually running something ?
multiline is actually optional, but libc6-dev should be mandatory.

Please run ./waf and copy-paste ALL the text, from the command to the next prompt.

T.

yoanmo...@gmail.com

unread,
Apr 24, 2017, 8:41:47 PM4/24/17
to ns-3-users

Thank again Mr Tommaso Pecorella
 
 run ./waf and copy-paste ALL the text, from the command to the next prompt.

baki@ubuntu:~/Desktop/ns3-dev/ns-3-allinone/ns-3-dev$ ./waf
Waf: Entering directory `/home/baki/Desktop/ns3-dev/ns-3-allinone/ns-3-dev/build'
[2653/2688] Linking build/examples/routing/ns3-dev-manet-routing-compare-debug
Waf: Leaving directory `/home/baki/Desktop/ns3-dev/ns-3-allinone/ns-3-dev/build'
Build commands will be stored in build/compile_commands.json
'build' finished successfully (6.009s)

Modules built:
antenna                   aodv                         applications             
bridge                      buildings                     config-store             
core                        csma                           csma-layout              
dsdv                        dsr                              energy                   
fd-net-device           f low-monitor            internet                 
internet-apps           lr-wpan                    lte                      
mesh                      mobility                      mpi                      
netanim (no Python)       network                   nix-vector-routing       
olsr                      point-to-point            point-to-point-layout    
propagation               sixlowpan                 spectrum                 
stats                     tap-bridge                test (no Python)         
topology-read             traffic-control           uan                      
virtual-net-device        visualizer                wave                     
wifi                      wimax                    

Modules not built (see ns-3 tutorial for explanation):
brite                     click                     openflow                 

baki@ubuntu:~/Desktop/ns3-dev/ns-3-allinone/ns-3-dev$

yoanmo...@gmail.com

unread,
Apr 24, 2017, 8:44:41 PM4/24/17
to ns-3-users

Tommaso Pecorella

unread,
Apr 24, 2017, 9:19:48 PM4/24/17
to ns-3-users
Have you copied maned-routing-compare.cc in the scratch by chance ?
Mind to triple check which one have you changed ?

T. 

yoanmo...@gmail.com

unread,
Apr 24, 2017, 10:26:36 PM4/24/17
to ns-3-users


Yes I copied manet-routing-compare.cc from examples/routing/     and paste it in the scratch folder and then I added the header #include "ns3/netanim-module.h"  AnimationInterface anim ("manetrouting.xml") in the same folder (scratch)
I didnt change anything in
examples/routing/manet-routing-compare.cc

I think I missed something , I have completely deleted  the modified manet-routing-compare.cc program  in the  scratch folder
. when I run @ubuntu:~/Desktop/ns3-dev/ns-3-allinone/ns-3-dev$ . /waf --run manet-routing-compare
The  program is executing properly without any errors ( scratch folder does not contain my modified program)

Tommaso Pecorella

unread,
Apr 25, 2017, 6:43:24 AM4/25/17
to ns-3-users
A suggestion: when you copy an example in scratch and you modify it, rename it as well.

By default ". /waf --run maned-routing-compare" will run the ne in the examples folder, while ". /waf --run scratch/manet-routing-compare" will use the one in scratch.
BUT renaming them is a good way to find mistakes.

T.

yoanmo...@gmail.com

unread,
Apr 25, 2017, 1:50:35 PM4/25/17
to ns-3-users


  HI Mr Tommaso Pecorella
I run
   ./waf --run scratch/manet-routing-compare  it is generated .xml trace file 

Thank you very much , Sir I have appreciated your help



abirab...@gmail.com

unread,
Apr 6, 2018, 1:28:48 AM4/6/18
to ns-3-users
Hi Sir, even after renaming its not working. I have tried building ./waf again. but no improvemnet. please suggest.
Thank you.

Arun Santhosh R A

unread,
Nov 2, 2023, 1:48:05 PM11/2/23
to ns-3-users
I am using ns-3.38 ad the xml file is generated, but when I use netanim to open it, it gives a message "core dumped"
What could be the possible solution?
Reply all
Reply to author
Forward
0 new messages