wireless animation

83 views
Skip to first unread message

ahmad ibrahim

unread,
Mar 15, 2017, 5:55:47 PM3/15/17
to ns-3-users
Hello All,
I'm trying to view the movement of wireless nodes using netanim, but i get the fault when i run the simulation

examples/my-simulation/m-kodo-wifi-broadcast.cc.4.o: In function `main':
/home/ahmad/ns-3-dev/build/../examples/my-simulation/m-kodo-wifi-broadcast.cc:290: undefined reference to `ns3::AnimationInterface::AnimationInterface(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >)'
/home/ahmad/ns-3-dev/build/../examples/my-simulation/m-kodo-wifi-broadcast.cc:291: undefined reference to `ns3::AnimationInterface::EnablePacketMetadata(bool)'
/home/ahmad/ns-3-dev/build/../examples/my-simulation/m-kodo-wifi-broadcast.cc:290: undefined reference to `ns3::AnimationInterface::~AnimationInterface()'
/home/ahmad/ns-3-dev/build/../examples/my-simulation/m-kodo-wifi-broadcast.cc:290: undefined reference to `ns3::AnimationInterface::~AnimationInterface()'
collect2: error: ld returned 1 exit status

Can you help me?

Konstantinos

unread,
Mar 16, 2017, 6:36:55 PM3/16/17
to ns-3-users
Hi,

Have you added 'netanim' header file in the scenario and netanim as dependency in your wscript file?
Both actions are explained in the documentation of NetAnim.

Regards,
K
Reply all
Reply to author
Forward
0 new messages