Public bug reported:

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.

** Affects: ffmpeg (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1897457

Title:
  libavutil has too wide Requires.private

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ffmpeg/+bug/1897457/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to