编译步骤

以下是在Ubuntu上编译的步骤,其他相关包(luci,chinadns)步骤相同.

下载 Openwrt for WRT1900AC V2 SDK

sudo apt install build-essential subversion libncurses5-dev zlib1g-dev gawk gcc-multilib flex git-core gettext  
$cd ~/
$wget https://downloads.openwrt.org/chaos_calmer/15.05.1/mvebu/generic/OpenWrt-SDK-15.05.1-mvebu_gcc-4.8-linaro_uClibc-0.9.33.2_eabi.Linux-x86_64.tar.bz2
$tar xvf OpenWrt-SDK-15.05.1-mvebu_gcc-4.8-linaro_uClibc-0.9.33.2_eabi.Linux-x86_64.tar.bz2

下载Shadowsocks-libev for Openwrt 源码

$cd OpenWrt-SDK-15.05.1-mvebu_gcc-4.8-linaro_uClibc-0.9.33.2_eabi.Linux-x86_64
$git clone https://github.com/shadowsocks/openwrt-feeds.git package/feeds
$git clone https://github.com/shadowsocks/openwrt-shadowsocks.git package/shadowsocks-libev

编译Shadowsocks-libev

$make menuconfig
# 进入Network,确保选中了shadowsocks-libev
make package/shadowsocks-libev/compile V=99  

编译Luci-app-shadowsocks

$cd ~
$cd OpenWrt-SDK-15.05.1-mvebu_gcc-4.8-linaro_uClibc-0.9.33.2_eabi.Linux-x86_64
git clone https://github.com/shadowsocks/luci-app-shadowsocks.git package/luci-app-shadowsocks  
pushd package/luci-app-shadowsocks/tools/po2lmo  
make && sudo make install  
make menuconfig  
# 进入Applications,确保选中了luci-app-shadowsocks
make package/luci-app-shadowsocks/compile V=99  

安装

编译完成之后,将编译好的.ipk包上传到路由器的/tmp目录之中使用命令安装:

$opkg install /tmp/luci-app-shadowsocks*.ipk
$opkg install /tmp/shadowsocks-libev*.ipk

如果有提示缺少相关依赖,可上文章末尾的相关依赖链接里下载.

相关仓库