-
Notifications
You must be signed in to change notification settings - Fork 486
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
登录失败 3.8.0版本 termux安卓手机 #107
Comments
老问题了,安卓平台上出现dns错误,目前没有完善的解决方案,有人换流量发现可以了 |
好吧,非常不稳定,谢谢 |
参考 #3 |
成功了!非常感谢大神👍 |
谢谢回复,有个老哥帮我编译了一下可以用了。
…------------------ 原始邮件 ------------------
发件人: "qjfoidnh/BaiduPCS-Go" ***@***.***>;
发送时间: 2021年8月5日(星期四) 凌晨0:16
***@***.***>;
***@***.******@***.***>;
主题: Re: [qjfoidnh/BaiduPCS-Go] 登录失败 3.8.0版本 termux安卓手机 (#107)
老问题了,安卓平台上出现dns错误,目前没有完善的解决方案,有人换流量发现可以了
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
|
谢谢老哥,可以用了。就是玩法不太懂,看他们玩得很六。
…------------------ 原始邮件 ------------------
发件人: "qjfoidnh/BaiduPCS-Go" ***@***.***>;
发送时间: 2021年8月7日(星期六) 晚上7:44
***@***.***>;
***@***.******@***.***>;
主题: Re: [qjfoidnh/BaiduPCS-Go] 登录失败 3.8.0版本 termux安卓手机 (#107)
参考 #3
我帮你编译了安卓arm和arm64的二进制文件
https://we.tl/t-xut5L3QA89
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
|
能够帮忙发下你编译的环境吗?是那个系统版本,go版本是多少呀,android ndk 是那个版本? |
这个原作者有教程,我是研究了一个礼拜才搞懂的,版本都是最新的 https://web.archive.org/web/20190830041727/http://www.iikira.com/2017/08/09/golang-compile-jc-2/ |
我在ubuntu上试了一下,好像不行,有报错,有没有经验可分享? runtime/cgogcc_android.c:6:10: fatal error: android/log.h: No such file or directory |
可以试试用虚拟机新装一个ubuntu系统在试试? |
termux里加了个http代理从clash for android里绕了一圈,问题就消失了。虽然也不是不能用,但是还是希望大佬能以这个为突破点研究一下😂 |
你们这思路就不对,dns 问题实际上是因为编译时没开 cgo 导致 LD_PRELOAD 里的 libtermux-exec.so 没有成功把 /etc/resolv.conf 劫持到 $PREFIX/etc/resolv.conf (也就是 /data/data/com.termux/files/usr/etc/resolv.conf ),对于本程序来说 resolv.conf 不存在,根本就没有设置 dns 服务器,所以才会尝试使用 127.0.0.1 或 ::1 |
急着用可以来我库里的 action 里下载,有更新了可以自己 fork 后 pull 下 |
用termux到下载baidupcs-go 出现notfound |
扒了扒和termux相关的issue,总结一下。 有两种方式编译android版本的baidupcs
我最后使用第一个方案成功。第二个虽然编译成功,放到termux里面运行还是会报dns的问题。最后work的编译命令行 GOOS=android GOARCH=arm64 CGO_ENABLE=1 go build 如果下载依赖过慢,设置一下GOPROXY环境变量, $ go env -w GOPROXY=https://mirrors.aliyun.com/goproxy/,direct
$ go env | grep GOPROX
GOPROXY='https://mirrors.aliyun.com/goproxy/,direct'
参考
|
谢谢。我也使用第一种方式成功了。账号和cookie好像都不能登录成功 |
错误代码: -1, 消息: 网络请求失败, Post https://wappass.baidu.com/wp/api/login: lookup wappass.baidu.com on [::1]:53: read udp [::1]:50321->[::1]:53: read: connection refused
![Uploading Screenshot_20210804_164554.jpg…]()
The text was updated successfully, but these errors were encountered: