netperf2 arm 移植(1:编译)

1.  下载

svn checkout http://www.netperf.org/svn/netperf2  netperf2

svn checkout http://www.netperf.org/svn/netperf4  netperf4

主要参考

2.  编译

 

root@zanget:~# cd netperf4/trunk

root@zanget:trunk#./configure CC=arm-linux-gcc --host=arm-linux --prefix=/opt/s3c-2416/rootfs/custom/netperf

configure: WARNING: If you wanted to set the --build type, don't use --host.

    If a cross compiler is detected then cross compile mode will be used.

 

//…

 

checking for sched_setaffinity... yes

checking for pkg-config... /usr/bin/pkg-config

checking for GLIB - version >= 2.6.0... no

*** Could not run GLIB test program, checking why...

*** The test program failed to compile or link. See the file config.log for the

*** exact error that occured. This usually means GLIB is incorrectly installed.

configure: error:

*** GLIB >= 2.6 is required to build netperf4; please make sure you have

*** the development headers installed. The latest version of GLIB is

*** always available at ftp://ftp.gnome.org/pub/gnome/sources/glib/.

 

搜索无果,切换为netperf2

 

root@zanget:~# cd netperf2/trunk

root@zanget:trunk#

./configure CC=arm-linux-gcc --host=arm-linux --prefix=/opt/s3c-2416/rootfs/custom/netperf

 

//…

 

checking types of arguments for select... int,fd_set *,struct timeval *

checking whether setpgrp takes no argument... configure: error: cannot check setpgrp when cross compiling

 

参考文章,打开configure搜索ac_cv_func_setpgrp_void,删掉行7220

{ echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5

echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6; }

if test "${ac_cv_func_setpgrp_void+set}" = set; then

echo $ECHO_N "(cached) $ECHO_C" >&6

else

if test "$cross_compiling" = yes; then

{ { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5

echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}

{ (exit 1); exit 1; };

}

else

cat >conftest.$ac_ext <<_ACEOF

/* confdefs.h. */

_ACEOF

 

root@zanget:trunk# make && make install

 

成功编译、安装后,就可到/opt/s3c-2416/rootfs/custom/netperf下找到相关文件了。之后只需要将他发布到板子上即可。

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值