Skip to content

videoio: added explicit gst-audio dependency#21294

Merged
opencv-pushbot merged 1 commit intoopencv:4.xfrom
mshabunin:fix-gst-audio
Dec 20, 2021
Merged

videoio: added explicit gst-audio dependency#21294
opencv-pushbot merged 1 commit intoopencv:4.xfrom
mshabunin:fix-gst-audio

Conversation

@mshabunin
Copy link
Copy Markdown
Contributor

@mshabunin mshabunin commented Dec 20, 2021

Added explicit dependency on gst-audio-1.0 (included in the base) since we use it. On most of recent platforms it is linked automatically as dependency of other pkgs, but on older OSes it can be missing (Debian 9):

cap_gstreamer.cpp:(.text._ZN2cv16GStreamerCapture4openERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKNS_22VideoCaptureParametersE+0x11bc): undefined reference to `gst_audio_info_from_caps'
collect2: error: ld returned 1 exit status

Probably related: https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/issues/537

Note: did not check Windows build with GStreamer, thus did not change related cmake part.

build_image:Custom=ubuntu:20.04
buildworker:Custom=linux-1,linux-4,linux-6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants