移植iperf到android

来源:互联网 发布:inquire是什么软件 编辑:程序博客网 时间:2024/05/29 12:19
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, andcomment
the line “#define malloc rpl_malloc”, then make again

5 generated iperf can run on Android platform.
原创粉丝点击