NetAnim 安装避雷提示

项目场景:

ns3中要通过Netanim实现可视化,按照信息网络建模与仿真实验指导书3步骤将会出现不少奇奇怪怪的报错,而且使用aptitude并不能解决(包有冲突)在这里,给出解决方案。
in short,安装NetAnim不要看那个实验指导书,看这里就行。

原因分析:

在官网安装文档中我们可以看到

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

因此 不要安装qt4,安装qt5!

apt-get install qt5-default mercurial

安装教程:

1. 安装qt5

apt-get install qt5-default mercurial

2.编译NetAnim

先cd到netanim-3.108目录,然后输入以下指令

qmake NetAnim.pro

然后输入

make

在这里插入图片描述
ls一下会看到很多很多的cpp文件。

3. 打开NetAnim

输入指令:

./NetAnim

就会出来这样的NetAnim啦!在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/weixin_43622586/article/details/109754725
今日推荐