-
Notifications
You must be signed in to change notification settings - Fork 827
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
go版本到1.22后,编译碰到的问题和解决经过,希望能给和我一样的小白一点参考。 #148
Comments
把软件源放在feeds.config.default里面第一行,然后再删掉重复的mosdns和用不到的一些插件,编译正常了。 |
谢谢,我马上试试,结果回来报! |
如何成功的?可以具体说一下吗,谢谢。 |
smpackage里面插件更多也更新😎 |
自己用,用不了这么多的插件,基本几个有就行了。对于用kenzo和small,我是这么设置的。 |
我来说明下吧 分三步
sed -i '1i src-git kenzo https://github.com/kenzok8/openwrt-packages' feeds.conf.default
sed -i '2i src-git small https://github.com/kenzok8/small' feeds.conf.default 或者
./scripts/feeds update -a 如果是拉取small-package的,可以试着删除下面插件 rm -rf feeds/smpackage/{base-files,dnsmasq,firewall*,fullconenat,libnftnl,nftables,ppp,opkg,ucl,upx,vsftpd-alt,miniupnpd-iptables,wireless-regdb} Lean源码里可能冲突的插件,删除 rm -rf feeds/luci/applications/luci-app-mosdns && rm -rf feeds/packages/net/{alist,adguardhome,mosdns,smartdns} 拉取最新版golang编译 rm -rf feeds/packages/lang/golang
git clone https://github.com/kenzok8/golang feeds/packages/lang/golang
./scripts/feeds install -a && make menuconfig 一键命令如下:(双仓库) sed -i '1i src-git kenzo https://github.com/kenzok8/openwrt-packages' feeds.conf.default
sed -i '2i src-git small https://github.com/kenzok8/small' feeds.conf.default
./scripts/feeds update -a && rm -rf feeds/luci/applications/luci-app-mosdns && rm -rf feeds/packages/net/{alist,adguardhome,mosdns,smartdns}
rm -rf feeds/packages/lang/golang
git clone https://github.com/kenzok8/golang feeds/packages/lang/golang
./scripts/feeds install -a
make menuconfig 一键命令如下:(单仓库) sed -i '1i src-git smpackage https://github.com/kenzok8/small-package' feeds.conf.default
./scripts/feeds update -a && rm -rf feeds/luci/applications/luci-app-mosdns && rm -rf feeds/packages/net/{alist,adguardhome,mosdns,smartdns}
rm -rf feeds/smpackage/{base-files,dnsmasq,firewall*,fullconenat,libnftnl,nftables,ppp,opkg,ucl,upx,vsftpd-alt,miniupnpd-iptables,wireless-regdb}
rm -rf feeds/packages/lang/golang
git clone https://github.com/kenzok8/golang feeds/packages/lang/golang
./scripts/feeds install -a
make menuconfig |
已经添加 |
我是X86云编译,错误和你差不多一样。 |
兄弟有眉目了吗 这么解决啊? |
参考这个:#151 (comment) P3TERX 云编译的话,在 diy-part2.sh 中添加: sed -i 's#GO_PKG_TARGET_VARS.*# #g' feeds/packages/utils/v2dat/Makefile |
这次用你说的双库就成功了,非常感谢 |
我的步驟是:1、拉取了lede的源码 |
|
确实写混了……kenzo大佬在一篇回复写得非常清晰明了,可以翻一下 |
用以上的方式好了十多天,现在又出问题了!! |
chinadns-ng编译错误,有拉取新源码吗?chinadns-ng已经升级到2024.03.25
|
重新拉库也是一样的错误提醒发自我的 iPhone在 2024年3月27日,17:44,有種 ***@***.***> 写道:
chinadns-ng编译错误,有拉取新源码吗?
git pull 一下
如果不清楚就
./scripts/feeds clean
./scripts/feeds update -a
./scripts/feeds install -a
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
|
我按照你的方法成功编译,但是不能选择modns |
现在又错误 sed -i '1i src-git kenzo https://github.com/kenzok8/openwrt-packages' feeds.conf.default make V=s -j1 后 |
各位大佬,我试過了各位大佬方法也有同樣是smartdns错误,請問怎么解决? |
把smartdns编译进固件里就好了。 |
git clone https://github.com/coolsnowwolf/lede
|
以下是我正常能运行的 |
终于找到原因了,原来是代理引起,引至下载档案不全,所以什样都不能完全下载正常包,谢谢了 |
你好。 官方源码,用了新库编译会提示很多go库找不到 make[3]: *** [Makefile:62: /home/wy/git/openwrt/build_dir/target-x86_64_musl/hysteria-app-v2.5.0/.built] Error 1 |
golang 升级了 kenzok8/golang@66749c8 |
你好, v2ray插件编译报错,麻烦帮看看 Building targets make[2]: *** [Makefile:44: /home/wy/git/openwrt/build_dir/target-x86_64_musl/v2ray-plugin-5.15.1/.built] Error 1 |
go版本更新以后,用的lean大的源码,碰到过mosdns编译错误,v2ray-plugin编译不过去,等等各种奇怪问题。解决按以下方式解决了。
1、用kenzok8大佬提供的go版本替代原来的go。
2、加入的软件源放在最前面。
3、听kenzok8大佬的,把两个mosdns删掉一个。
The text was updated successfully, but these errors were encountered: