Dear NS3 Gurus,
I am working on my master thesis at IDSIA Switzerland. I have ns-3.13 distribution, everything working fine, but I have big problem with visualizer. I try this things in my script but not working here is the detail.
System Ubuntu 11.10. What I tried. with
CommandLine cmd;
cmd.Parse (argc, argv);
1. case;
#include "ns3/pyviz.h" and include the {PyViz v;}
Error:
/home/imran/NS3Simulator/ns-3.13/build/../scratch/myfirst.cc:31: undefined reference to `ns3::PyViz::PyViz()'
/home/imran/NS3Simulator/ns-3.13/build/../scratch/myfirst.cc:31: undefined reference to `ns3::PyViz::~PyViz()'
collect2: ld returned 1 exit status
even I have this #include "ns3/visualizer-module.h"
2.case;
If comment on on {Pyvis v;} then this Error.
assert failed. cond="uid != 0", msg="Assert in TypeId::LookupByName: ns3::VisualSimulatorImpl not found", file=../src/core/model/type-id.cc, line=388
Command ['/home/imran/NS3Simulator/ns-3.13/build/scratch/myfirst', '--SimulatorImplementationType=ns3::VisualSimulatorImpl'] terminated with signal SIGSEGV. Run it under a debugger to get more information (./waf --run <program> --command-template="gdb --args %s <args>").
3.case; actually this is above one. I just go to the src/visualizer and see the example where its written: " For activating the visualizer, with any example, just pass the option
--SimulatorImplementationType=ns3::VisualSimulatorImpl to it, assuming the script uses ns-3's command line parser (class CommandLine)." but same case 2 error.
./waf --run myfirst --SimulatorImplementationType=ns3::VisualSimulatorImpl not working. Even inside the quotes.
My ns-3.13 actuall installation were on ubuntu 11.04 and last night I just updated to 11.10. It perfectly working with my old work, but that time I did not try the visualizer, I think this will not make the big difference.
The script I am using is from examples first.cc, which I had copied in Scratch with new name.
I will salute your kind efforts.
Cheers,
Ahmed