参考 http://www.cnblogs.com/dabbei/archive/2013/07/17/3195855.html

下载NS3安装包ns-allinone-3.18.tar

1.在终端运行以下命令进行解压缩:

tar xvf ns-allinone-3.18.tar

2.进入ns-allinone-3.18目录 执行命令

./build.py

3.进入ns-allinone-3.18/ns-3.13目录,使用waf构建(waf是ns-3采用的基于Python的Build System)

./waf -d optimized configure

./waf -d debug configure

./waf

./waf -d debug --enable-sudo configure

./waf configure --enable-tests//使测试可用

./waf configure --enable-examples//使例子可用

4. 脚本运行

进入ns-allinone-3.18目录

./build.py --enable-examples --enable-tests//执行后才以下语句才有用

./waf --run hello-simulator//不加.cc

进入ns-allinone-3.18/ns-3.13目录

会输出如下信息: hello simulator

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-09-19
  • 2021-05-28
  • 2021-07-10
  • 2022-12-23
  • 2021-10-25
  • 2020-11-13
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-10-02
  • 2022-12-23
  • 2021-12-04
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案