[转]Iperf tool for Android

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.
原文地址:https://www.cnblogs.com/cnhome/p/1563056.html