(如果有帮助,请点个赞;如果有错误,请指出;如果转载,请注明出处)
关键词:
(1)wget
(2)mips、openwrt
(3)error: --with-ssl=gnutls was given
(4)uclibc's spawn.h is not detected right
正文:
1.执行configure,生成 Makefile
./configure --build=i686-pc-linux-gnu --host=mips-openwrt-linux --prefix=$PWD/install --without-ssl
make CC=/home/ubuntu/workplace/sdk/toolchain/bin/mips-openwrt-linux-uclibc-gcc LD=/home/ubuntu/workplace/sdk/toolchain/bin/mips-openwrt-linux-uclibc-ld
2、注意事项
(1)遇到的问题:error: --with-ssl=gnutls was given , but GNUTLS is not available.
(2)解决办法: configure 的时候增加参数 --without-ssl
3、注意事项
(1)遇到的问题:uclibc's spawn.h is not detected right by packages using gnulib
and you end up with these errors. So your options are to feed in the cached
configuration to autconf e.g.
(2)原因分析:编译的时候找不到交叉编译对应的 spawn.h 文件
(2)解决办法:设置一下环境变量
STAGING_DIR=/home/ubuntu/workplace/sdk/toolchain:$STAGING_DIR
exportSTAGING_DIR;