170 字
1 分钟
OpenWrt编译常见问题与解决方案

用不到的v2ray#

5674560e276ad04b934d9e948f6a09e7.png Network->Web Servers/Proxies->v2ray-plugin,取消勾选

用不上的geoview#

make[3]: *** [Makefile:51: /mnt/openwrt/x86/build_dir/target-x86_64_musl/geoview-0.1.2/.built] Error 1
make[3]: Leaving directory '/mnt/openwrt/x86/feeds/packages/net/geoview'
time: package/feeds/packages/geoview/compile#0.17#0.09#180.33
ERROR: package/feeds/packages/geoview failed to build.
make[2]: *** [package/Makefile:116: package/feeds/packages/geoview/compile] Error 1

Netowork->IP Addresses and Names->geoview,取消勾选
也可以尝试:

export GOPROXY=https://mirrors.aliyun.com/goproxy/
或者
export GOPROXY=https://goproxy.cn

创建不了venv#

*** Ouch! ***
Python's ensurepip module is not found.
It's normally part of the Python standard library, maybe your distribution packages it separately?
Either install ensurepip, or alleviate the need for it in the first place by installing pip and setuptools for '/mnt/openwrt/x86/staging_dir/host/bin/python3'.
(Hint: Debian puts ensurepip in its python3-venv package.)
ERROR: python venv creation failed

sudo apt install python3-venv

mt76无法编译#

ERROR: module '/mnt/openwrt/x86/build_dir/target-x86_64_musl/linux-x86_64/mt76-2024-04-04-8f301a5c/mt76-connac-lib.ko' is missing.

参考 https://github.com/coolsnowwolf/lede/issues/13130

使用这个 80211 https://github.com/sbwml/package_kernel_mac80211

使用 openwrt 上游最新的 mt76 https://github.com/openwrt/openwrt/tree/openwrt-24.10/package/kernel/mt76
加上这两个 patch https://github.com/sbwml/r4s_build_script/tree/master/openwrt/patch/mt76/patches

最终换官方源码了,不用lede啥事没有=-=
ba7c1ea5f173ab804705f338c5e671d9.png

OpenWrt编译常见问题与解决方案
https://iiii.fun/posts/openwrt/compile/openwrt-compile-issues/
作者
慶靈
发布于
2025-04-06
许可协议
CC BY-NC-SA 4.0