今天在新一台电脑安装Kodo,以前曾安装过,以为可以很简单,但还是花了不少时间,所以决定简单记录下,方便日后使用。
1.安装Waf
Kodo是用Waf编译的(想想make),关于Waf介绍,可以阅读如下两句英文[1]:
Waf is a Python-based framework for configuring, compiling and installing applications. Waf is also a framework for creating custom build systems and package distribution systems.
Waf is a build automation tool designed to assist in the automatic compilation and installation of computer software[1].
在这里选择版本下载,解压,进入目录,运行./waf即可。
2. 安装Kodo
在这里下载或者用git clone下载,命令如下:
git clone https://github.com/steinwurf/kodo.git
解压,进入目录,运行python waf configure做编译环境检查。如果提示Could not configure a C++ compiler!,那就 安装clang++,命令如下:
sudo apt-get install clang
然后运行python waf 编译Kodo。编译完,可以运行自带例子测试安装是否成功,命令如下:
python waf –options=run_tests,run_always 或者是
./build/linux/examples/decode_simple/decode_simple
2. Kodo学习资料
官方网站:没什么有价值的东西
Kodo手册: 写得相当简单,不过里面的FAQ值得一看
Kodo API文档: 编程时很有用
Kodo Github: Kodo所有相关的包都有,包括kodo-ns3-examples
Kodo Google Groups: 不是很活跃,Kodo开发人员会回复,挺有用的。
参考资料:
[1]维基百科词条:Waf
微信赞赏
支付宝赞赏
你好,博主!我正在做毕业设计,需要用到https://github.com/steinwurf/kodo.git。但是kodo.git已经失效,被kodo-rlnc.git等代替。你能不能把你clone到电脑里的kodo文件发我一份,万分感激!!!
刚才看了下,
kodo.git
的确失效。我之前clone的kodo.git
在我旧电脑里,不在身边,没法没给你。用kodo-rlnc-c,不可以吗?