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

读好书,交益友

文章分类

全部博文(447)

文章存档

2023年(6)

2022年(29)

2021年(49)

2020年(16)

2019年(15)

2018年(23)

2017年(67)

2016年(42)

2015年(51)

2014年(57)

2013年(52)

2012年(35)

2011年(5)

分类: Android平台

2017-02-23 22:14:11

把需要编译的 makefile 下载到 package 目录下
git clone package/chinadns
git clone package/shadowvpn
git clone 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:=
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
阅读(4648) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~