Minisky

好记性不如个烂笔头,记一些有用的东西!
  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

[转]Iperf tool for Android

Posted on 2009-09-09 10:07  Minisky  阅读(2588)  评论(0编辑  收藏  举报
Steps to generate iperf running on Android

1. download iperf source from sourceforge.net,http://sourceforge.net/projects/iperf/

2. download toolchain from codesourcery,http://www.codesourcery.com/sgpp/lite/arm/portal/release644

3. enter iperf source folder, run configure command
   $./configure –host=arm-linux CXX=$(PATH_OF_arm-none-linux-gnueabi-g++) CXXFLAGS=-static
     CC=$(PATH_OF_arm-none-linux-gnueabi-gcc) CFLAGS=-static

4. make
notes:
   If error liking “Reporter.o:Reporter.c:(.text+0xedc): more
 undefined references to `rpl_malloc'”, modify config.h, and comment
 the line “#define malloc rpl_malloc”, then make again

5 generated iperf can run on Android platform.