把需要编译的 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
阅读(4875) | 评论(0) | 转发(0) |