Question about NetAnim 3.110 for Ubuntu 24.04 and ns-3.45?

36 views
Skip to first unread message

Wagner de Oliveira

unread,
Sep 2, 2025, 11:25:08 PM (10 days ago) Sep 2
to ns-3-users
Good morning,
I have a question about NetAnim 3.110 for Ubuntu 24.04 and ns-3.45.

Through the website "https://gitlab.com/nsnam/netanim"

I followed the instructions in the "Build instructions" applying:
git clone https://gitlab.com/nsnam/netanim.git
cd netanim
mkdir build && cd build
cmake .. && cmake --build .

The "NetAnim binary" is now located at ./netanim/build/bin/netanim

I used the procedures from the "ns-3 Model Library", release ns-3.45, page 10,
I followed the command sequence procedure

"gedit ./scratch/myFirst.cc"
"#include "ns3/netanim-module.h"
"AnimationInterface anim("myFirst_animation.xml");"

Save the file

$ ./ns3 configure -d debug --enable-examples
$ ./ns3 run "dumbbell-animation"

Using "./ns3 run myFirst", however, the file generation is different compared to ns-3.42, which generates the "Consolidate Compiler" and generates an error

at the end...
In file included from /home/wagner123/ns-allinone-3.45/ns-3.45/build/include/openflow/private/dp_act.h:38,
from /home/wagner123/ns-allinone-3.45/ns-3.45/src/openflow/model/openflow-interface.h:52:
/home/wagner123/ns-allinone-3.45/ns-3.45/build/include/openflow/private/switch-flow.h:54:38: error: ISO C++ forbids zero-size array 'actions' [-Werror=pedantic]
54 | struct ofp_action_header actions[0];
| ^
cc1plus: all warnings being treated as errors
ninja: build stopped: subcommand failed. ?????

What am I doing wrong in this version?
Is it possible to send me the correct sequence with the changes that do not exist in the manual?

Best regards

Wagner

Tom Henderson

unread,
Sep 2, 2025, 11:43:26 PM (10 days ago) Sep 2
to ns-3-...@googlegroups.com

I did not follow your message below.  You were talking both about 'scratch/myFirst.cc' and 'dumbbell-animation.cc'.  Then, you are showing a compilation error related to openflow (which is not part of dumbbell-animation.cc or first.cc).

Can you please clarify whether ns-3.45 builds for you?

If so, can you run ./ns3 run 'dumbbell-animation' successfully?

If so, can you open the resulting XML file in NetAnim?

Or, is the problem that you cannot build ns-3.45 because it is failing to build openflow module (and you are not interested in the openflow module)?

- Tom

--
Posting to this group should follow these guidelines https://www.nsnam.org/wiki/Ns-3-users-guidelines-for-posting
---
You received this message because you are subscribed to the Google Groups "ns-3-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ns-3-users+...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/ns-3-users/8e025d80-3d94-4289-86c6-4901f9e9355cn%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages