按照官方文档的说法一步步来,需要openwrt sdk和scutclient的Makefile文件即可。在编译的过程主要遇到以下两个问题:

1. awk

1
2
3
4
5
6
……
awk: include/scan.awk: line 21: function asort never defined
awk: include/scan.awk: line 21: function asort never defined
awk: include/scan.awk: line 21: function asort never defined
awk: include/scan.awk: line 21: function asort never defined
……

这是因为没有安装gawk

1
sudo apt install gawk

2. ccache

1
2
3
……
configure: error: C compiler cannot create executables
……

这是因为没有安装ccache

1
sudo apt install ccache