openwrt 编译遇到的问题

来源:互联网 发布:mac双系统文件共享 编辑:程序博客网 时间:2024/06/06 19:41

编译之前需要先装几个配件

./scripts/feeds update -a 

./scripts/feeds install -a

sudo apt-get install libssl-dev

说明:

Feeds是OpenWRT环境所需要的软件包套件,比较重要的feeds有:

‘pacakges’:一些额外的基础路由器特性软件


‘LuCI’:OpenWRT默认的GUI


‘Xwrt’:另一种可选的GUI界面

libssl-dev是OpenSSL通用库,那么OpenSSL又是什么:
OpenSSL简介: 
        SSL也即Secure Socket Layer,是由网景公司为了传输敏感数据而提出的协议。SSL使用私钥加密传输的数据,防止被窃听。SSL最普遍的使用适合和浏览器结合使用,但是其他很多的应用也可以使用SSL。一般而言,使用了SSL的URL以https开头。  OpenSSL是广泛使用的商业级SSL工具,由Eric A. Young和Tim J.Hudson开发的库SSLeay。  X.509是ITU-T发布的数字证书规范。它规定了确定个人或计算机系统身份确认所需的信息和属性,用于安全管理和发布英特网的数字签名证书。OpenSSL广泛应用X.509。

安装完前面的后 调编译选项界面 make menuconfig 还是会出现下面的错误


Build dependency: Please install the Subversion client



/home/cjx/openwrt/openwrt/include/prereq.mk:12: recipe for target 'prereq' failed
Prerequisite check failed. Use FORCE=1 to override.
/home/cjx/openwrt/openwrt/include/toplevel.mk:151: recipe for target 'staging_dir/host/.prereq-build' failed

make: *** [staging_dir/host/.prereq-build] Error 1



这是没有装SVN导致的 安装svn即可

sudo apt-get install subversion


make的时候还是会出现下面的问题

make[5]: Entering directory '/home/cjx/openwrt/openwrt/build_dir/host/e2fsprogs-1.43.1'
Makefile:361: recipe for target 'docs' failed
make[5]: [docs] Error 1 (ignored)
make[5]: Leaving directory '/home/cjx/openwrt/openwrt/build_dir/host/e2fsprogs-1.43.1'
make[4]: Leaving directory '/home/cjx/openwrt/openwrt/build_dir/host/e2fsprogs-1.43.1'
touch /home/cjx/openwrt/openwrt/build_dir/host/e2fsprogs-1.43.1/.built
make[3]: Leaving directory '/home/cjx/openwrt/openwrt/tools/e2fsprogs'
make[2]: Leaving directory '/home/cjx/openwrt/openwrt'
tools/Makefile:133: recipe for target '/home/cjx/openwrt/openwrt/staging_dir/target-mipsel_24kec+dsp_musl-1.1.16/stamp/.tools_install_yynyynynynyyyyyyynyyynyyyyyyyyynyyyyynnyynynnyyynnnyy' failed
make[1]: *** [/home/cjx/openwrt/openwrt/staging_dir/target-mipsel_24kec+dsp_musl-1.1.16/stamp/.tools_install_yynyynynynyyyyyyynyyynyyyyyyyyynyyyyynnyynynnyyynnnyy] Error 2
make[1]: Leaving directory '/home/cjx/openwrt/openwrt'
Build failed - please re-run with -j1 to see the real error message
/home/cjx/openwrt/openwrt/include/toplevel.mk:192: recipe for target 'world' failed
make: *** [world] Error 1



不知道怎么解决 换了一个版本就好了