Leap 15 下编译 baidupcs 失败

全新安装 Leap 15后编译 Baidupcs 有问题,提示全的尽量解决了,但是到下面的就不懂了,大神们帮帮忙!

libtool: link: gcc -g -Wall -I. -I./pcs -I./rb_tree -g -O2 -pthread -o baidupcs baidupcs-shell.o baidupcs-arg.o baidupcs-dir.o rb_tree/baidupcs-misc.o rb_tree/baidupcs-red_black_tree.o rb_tree/baidupcs-stack.o baidupcs-utils.o baidupcs-hashtable.o pcs/baidupcs-cJSON.o pcs/baidupcs-pcs_fileinfo.o pcs/baidupcs-pcs_http.o pcs/baidupcs-pcs_mem.o pcs/baidupcs-pcs_pan_api_resinfo.o pcs/baidupcs-pcs_slist.o pcs/baidupcs-pcs_utils.o pcs/baidupcs-err_msg.o pcs/baidupcs-utf8.o pcs/baidupcs-pcs.o pcs/baidupcs-pcs_buffer.o pcs/baidupcs-pcs_passport_dv.o -lm -lcurl -lssl -lcrypto -pthread
baidupcs-shell.o: In function download_write': /home/gs/BaiduPCS-master/shell.c:1265: undefined reference tocache_add’
/home/gs/BaiduPCS-master/shell.c:1271: undefined reference to cache_flush' baidupcs-shell.o: In functiondownload_write_for_multy_thread’:
/home/gs/BaiduPCS-master/shell.c:1328: undefined reference to cache_flush' /home/gs/BaiduPCS-master/shell.c:1348: undefined reference tocache_reset’
/home/gs/BaiduPCS-master/shell.c:1308: undefined reference to cache_add' baidupcs-shell.o: In functioninit_download_state’:
/home/gs/BaiduPCS-master/shell.c:1038: undefined reference to cache_init' baidupcs-shell.o: In functiondo_download’:
/home/gs/BaiduPCS-master/shell.c:3742: undefined reference to cache_flush' /home/gs/BaiduPCS-master/shell.c:3893: undefined reference tocache_flush’
baidupcs-shell.o: In function uninit_download_state': /home/gs/BaiduPCS-master/shell.c:1061: undefined reference tocache_uninit’
collect2: error: ld returned 1 exit status
make[1]: *** [Makefile:664:baidupcs] 错误 1
make[1]: 离开目录“/home/gs/BaiduPCS-master”
make: *** [Makefile:466:all] 错误 2

============================================

另外,BaiduPCS 作者说不维护了,神器啊太可惜了。能不能把依赖解决了重新发布?

还有,Baidu盘的油猴脚本是不都用不了了?我从来没成功过。

。。。


毒盘的油猴脚本?指的是获取下载地址的那些?好久没怎么用了,EX那个不行么我看还在更新 :sweat_smile:

我现在一般都用百度网盘助手导出aria2下载了,感觉海星 :joy:

建议用 baidupcs-go,用 golang 写的还在积极维护。

1赞

嗯,golang的我试了一下果然很好用,所以这个帖子终结了不