wget 交叉编译(uclibc's spawn.h is not detected right)

来源:互联网 发布:网络设计师是什么 编辑:程序博客网 时间:2024/06/05 06:19

如果有帮助,请点个赞;如果有错误,请指出;如果转载,请注明出处)


关键词:

(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;




    IT从业人员需要及时关注技术动态,但是互联网的内容却过于离散,好东西往往隐藏得很深。现在可以在微信公众号里面
    搜索关注“小鱼儿的IT技术分享”,订阅我为大家每天汇总的IT技术信息。欢迎大家关注!
      有兴趣的请点击《与IT技术相关的微信公众号》


0 0