配置依赖
更新apt
sudo apt update
![![[Pasted image 20240826172206.png]]](https://i-blog.csdnimg.cn/direct/7d49ad73fe8e4349978eb005bcf07e6b.png)
使用官方指令安装依赖
sudo apt install build-essential ccache ecj fastjar file g++ gawk \
gettext git java-propose-classpath libelf-dev libncurses5-dev \
libncursesw5-dev libssl-dev python python2.7-dev python3 unzip wget \
python3-distutils python3-setuptools python3-dev rsync subversion \
swig time xsltproc zlib1g-dev
![![[Pasted image 20240826172453.png]]](https://i-blog.csdnimg.cn/direct/c5d7cd46392240a08c9be25c20b4ec3b.png)
配置源码
建立文件夹并进入
![![[Pasted image 20240826173013.png]]](https://i-blog.csdnimg.cn/direct/0761b357b2ef4afea84cea4b668b4add.png)
在文件夹下克隆openwrt镜像仓库
git clone https://gitee.com/openwrt_repo/openwrt.git
进入克隆的文件夹里并更新feeds.conf.default
![![[Pasted image 20240826173402.png]]](https://i-blog.csdnimg.cn/direct/0be346f94ff940459edbf59507852064.png)
src-git packages https://gitee.com/SAMLIK/packages.git
src-git luci https://gitee.com/SAMLIK/luci.git
src-git routing https://gitee.com/SAMLIK/routing.git
src-git telephony https://gitee.com/SAMLIK/telephony.git
克隆其他文件
./scripts/feeds update -a
出现版本问题
![![[Pasted image 20240826182843.png]]](https://i-blog.csdnimg.cn/direct/10b78ea61c5a475eb677f835b3b6c31c.png)
更新Python版本,与gcc版本
sudo apt install gcc-8 g++-8
sudo apt install python3.7
sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.7 1
sudo apt install python3-distutils
sudo apt install python3-venv python3-dev
(ps) 单句执行
再次更新
./scripts/feeds update -a
![![[Pasted image 20240826183307.png]]](https://i-blog.csdnimg.cn/direct/79a803656bf74ec299166df714ecb823.png)
下载其他依赖
./scripts/feeds install -a
(ps)依赖包问题
![![[Pasted image 20240826183802.png]]](https://i-blog.csdnimg.cn/direct/f01391849b1143558c7e04b5c9bb724f.png)
进入package/feeds/telephony/freeswitch/Makefile
- line 323: +libpcre \ ----> +libpcre2
![![[Snipaste_2024-08-26_18-42-57.png]]](https://i-blog.csdnimg.cn/direct/55bfe853abd74c2a83092314208a3f4b.png)
再次运行指令
./scripts/feeds install -a
![![[Pasted image 20240826184519.png]]](https://i-blog.csdnimg.cn/direct/d6d0181d71574abdac0f513a919cdcf5.png)
make menuconfig
图形化配置界面
make menuconfig
(ps)出现报错make -s -C scripts/config mconf: build failed. Please re-run make with -j1 V=s or V=sc for a higher verbosity level to see what’s going on时
sudo apt-get install libncurses5-dev
sudo apt-get install pkg-config
配置成功
![![[Pasted image 20240826185035.png]]](https://i-blog.csdnimg.cn/direct/04bf236c081b44f78b2c3ea43c68ca4b.png)