libavutil has too wide Requires.private
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ffmpeg (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
I installed libavutil-dev but when I try to link against its static libraries it fails.
It turns out that the pkg-config file adds many linker flags:
$ pkg-config --libs --cflags --static libavutil
-I/usr/
some of which are not available statically:
$ ld -static -lavutil -lva-drm -lva -lva-x11 -lva -lvdpau -lX11 -lm -ldrm -lOpenCL -lva -lXv -lX11 -lXext -ldl
ld: cannot find -lva-drm
ld: cannot find -lva
ld: cannot find -lva-x11
ld: cannot find -lva
ld: cannot find -lvdpau
Curiously, they do not even seem to be necessary since I am able to link the program just against `pkg-config --libs --cflags --static libavutil libswscale`.
Could you either add the static libraries to dependencies of libavutil-dev or remove the unavailable flags from Requires.private?
I am using Ubuntu 20.04.1 LTS and have libavutil-dev version 7:4.2.4-1ubuntu0.1.