linux命令 waf,常用waf命令

常用waf命令

一、配置及编译:

$ ./waf  configure [option]

$ ./waf

帮助:  $ ./waf --help

配置调试,优化调试:

$ ./waf -d  configure

: debug,optimized

改变flag:  $ CXXFLAGS="-O3" ./waf configure

或者: $CXX=g++-3.4 ./waf configure

编译的结果放在目录:build//srcpath

二、常见命令

1.开启例子及帮助:

$ ./waf configure --enable-examples --enable-tests

2.运行doxygen生成文档

$ ./waf --doxygen

3.运行代码分析:

$ ./waf configure --enable-gcov

$ ./waf --lcov-report

4.运行程序

$ ./waf --run "program [args]"

5.使用帮助工具运行waf

$ ./waf --run programname --command-template "... %s ..."

如: $ ./waf --run run-tests --command-template "valgrind %s"

6.使用shell调试

$ ./waf --shell

例: $./waf --shell

$cd build/debug/examples

$gdb first

7.清除整个build目录

$ ./waf distclean

8.创建一个发布压缩包,包含源代码目录中的所有文件

$ ./waf dist

9.强制禁止python bindings

$./waf --disable-python configure

10.让build系统使用sudo设置suid bit

$./waf --enable-sudo configure

11.重置waf

$cd  repos/ns-3-allinone

$ ./build.py

  • 0
    点赞
  • 5
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值