rtorrent交叉编译

体系结构说明:

build system type... i686-pc-linux-gnu

host system type... mipsel-unknown-linux-gnu

一、 所需代码:

libsigc++-2.2.3  libsigc++-2.2.3.tar.gz  libtorrent-0.12.2.tar.gz  rtorrent-0.8.2.tar.gz

openssl-0.9.8b.tar.tar        curl-7.19.3.tar.gz

二、 [sutianzhu@localhost libsigc++-2.2.3]$ 安装:

./configure --prefix=/opt/toolchain/smp86xx_toolchain_2.8.0.1/build_mipsel_nofpu/staging_dir/ --host=mipsel-linux

Make&&make install

二、 openssl-0.9.8b.tar.tar 安装:

【由于缺少此文件

/opt/toolchain/smp86xx_toolchain_2.8.0.1/build_mipsel_nofpu/staging_dir/include/openssl/rc4.h

./Configure linux-mipsel -DB_ENDIAN linux:' mipsel-linux-gcc' --prefix=/opt/toolchain/smp86xx_toolchain_2.8.0.1/build_mipsel_nofpu/staging_dir

Make&&make install

添加此行 vim Configure

1170 $ranlib="mipsel-linux-ranlib";

三、 [root@localhost curl-7.19.3] 编译:

./configure --prefix=/opt/toolchain/smp86xx_toolchain_2.8.0.1/build_mipsel_nofpu/staging_dir/ --host=mipsel-linux  --with-ssl=/opt/toolchain/smp86xx_toolchain_2.8.0.1/build_mipsel_nofpu/staging_dir/ssl --with-zlib=/home/sutianzhu/proj-mips-linux/zlib-1.2.3/zlibinstall/ --with-gnu-ld=mipsel-linux-ld

 

三、 错误解决:

1 /dev/urandom execinfo.h 不能运行问题:

修改有关选项:让对应项等于 “no”

具体如下:

错误:

checking for execinfo.h... configure: error: cannot run test program while cross compiling

修改: 19777   if test "$cross_compiling" =no ; then

错误:不能打开 /dev/urandom 或者不存在

修改: 25471   test "$cross_compiling" = no &&

2 、在板子上运行出现如下问题:

Error opening terminfo:vt102

则在板子上修改如下文件:

export TERM=vt100

        export TERMINFO=/mnt/sj/terminfo

        mkdir /mnt/sj/terminfo/v -p

         cp /usr/share/terminfo/v/vt100  /mnt/sj/terminfo/v/

 

转载于:https://my.oschina.net/stz/blog/726022

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值