Chinaunix首页 | 论坛 | 博客
  • 博客访问: 2485436
  • 博文数量: 357
  • 博客积分: 1241
  • 博客等级: 中尉
  • 技术积分: 4864
  • 用 户 组: 普通用户
  • 注册时间: 2011-01-27 06:48
个人简介

下死功夫,动活脑筋;读好书,交益友

文章分类

全部博文(357)

文章存档

2019年(12)

2018年(23)

2017年(67)

2016年(45)

2015年(51)

2014年(58)

2013年(53)

2012年(42)

2011年(6)

分类: Android平台

2017-02-23 22:14:11

把需要编译的 makefile 下载到 package 目录下
git clone https://github.com/aa65535/openwrt-chinadns.git package/chinadns
git clone https://github.com/aa65535/openwrt-shadowvpn.git package/shadowvpn
git clone https://github.com/shadowsocks/openwrt-shadowsocks.git package/shadowsocks-libev
进入 network 选单,ChinaDNS ShadowVPN  shadowsocks-libev/


出现
checking whether mbedtls supports Cipher Feedback mode or not... configure: error: MBEDTLS_CIPHER_MODE_CFB required
make[3]: *** [/vm/openwrt/openwrt/build_dir/target-x86_64_glibc-2.22/shadowsocks-libev//shadowsocks-libev-3.0.2-2/.configured_yyyyyyyy] Error 1
make[3]: Leaving directory `/vm/openwrt/openwrt/package/shadowsocks-libev'
make[2]: *** [package/shadowsocks-libev/compile] Error 2
make[2]: Leaving directory `/vm/openwrt/openwrt'
make[1]: *** [/vm/openwrt/openwrt/staging_dir/target-x86_64_glibc-2.22/stamp/.package_compile] Error 2
make[1]: Leaving directory `/vm/openwrt/openwrt'
make: *** [world] Error 2
使用mbedtls 2.3.0 如下进入openwrt/package/libs/mbedtls/patches,只保留001-Fixes_missing_dependency_in_ssl.patch,删除200-config.patch和
999-tweak-config-for-shadowsocks.patch,因为版本不一样,不会patch成功
出现


checking for sodium_init in -lsodium... yes
configure: error: Wrong libsodium: version >= 1.0.8 required
make[2]: *** [/vm/openwrt/openwrt/build_dir/target-x86_64_glibc-2.22/shadowsocks-libev//shadowsocks-libev-3.0.2-2/.configured_yyyyyyyy] Error 1
make[2]: Leaving directory `/vm/openwrt/openwrt/package/shadowsocks-libev'
make[1]: *** [package/shadowsocks-libev/compile] Error 2
make[1]: Leaving directory `/vm/openwrt/openwrt'
make: *** [package/shadowsocks-libev/compile] Error 2
li@li-shuangbin:/vm/openwrt/openwrt$ make menuconfig
tmp/.config-package.in:26182:error: recursive dependency detected!
tmp/.config-package.in:26182: symbol PACKAGE_libncursesw is selected by PACKAGE_libncursesw


进入 openwrt/feeds/packages/libs/libsodium
编辑Makefile文件如下


include $(TOPDIR)/rules.mk


PKG_NAME:=libsodium
PKG_VERSION:=1.0.10
PKG_RELEASE:=1


PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://download.libsodium.org/libsodium/releases/
PKG_MD5SUM:=ea89dcbbda0b2b6ff6a1c476231870dd

出现
configure: error: Couldn't find libudns. Try installing libudns-dev or udns-devel.
make[3]: *** [/vm/openwrt/openwrt/build_dir/target-x86_64_glibc-2.22/shadowsocks-libev//shadowsocks-libev-3.0.2-2/.configured_yyyyyyyy] Error 1
make[3]: Leaving directory `/vm/openwrt/openwrt/package/shadowsocks-libev'
make[2]: *** [package/shadowsocks-libev/compile] Error 2
make[2]: Leaving directory `/vm/openwrt/openwrt'
make[1]: *** [/vm/openwrt/openwrt/staging_dir/target-x86_64_glibc-2.22/stamp/.package_compile] Error 2
make[1]: Leaving directory `/vm/openwrt/openwrt'
make: *** [world] Error 2

编译udns
ln -s  ../../../package/libs/openwrt-udns/ openwrt-udns
./scripts/feeds install -a

 make package/shadowsocks-libev/compile V=99
阅读(2628) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~
评论热议
请登录后评论。

登录 注册