找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 1290|回复: 5

[openwrt(x86)] win10下使用ubuntu编译openwrt

[复制链接]
本帖最后由 901200221 于 2023-2-17 17:19 编辑

1.首先在win10应用商店安装Ubuntu22
2.安装编译依赖
sudo apt update -y
sudo apt full-upgrade -y
sudo apt install -y ack antlr3 aria2 asciidoc autoconf automake autopoint binutils bison build-essential \
bzip2 ccache cmake cpio curl device-tree-compiler fastjar flex gawk gettext gcc-multilib g++-multilib \
git gperf haveged help2man intltool libc6-dev-i386 libelf-dev libglib2.0-dev libgmp3-dev libltdl-dev \
libmpc-dev libmpfr-dev libncurses5-dev libncursesw5-dev libreadline-dev libssl-dev libtool lrzsz \
mkisofs msmtp nano ninja-build p7zip p7zip-full patch pkgconf python2.7 python3 python3-pip libpython3-dev qemu-utils \
rsync scons squashfs-tools subversion swig texinfo uglifyjs upx-ucl unzip vim wget xmlto xxd zlib1g-dev
3. 下载源代码,更新 feeds 并选择配置
       cd lede
    3.2缝合一些其他插件:
   https://github.com/kenzok8/small(源码)
   git pull
   ./scripts/feeds update -a
   ./scripts/feeds install -a
   make menuconfig
    3.3在固件中编译小猫咪(见回复)
4. 下载dl库(国内请尽量全局“师夷长技以制夷”)make -j4 download V=s
5. 编译make -j1 V=s
6. 再次编译 (适用于不更改配置功能和插件,仅升级)
   cd lede
   git pull
   ./scripts/feeds update -a && ./scripts/feeds install -a
   make defconfig
   make -j8 download
   PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin make -j$(($(nproc) + 1)) V=s

我的恩山、我的无线 The best wifi forum is right here.
虽然只是搬运,但还是应该为你的分享精神点赞

点评

自己尝试了很多次,发现有坑的地方就是缝合插件,综合两个方式。  详情 回复 发表于 2023-2-6 16:26
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| | 显示全部楼层
xiaowei9904 发表于 2023-2-6 15:44
虽然只是搬运,但还是应该为你的分享精神点赞

自己尝试了很多次,发现有坑的地方就是缝合插件,综合两个方式。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| | 显示全部楼层
自己的编译笔记。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| | 显示全部楼层
本帖最后由 901200221 于 2023-2-6 22:51 编辑

闭坑笔记:
# 将源码中的 `luci-app-openclash` 文件夹拷贝到 `OpenWrt` 项目的 `Package` 目录
# 进入makefile
make menuconfig
# 选择要编译的包
LuCI -> Applications -> luci-app-openclash
# 一般情况下,插件所需依赖此时已自动选中

添加wget
Nerwork -> File Transfer -> wget(nossl与试ssl)

添加web界面(y键选择n键排除)
LuCI > Collections -> Luci
添加兼容性依赖
LuCI > Modules -> luci-compat
添加中文
LuCI > Modules -> Translations -> Chinese Simplified
添加kmod-tun,TUN模式必须
Kernel modules -> Network Support -> kmod-tun
排除dnsmasq,由于默认会安装dnsmasq-full,这里需要排除dnsmasq,否则会冲突报错。
Base system -> dnsmasq
# 再次编译
make V=s

我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

谢谢   其实已经编译成功了  过来加深点记忆
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

欢迎大家光临恩山无线论坛上一条 /1 下一条

有疑问请添加管理员QQ86788181|手机版|小黑屋|Archiver|恩山无线论坛(常州市恩山计算机开发有限公司版权所有) ( 苏ICP备05084872号 )

GMT+8, 2024-4-28 18:26

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

| 江苏省互联网有害信息举报中心 举报信箱:js12377 | @jischina.com.cn 举报电话:025-88802724 本站不良内容举报信箱:68610888@qq.com 举报电话:0519-86695797

快速回复 返回顶部 返回列表