---
# System prepended metadata

title: NS-3 搭配 NetAnim 可視化網路拓譜

---

## NetAnim 使用筆記
### Prerequisites
* mercurial
* QT5 development packages (recommended version > 5.4)
* Microsoft Visual C++ (Visual Studio 2010 and over http://www.microsoft.com/visualstudio/eng/products/visual-studio-express-products) or MinGw compiler

Check for Prerequisites
```shell
$ hg --version
Mercurial Distributed SCM (version 6.7.2)
(see https://mercurial-scm.org for more information)

Copyright (C) 2005-2023 Olivia Mackall and others
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
```
```shell
$ qmake --version
QMake version 3.1
Using Qt version 5.15.13 in /usr/lib/x86_64-linux-gnu
```
```shell
$ gcc --version
gcc (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0
Copyright (C) 2023 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
```

### Downloading NetAnim
* NetAnim 3.108
```shell
$ hg clone http://code.nsnam.org/netanim
```

### Building and Starting NetAnim
```shell
$ cd netanim
$ make clean
$ qmake NetAnim.pro
$ make
```

### 使用 NetAnim
[NS3中NetAnim的使用](https://blog.csdn.net/Mary19920410/article/details/70844487)
### 結果
![nnm6r-nt3uu](https://hackmd.io/_uploads/rk2i-ob01x.gif)




## 參考
[[官方文件] NetAnim 3.108](https://www.nsnam.org/wiki/NetAnim_3.108)
[NS-3学习---可视化NetAnim使用笔记](https://zhuanlan.zhihu.com/p/690655985)
[NS3中NetAnim的使用](https://blog.csdn.net/Mary19920410/article/details/70844487)