#6436 closed enhancement (invalid)
nvenc, nvdec and cuvid should be disabled by configure if ffmpeg is compiled with -static
Reported by: | bubbleguuum | Owned by: | |
---|---|---|---|
Priority: | wish | Component: | build system |
Version: | git-master | Keywords: | |
Cc: | Blocked By: | ||
Blocking: | Reproduced by developer: | yes | |
Analyzed by developer: | no |
Change History (7)
comment:1 by , 7 years ago
comment:2 by , 7 years ago
Resolution: | → invalid |
---|---|
Status: | new → closed |
The following seems to indicate that -static
works fine at least in some cases:
warning: Using 'dlopen' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
follow-up: 4 comment:3 by , 7 years ago
But they fail in most cases where people build static FFmpeg binaries for others to use, eg https://johnvansickle.com/ffmpeg/, because there is no way users of these binaries are running the same glibc version that the heroic guy that compiled FFmpeg.
follow-up: 5 comment:4 by , 7 years ago
Replying to bubbleguuum:
But they fail in most cases where people build static FFmpeg binaries for others to use, eg https://johnvansickle.com/ffmpeg/, because there is no way users of these binaries are running the same glibc version that the heroic guy that compiled FFmpeg.
Indicating there is an issue with his build script: Did you report it?
comment:5 by , 7 years ago
Replying to cehoyos:
Replying to bubbleguuum:
But they fail in most cases where people build static FFmpeg binaries for others to use, eg https://johnvansickle.com/ffmpeg/, because there is no way users of these binaries are running the same glibc version that the heroic guy that compiled FFmpeg.
Indicating there is an issue with his build script: Did you report it?
No as at that time I needed cuvid support urgently in a static build. So I compiled it myself using the workaround I mention in #6431 (post #7) that builds everything statically except the glibc. Such build can used by any user as long as they have a newer version of the glibc than the verison that has been used for compiling.
comment:6 by , 7 years ago
And as a side note, static builds not excluding the glibc also break name resolution as it relies on libdl not being linked statically.
So with such builds, this would fail
ffmpeg -i http://my.cool.host
comment:7 by , 7 years ago
Works fine here (although not with the sample command line you provided).
may I suggest not disabling these ?