Comments (14)
@yang-s-li 刚刚把open_memstream和strcasestr重新实现了, 你现在可以git clone or git pull更新下代码, 再 ./autogen.sh && make && sudo make install, 试试能不能正常编译使用, 如有问题再联系我
from baidudl.
/Applications/Xcode.app/Contents/Developer/usr/bin/make all-recursive
Making all in src
gcc -DHAVE_CONFIG_H -I. -I.. -g -O2 -MT bdpandl.o -MD -MP -MF .deps/bdpandl.Tpo -c -o bdpandl.o bdpandl.c
mv -f .deps/bdpandl.Tpo .deps/bdpandl.Po
gcc -DHAVE_CONFIG_H -I. -I.. -g -O2 -MT dlcommon.o -MD -MP -MF .deps/dlcommon.Tpo -c -o dlcommon.o dlcommon.c
mv -f .deps/dlcommon.Tpo .deps/dlcommon.Po
gcc -DHAVE_CONFIG_H -I. -I.. -g -O2 -MT dlinfo.o -MD -MP -MF .deps/dlinfo.Tpo -c -o dlinfo.o dlinfo.c
dlinfo.c:601:16: error: use of undeclared identifier 'SIGWINCH'
if (sigaction(SIGWINCH, &act, &old) == -1)
^
1 error generated.
make[2]: *** [dlinfo.o] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
from baidudl.
@yang-s-li 刚刚添加了#ifdef宏, 麻烦你再git pull然后编译试试, 因为我用的Linux也没法测试, 抱歉
from baidudl.
非常感谢你的耐心调试,不过还是有问题:
/Applications/Xcode.app/Contents/Developer/usr/bin/make all-recursive
Making all in src
gcc -DHAVE_CONFIG_H -I. -I.. -g -O2 -MT dlinfo.o -MD -MP -MF .deps/dlinfo.Tpo -c -o dlinfo.o dlinfo.c
dlinfo.c:605:16: error: use of undeclared identifier 'SIGWINCH'
if (sigaction(SIGWINCH, &act, &old) == -1)
^
1 error generated.
make[2]: *** [dlinfo.o] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
from baidudl.
@yang-s-li 能麻烦你再试试吗?估计是刚刚的Mac OSX预定义宏的问题, 现在修改了下
from baidudl.
@yang-s-li 这个问题的原因主要还是Mac OSX废弃了两个信号处理宏造成的, SIGWINCH 和 SIGINFO.
from baidudl.
这次倒是没有报错,但我 不确定 是否安装成功,因为我 无法下载:
1. make log
/Applications/Xcode.app/Contents/Developer/usr/bin/make all-recursive
Making all in src
gcc -DHAVE_CONFIG_H -I. -I.. -g -O2 -MT dlinfo.o -MD -MP -MF .deps/dlinfo.Tpo -c -o dlinfo.o dlinfo.c
mv -f .deps/dlinfo.Tpo .deps/dlinfo.Po
gcc -DHAVE_CONFIG_H -I. -I.. -g -O2 -MT dlpart.o -MD -MP -MF .deps/dlpart.Tpo -c -o dlpart.o dlpart.c
mv -f .deps/dlpart.Tpo .deps/dlpart.Po
gcc -DHAVE_CONFIG_H -I. -I.. -g -O2 -MT dlscrolling.o -MD -MP -MF .deps/dlscrolling.Tpo -c -o dlscrolling.o dlscrolling.c
mv -f .deps/dlscrolling.Tpo .deps/dlscrolling.Po
gcc -DHAVE_CONFIG_H -I. -I.. -g -O2 -MT dllist.o -MD -MP -MF .deps/dllist.Tpo -c -o dllist.o dllist.c
mv -f .deps/dllist.Tpo .deps/dllist.Po
gcc -DHAVE_CONFIG_H -I. -I.. -g -O2 -MT err_handler.o -MD -MP -MF .deps/err_handler.Tpo -c -o err_handler.o err_handler.c
mv -f .deps/err_handler.Tpo .deps/err_handler.Po
gcc -DHAVE_CONFIG_H -I. -I.. -g -O2 -MT dlbuffer.o -MD -MP -MF .deps/dlbuffer.Tpo -c -o dlbuffer.o dlbuffer.c
mv -f .deps/dlbuffer.Tpo .deps/dlbuffer.Po
gcc -g -O2 -Wall -Wextra -lpthread -o bdpandl bdpandl.o dlcommon.o dlinfo.o dlpart.o dlscrolling.o dllist.o err_handler.o dlbuffer.o -lcurl -lpthread
gcc -DHAVE_CONFIG_H -I. -I.. -g -O2 -MT bdpandl-decode.o -MD -MP -MF .deps/bdpandl-decode.Tpo -c -o bdpandl-decode.o bdpandl-decode.c
mv -f .deps/bdpandl-decode.Tpo .deps/bdpandl-decode.Po
gcc -g -O2 -Wall -o bdpandl-decode bdpandl-decode.o err_handler.o -lcurl -lpthread
2. sudo make install log
Password:
Making install in src
.././install-sh -c -d '/usr/local/bin'
/usr/bin/install -c bdpandl bdpandl-decode '/usr/local/bin'
make[2]: Nothing to be done for `install-data-am'.
make[2]: Nothing to be done for `install-exec-am'.
make[2]: Nothing to be done for `install-data-am'.
3. download log
3.1 download link type 1:
bdpandl -n 10 'https://1gaa1hcjsgazdnctafa3ucmmrgyzgramjct4zya5uf3ts65e.ourdvsss.com/d0.baidupcs.com/file/576f12006b388bdac88d79a6d4f03040\?bkt\=p3-00008ef918aa60e1f1639a13ce335f2ee6bc\&xcode\=273c142eb7bcd861d2ecb37d09227a00ce377be97ad7977bded0b7c77404c736\&fid\=1363427504-250528-221437667937263\&time\=1476881733\&sign\=FDTAXGERLBH-DCb740ccc5511e5e8fedcff06b081203-5dDOIlSGHefEfnhoQUygmSxF6Vc%3D\&to\=cb00\&fm\=Yan,B,T,t\&sta_dx\=387063296\&sta_cs\=1370\&sta_ft\=dmg\&sta_ct\=5\&sta_mt\=5\&fm2\=Yangquan,B,T,t\&newver\=1\&newfm\=1\&secfm\=1\&flow_ver\=3\&pkey\=00008ef918aa60e1f1639a13ce335f2ee6bc\&sl\=72613967\&expires\=8h\&rt\=sh\&r\=325756771\&mlogid\=6792526700614100692\&vuk\=2150372647\&vbdid\=3658023147\&fin\=VMware%20Fusion%208%20Pro%20for%20Mac%208.5.dmg\&fn\=VMware%20Fusion%208%20Pro%20for%20Mac%208.5.dmg\&slt\=pm\&uta\=0\&rtype\=0\&iv\=1\&isw\=0\&dp-logid\=6792526700614100692\&dp-callid\=0.1.1\&hps\=1\&csl\=395\&csign\=3hFoghOUHbaoMFZq%2Bsi2OFqhNGI%3D\&wshc_tag\=0\&wsts_tag\=58076d46\&wsid_tag\=b7279a9c\&wsiphost\=ipdbm'
3.2 download link type 2:
bdpandl -n 10 'https://rh120n.jomodns.com/r/d0.baidupcs.com/file/5a79936742ab28055a39bf03c20a38bd\?bkt\=p3-00004635c08eac2323deeba013a43b84707a\&xcode\=b4f5f0edab281d61c3a22410af109cf81f8a47eb6950fc2ea7103330c9091c9b\&fid\=1363427504-250528-330624063264982\&time\=1476882034\&sign\=FDTAXGERLBH-DCb740ccc5511e5e8fedcff06b081203-7cVUMvlCHfj0WGEMl4mu0epC1F4%3D\&to\=cb00\&fm\=Yan,B,T,t\&sta_dx\=21623808\&sta_cs\=437\&sta_ft\=dmg\&sta_ct\=2\&sta_mt\=2\&fm2\=Yangquan,B,T,t\&newver\=1\&newfm\=1\&secfm\=1\&flow_ver\=3\&pkey\=00004635c08eac2323deeba013a43b84707a\&sl\=72941647\&expires\=8h\&rt\=sh\&r\=594256457\&mlogid\=6792607493539723138\&vuk\=2150372647\&vbdid\=3658023147\&fin\=Sketch%20for%20Mac%2040.3.dmg\&fn\=Sketch%20for%20Mac%2040.3.dmg\&slt\=pm\&uta\=0\&rtype\=0\&iv\=1\&isw\=0\&dp-logid\=6792607493539723138\&dp-callid\=0.1.1\&hps\=1\&csl\=390\&csign\=OwIfasTjhlt1E3hnGTqWkoMdp9g%3D'
3.3 download link type 3:
bdpandl -n 10 'https://pan.baidu.com/share/link\?shareid\=109966568\&uk\=1363427504'
3.4 备注
from baidudl.
@yang-s-li 你应该用type1 or type2的那种下载地址, 就是你点击baidu网页的下载按钮后会弹出下载框, 下载框中的地址才是真正的地址, https://pan.baidu.com/share/link\?shareid\=109966568\&uk\=1363427504只是一个网页地址.
如果你想要达到你带宽的最大速度, 可以增加线程数, 我一般是设置为200, bdpandl -n 200 'download url'.
这种url有一个到期时间, 也就是说可能你过了8小时还没下完, 这个地址就会失效. 但是这种情况很少发生, 我带宽是50Mb, 下行大概最高7MB, 用打包下载下一个10GB的动漫也就最多半小时, 2GB的3分钟搞定.
还有, 如果你发现下载速度变慢了, 你可以Ctrl-C终止下载, 然后再重新下载. 就会达到最大速度.
from baidudl.
@yang-s-li 顺便一提, 你的下载地址到期了...... 所以没法下载 0.0, 重新到下载页面点击下载按钮,然后复制下载链接.
bdpandl -n 200 ‘下载链接'
from baidudl.
你提供的下载地址也到期了?我刚用你的地址试了一下,仍然是「failed to download from url」。
另外,我的系统是默认配置了 http、HTTPS 代理的,对 bdpandl 有无影响?
from baidudl.
我刚刚用的下载地址还没到期, 可以下载的, 麻烦你加上-d 2选项, 或直接运行下面的命令, 然后把输出发给我.
from baidudl.
--------------Received Meta info---------------
HTTP/1.1 405 Not Allowed
Date: Wed, 19 Oct 2016 14:24:27 GMT
Content-Type: text/plain; charset=utf-8
Connection: close
x-bs-client-ip: MTgzLjM5LjE1NC4xNTY=
x-bs-request-id: MTAuMjE1LjI1Mi41ODo4NjQzOjY3OTA3MzY5NTA3ODEyODYzNjU6MjAxNi0xMC0xOSAyMjoyNDoyNw==
content-length: 24
Server: POMS/CloudUI 1.0
--------------Received Meta info---------------
--------------Received Meta info---------------
HTTP/1.1 200 OK
Date: Wed, 19 Oct 2016 14:24:29 GMT
Content-Type: application/zip
Connection: keep-alive
x-bs-client-ip: MTgzLjM5LjE1NC4xNTY=
x-bs-request-id: MTAuMjE1LjI1NC4xOTo4NjQzOjY3OTA3MzY5NTA3ODEyODYzNjU6MjAxNi0xMC0xOSAyMjoyNDoyOA==
expires: 0
content-disposition: attachment; filename="偶像活动.zip"
content-length: 8147836037
Server: POMS/CloudUI 1.0
filename=偶像活动.zip, length=8147836037
thread 0 starting to download range: 0-814783602
thread 1 starting to download range: 814783603-1629567205
thread 2 starting to download range: 1629567206-2444350808
thread 3 starting to download range: 2444350809-3259134411
thread 4 starting to download range: 3259134412-4073918014
thread 5 starting to download range: 4073918015-4888701617
thread 6 starting to download range: 4888701618-5703485220
thread 8 starting to download range: 6518268824-7333052426
thread 9 starting to download range: 7333052427-8147836036
thread 7 starting to download range: 5703485221-6518268823
偶像活动.zip 7.6GiB 0.0% 2.21MiB/s 01:00:02 [10]
[1] 16849 illegal hardware instruction bdpandl -d 2
from baidudl.
@yang-s-li 我想起来了, 哈哈, 之前也有一位编译后运行的时候遇到硬件指令异常,不过到现在也不知道为什么, 如果你有空的话, 能不能让我用teamviewer连接到你的Mac, 然后快速的用gdb调式下看看为什么会硬件异常? 如果可以的话, 麻烦把teamviewer id和password直接发我邮箱[email protected], 谢谢
from baidudl.
TeamViewer ID & Password 已发送,你看何时方便调试?我需要提前做什么准备吗?
from baidudl.
Related Issues (15)
- Dependence is broken. HOT 7
- 请问您怎么取得下载链结的? HOT 3
- 请问您有考虑做个 flatpak 或者 appimage 的包吗? HOT 1
- The baidudl doesn't work anymore. HOT 12
- Could not compile. gcc arguments are in wrong order HOT 3
- configure script does not check for libjansson HOT 2
- Make Error After install jansson HOT 6
- make in OS X, fatal error: 'malloc.h' file not found HOT 1
- Compile success with warning, cannot download: "[1] 15015 illegal hardware instruction ./bdpandl -n 4 " HOT 5
- -l listfile HOT 2
- autogen.sh returns an error, is there another way to build without autoreconf? HOT 2
- -n 参数无效,只能是默认的16 HOT 2
- 下载到最后的时候经常下载速度为 0 ,手动重启能解决问题,这个问题能解决下么? HOT 1
- ready但不显示High speed links HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from baidudl.