在UBUNTU环境下LEDE SDK中编译apfree wifidog
前期准备工作
#使用主目录
cd ~
#从GitHub拉取lede代码,放在lede目录下
git clone https://github.com/KunTengRom/kunteng-lede-17.01.4.git lede
cd lede
#返回上级目录
cd ..
#进入lede目录
cd lede/
安装依赖
如果遇到如下问题,则需要安装编译依赖包
Build dependency: Please install the GNU C++ Compiler (g++)
Build dependency: Please reinstall the GNU C++ Compiler - it appears to be broken
Build dependency: Please install ncurses. (Missing libncurses.so or ncurses.h)
Build dependency: Please install a static zlib. (Missing libz.a or zlib.h)
sudo apt-get install g++ unzip libncurses5-dev zlib1g-dev -y
编译配置
make menuconfig
Target System (MediaTek Ralink MIPS) ---> │ │
Subtarget (MT7628 based boards) ---> │ │
Target Profile (Default Profile) ---> │ │
- 你需要选择你的目标硬件平台
Target System
- 在
> Network > Captive Portals
中选定< > apfree_wifidog
- 按两下空格变
<*> apfree_wifidog
- 选择
< Save >
保存配置文件 - 按两次
ESC
退出
编译
# -j4 表示4线程编译,速度会比较快
# V=s 表示显示错误信息
make -j4 V=s
编译完成之后目标文件在./bin/packages/mipsel_24kc/base/apfree_wifidog_2.10.1437-1_mipsel_24kc.ipk
也可以采用如下的方式找到编译完成的包
#列出目录以及文件
tree ./bin/
#查找apfree
find ./bin/ | grep apfree
感谢
感谢 @Echowxsy 提供的编译教材,该教程在其基础上完成
联系我们
加qq群讨论 331230369