compile_mainline
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| compile_mainline [2020/11/13 00:10] – 创建 mangogeek | compile_mainline [2025/10/14 06:22] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | =====搭建编译环境===== | + | =====搭建编译环境(主线)===== |
| 编译OpenWrt需要Linux环境或mac环境,或win10下的WSL,或者安装虚拟机。 | 编译OpenWrt需要Linux环境或mac环境,或win10下的WSL,或者安装虚拟机。 | ||
| - | |||
| === Linux, | === Linux, | ||
| - | <wrap hi> | + | <wrap hi> |
| 编译前要安装以下依赖: | 编译前要安装以下依赖: | ||
| <code bash> | <code bash> | ||
| Line 18: | Line 17: | ||
| </ | </ | ||
| - | ===macOS(未测试Catalina)=== | + | ===macOS(未测试M1新平台)=== |
| 首先从APP Store中安装Xcode command line tools,再安装[brew]工具,接下来使用brew安装依赖: | 首先从APP Store中安装Xcode command line tools,再安装[brew]工具,接下来使用brew安装依赖: | ||
| <code bash> | <code bash> | ||
| Line 95: | Line 94: | ||
| 快速编译命令是$ make -j4 \\ | 快速编译命令是$ make -j4 \\ | ||
| 可能会由于环境或网络问题出错,想查看错误信息需要用 $ make V=s 命令 \\ | 可能会由于环境或网络问题出错,想查看错误信息需要用 $ make V=s 命令 \\ | ||
| - | 整个编译在dl文件夹完整的情况下持续1个小时左右,编译完会在bin/ | + | 整个编译在dl文件夹完整的情况下持续1个小时左右,编译完会在bin/ |
| openwrt-ramips-mt76x8-widora_neo-32m-squashfs-sysupgrade.bin | openwrt-ramips-mt76x8-widora_neo-32m-squashfs-sysupgrade.bin | ||
| | | ||
compile_mainline.1605226252.txt.gz · Last modified: (external edit)
