compile
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| compile [2019/12/12 03:50] – 外部编辑 127.0.0.1 | compile [2025/10/14 06:22] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | =====做好的虚拟机===== | ||
| + | https:// | ||
| + | 分卷解压,系统密码:111111 | ||
| =====搭建编译环境===== | =====搭建编译环境===== | ||
| - | 编译OpenWrt需要Linux环境或mac环境,不支持Windows,如果要在Windows上开发,那么肯定是要装虚拟机的。 | + | 编译OpenWrt需要Linux环境或mac环境,或win10下的WSL(Ubuntu16.04),或者安装虚拟机。 |
| - | ===若不想折腾,下载虚拟机(vmdk格式,默认virtualbox,可能需要重新安装增强功能)=== | ||
| - | [[http:// | ||
| - | === Linux(建议使用Ubuntu14.04/16.04 32位/ | + | === Linux,WSL(建议使用Ubuntu16.04)=== |
| <wrap hi> | <wrap hi> | ||
| <wrap hi> | <wrap hi> | ||
| Line 21: | Line 22: | ||
| $ sudo apt-get install libc6:i386 libncurses5: | $ sudo apt-get install libc6:i386 libncurses5: | ||
| </ | </ | ||
| + | |||
| ===macOS(未测试Catalina)=== | ===macOS(未测试Catalina)=== | ||
| 首先从APP Store中安装Xcode command line tools,再安装[brew]工具,接下来使用brew安装依赖: | 首先从APP Store中安装Xcode command line tools,再安装[brew]工具,接下来使用brew安装依赖: | ||
| Line 51: | Line 53: | ||
| <code bash> | <code bash> | ||
| $ git clone https:// | $ git clone https:// | ||
| - | //或者 | + | 如果太慢就用镜像地址 |
| - | $ git clone https://dev.tencent.com/u/widora/p/ | + | $ git clone https://github.com.cnpmjs.org/ |
| </ | </ | ||
| Line 61: | Line 64: | ||
| 更新完后,由于本地编译环境有上次的残留,会造成异常,最好做如下清理工作(在openwrt_widora文件夹目录内): | 更新完后,由于本地编译环境有上次的残留,会造成异常,最好做如下清理工作(在openwrt_widora文件夹目录内): | ||
| - make clean | - make clean | ||
| - | - rm .config | ||
| - | - rm -r tmp/ | ||
| - / | - / | ||
| - / | - / | ||
| + | - rm -r tmp/ | ||
| + | - rm .config | ||
| 重启ubuntu系统后 | 重启ubuntu系统后 | ||
| - make menuconfig | - make menuconfig | ||
| Line 72: | Line 75: | ||
| - | 因为众所周知的原因,在国内编译OpenWrt很困难,有很多包被墙无法下载。 | + | 因为众所周知的原因,在国内编译OpenWrt很困难,有很多包被墙无法下载。我们提供了一个dl镜像的链接:https://pan.baidu.com/s/ |
| - | 我们提供了一个dl镜像的地方,推荐如果编译过程中发现某些包找不到,那么就来[[http://dl.widora.cn/dl]]找一下,下载后放到openwrt_widora根目录中的dl文件夹内即可,减少编译时间。 | + | |
| 更新并安装软件包 | 更新并安装软件包 | ||
compile.1576122639.txt.gz · Last modified: (external edit)
