Skip to content
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

cannot find -lboost_regex #1

Closed
ghost opened this issue Jul 30, 2017 · 7 comments
Closed

cannot find -lboost_regex #1

ghost opened this issue Jul 30, 2017 · 7 comments

Comments

@ghost
Copy link

ghost commented Jul 30, 2017

Hi,

do you know how to fix this make error?

$ make
g++ ccurl/curl.o dctp-dl.o  -lcurl -lboost_regex -o dctp-dl
/usr/bin/ld: cannot find -lboost_regex
collect2: error: ld returned 1 exit status
Makefile:12: recipe for target 'dctp-dl' failed
make: *** [dctp-dl] Error 1
$
@gsauthof
Copy link
Owner

You have to install the necessary boost development packages.

For example, on Fedora:

$ dnf install boost-devel

They are named similarly on other distributions (e.g. boost-dev on Debian/Ubuntu).

Since you don't get a compile error you seem to have the boost headers already installed - thus, you have to install the package that provides the boost regex library. On Fedora it is automatically pulled in when you install boost-devel. Other distributions may package boost differently, thus you might have to install just another package for that library.

@ghost
Copy link
Author

ghost commented Jul 30, 2017

Hi, thx for your reply. Running Debian 9 (stable) I tried to go with libboost-all-dev but error is the same. Any other idea?

@gsauthof
Copy link
Owner

You can use apt-file to query which package provides the boost regex library, e.g.:

$ apt-file update
$ apt-file search 'libboost_regex.so'

Perhaps you have to add some globbing/regex meta characters in case apt-file matches the full path, by default.

@ghost
Copy link
Author

ghost commented Jul 30, 2017

Thx, didn't know that, so:

# apt-file search 'libboost_regex.so'
libboost-regex1.62-dev: /usr/lib/x86_64-linux-gnu/libboost_regex.so
libboost-regex1.62.0: /usr/lib/x86_64-linux-gnu/libboost_regex.so.1.62.0

...but even with apt install libboost-regex1.62.0 I still get the same error as before. :/

@gsauthof
Copy link
Owner

Do you have libboost-regex1.62-dev installed as well?

For linking you need the *.so link that is part of the -dev package.

@ghost
Copy link
Author

ghost commented Jul 30, 2017

apt install libboost-regex1.62-dev did it.

...but is it normal to get runtime errors fetching a video?

[...]
terminate called after throwing an instance of 'std::runtime_error'
  what():  Curl function failed with: Couldn't connect to server
Aborted

@gsauthof
Copy link
Owner

Well, I don't use this tool on a regular basis anymore. Thus, it's likely that the dctp infrastructure changed enough such that the implemented scheme now fails.

Looking at the page now it seems that they aren't using HTTP Live-Streaming anymore - but Flash - again - although Flash is pretty much dead nowadays ...

I've just tried current youtube-dl and it looks that it now also supports dctp (in contrast to 5 years ago when I wrote dctp-dl):

$ youtube-dl --version
2018.07.21
$ youtube-dl http://www.dctp.tv/filme/spiegel-tv-magazin-vom-20082018/
[DctpTv] spiegel-tv-magazin-vom-20082018: Downloading version JSON
[DctpTv] spiegel-tv-magazin-vom-20082018: Downloading video info JSON
[DctpTv] spiegel-tv-magazin-vom-20082018: Downloading media JSON
[DctpTv] spiegel-tv-magazin-vom-20082018: Downloading server list JSON
[download] Destination: SPIEGEL TV Magazin vom 20.08.2018-6ee9406291d74dbf97d57d2bbde80698.flv
[download]  99.9% of ~117.79MiB at  1.20MiB/s ETA 00:00
[rtmpdump] Downloaded 123393488 bytes
[download] 100% of 117.68MiB in 01:37
$ youtube-dl http://www.dctp.tv/filme/wie-man-einen-shitstorm-uberlebt/
[..]
[rtmpdump] Downloaded 84829869 bytes
[download] 100% of 80.90MiB in 01:10

There is also an official DCTP youtube channel where probably most of the DCTP content is cross-posted. Thus, another alternative is to download with youtube-dl from that channel.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant