体系结构说明:
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/