OpenWrt x86 添加 ssr-plus

前几天编译openwrt x86 ,使用命令git pull时,makefile配置删除了ssr-plus,GitHub相关的代码也都删除了。这可怎么办呀?幸好以前pi4编译过,代码是git没有了,但makefile里的相关驱动没有删除,只是取消了选择。

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
WARNING: Makefile 'package/tl8517.com/luci-app-ssr-plus/Makefile' has a dependency on 'shadowsocksr-libev-alt', which does not exist
WARNING: Makefile 'package/tl8517.com/luci-app-ssr-plus/Makefile' has a dependency on 'pdnsd-alt', which does not exist
WARNING: Makefile 'package/tl8517.com/luci-app-ssr-plus/Makefile' has a dependency on 'microsocks', which does not exist
WARNING: Makefile 'package/tl8517.com/luci-app-ssr-plus/Makefile' has a dependency on 'dns2socks', which does not exist
WARNING: Makefile 'package/tl8517.com/luci-app-ssr-plus/Makefile' has a dependency on 'shadowsocksr-libev-ssr-local', which does not exist
WARNING: Makefile 'package/tl8517.com/luci-app-ssr-plus/Makefile' has a dependency on 'simple-obfs', which does not exist
WARNING: Makefile 'package/tl8517.com/luci-app-ssr-plus/Makefile' has a dependency on 'tcpping', which does not exist
WARNING: Makefile 'package/tl8517.com/luci-app-ssr-plus/Makefile' has a dependency on 'v2ray-plugin', which does not exist
WARNING: Makefile 'package/tl8517.com/luci-app-ssr-plus/Makefile' has a dependency on 'v2ray', which does not exist
WARNING: Makefile 'package/tl8517.com/luci-app-ssr-plus/Makefile' has a dependency on 'trojan', which does not exist
WARNING: Makefile 'package/tl8517.com/luci-app-ssr-plus/Makefile' has a dependency on 'ipt2socks', which does not exist
WARNING: Makefile 'package/tl8517.com/luci-app-ssr-plus/Makefile' has a dependency on 'redsocks2', which does not exist
WARNING: Makefile 'package/tl8517.com/luci-app-ssr-plus/Makefile' has a dependency on 'shadowsocksr-libev-server', which does not exist
WARNING: Makefile 'package/feeds/packages/seafile-server/Makefile' has a build dependency on 'libevent2-openssl', which does not exist
WARNING: Makefile 'package/feeds/packages/seafile-server/Makefile' has a build dependency on 'libevent2-pthreads', which does not exist

pi4目录中查找以前编译的ssrplus安装文件:

在源码bin/aarch64_cortex-a72目录搜索”ssr-plus”,找到ssrplus的.ipk安装文件。将ssr-plus.ipk在安装好的x86系统中,使用命令opkg install文件。会提示缺少以下依赖:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Multiple packages (libpthread and libpthread) providing same name marked HOLD or PREFER. Using latest.
Multiple packages (libpthread and libpthread) providing same name marked HOLD or PREFER. Using latest.
Collected errors:
* satisfy_dependencies_for: Cannot satisfy the following dependencies for luci-app-ssr-plus:
* shadowsocksr-libev-alt
* kernel (= 5.4.33-1-9100f2f85d030b2d75515447a431bff7)
* microsocks
* dns2socks
* shadowsocksr-libev-ssr-local
* simple-obfs
* tcpping
* v2ray-plugin
* trojan
* ipt2socks
* redsocks2
* shadowsocksr-libev-server
* opkg_install_cmd: Cannot install package luci-app-ssr-plus.

在x86 makefile配置文件中选择相关依赖:

在lede根目录make menuconfig,使用‘/’搜索缺少依赖的文件名,找到文件的路径,按‘y’勾选。

保存退出,make编译。

重新编译的固件是不会显示ssrplus的,需要上传ssrplus的ipk文件,重新安装。提示如下:

x86 ssr-plus

刷新查看服务菜单,ssrplus就又回来了。

x86 ssr-plus

openwrt其他相关文章:

https://tl8517.com/category/system/openwrt/

lede源码:

https://github.com/coolsnowwolf/lede