libavutil has too wide Requires.private

Bug #1897457 reported by Jan Tojnar
6
This bug affects 1 person
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/include/x86_64-linux-gnu -lavutil -pthread -lva-drm -lva -lva-x11 -lva -lvdpau -lX11 -lm -ldrm -lOpenCL -lva -lXv -lX11 -lXext -ldl

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.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.