NetAnim installation lightning protection tips

Project scene:

In ns3, the visualization must be realized through Netanim. According to the 3 steps of the information network modeling and simulation experiment guide, there will be many strange errors, and the use of aptitude can not solve (the package conflicts). Here, give the solution.
In short, don't read the experiment guide for installing NetAnim, just read here.

Cause Analysis:

We can see in the official website installation document

Netanim animator: qt5 development tools are needed for Netanim animator; qt4 will also work but we have migrated to qt5.

So don't install qt4, install qt5!

apt-get install qt5-default mercurial

Installation tutorial:

1. Install qt5

apt-get install qt5-default mercurial

2. Compile NetAnim

First cd to the netanim-3.108 directory, then enter the following command

qmake NetAnim.pro

Then type

make

Insert picture description here
ls will see a lot of cpp files.

3. Open NetAnim

Input command:

./NetAnim

NetAnim like this will come out!Insert picture description here

Guess you like

Origin blog.csdn.net/weixin_43622586/article/details/109754725