ERROR: Dependency 'libva-x11' is required but not found in after merge 4781
Describe your issue
I cloned yesterday gstreamer, then wanted to setup with meson, but a error occurred.
I use meson 0.62.2. The command I run is:
~/work/meson/meson.pyz setup --prefix=/opt build -Dbad=enabled -Dgood=enabled -Dugly=enabled -Dgpl=enabled -DFFmpeg:gpl=enabled -DFFmpeg:version3=enabled -DFFmpeg:nonfree=enabled -Dgst-plugins-bad:nvcodec=enabled -Dgst-plugins-ugly:x264=enabled -Dvaapi=enabled -Dgst-plugins-base:gl_winsys=x11,wayland -Dgstreamer-vaapi:encoders=enabled -Dgstreamer-vaapi:drm=enabled -Dgstreamer-vaapi:x11=enabled -Dgstreamer-vaapi:wayland=enabled -Dgstreamer-vaapi:egl=enabled 2>&1 | tee -I setup_log.txt
The error is as following:
Executing subproject gstreamer-vaapi
gstreamer-vaapi| Project name: gstreamer-vaapi
gstreamer-vaapi| Project version: 1.23.0.1
gstreamer-vaapi| C compiler for the host machine: cc (gcc 9.4.0 "cc (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0")
gstreamer-vaapi| C linker for the host machine: cc ld.bfd 2.34
gstreamer-vaapi| Compiler for C supports link arguments -Wl,-Bsymbolic-functions: YES (cached)
gstreamer-vaapi| Compiler for C supports arguments -fvisibility=hidden: YES (cached)
gstreamer-vaapi| Compiler for C supports arguments -fno-strict-aliasing: YES (cached)
gstreamer-vaapi| Library m found: YES
gstreamer-vaapi| Dependency gstreamer-1.0 found: YES 1.23.0.1 (overridden)
gstreamer-vaapi| Dependency gstreamer-base-1.0 found: YES 1.23.0.1 (overridden)
gstreamer-vaapi| Dependency gstreamer-pbutils-1.0 found: YES 1.23.0.1 (overridden)
gstreamer-vaapi| Dependency gstreamer-allocators-1.0 found: YES 1.23.0.1 (overridden)
gstreamer-vaapi| Dependency gstreamer-video-1.0 found: YES 1.23.0.1 (overridden)
gstreamer-vaapi| Dependency gstreamer-codecparsers-1.0 found: YES 1.23.0.1 (overridden)
gstreamer-vaapi| Dependency gstreamer-gl-1.0 found: YES 1.23.0.1 (overridden)
gstreamer-vaapi| Message: GStreamer debug system is enabled
gstreamer-vaapi| Dependency libva found: YES 2.19.0.1 (cached)
gstreamer-vaapi| Dependency libva-drm found: YES 2.19.0.1 (cached)
gstreamer-vaapi| Dependency libva-wayland from subproject subprojects/libva found: YES 2.19.0.1
gstreamer-vaapi| WARNING: Variable 'libva_x11_dep' in the subproject 'subprojects/libva' is not found
gstreamer-vaapi| Dependency libva-x11 from subproject subprojects/libva found: NO
subprojects/gstreamer-vaapi/meson.build:88:0: ERROR: Dependency 'libva-x11' is required but not found.
With the gstreamer 1.22 version there is no error.
Expected Behavior
setup of gstreamer with meson should work.
Observed Behavior
Setup with meson did not succeed. Error:
Executing subproject gstreamer-vaapi
gstreamer-vaapi| Project name: gstreamer-vaapi
gstreamer-vaapi| Project version: 1.23.0.1
gstreamer-vaapi| C compiler for the host machine: cc (gcc 9.4.0 "cc (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0")
gstreamer-vaapi| C linker for the host machine: cc ld.bfd 2.34
gstreamer-vaapi| Compiler for C supports link arguments -Wl,-Bsymbolic-functions: YES (cached)
gstreamer-vaapi| Compiler for C supports arguments -fvisibility=hidden: YES (cached)
gstreamer-vaapi| Compiler for C supports arguments -fno-strict-aliasing: YES (cached)
gstreamer-vaapi| Library m found: YES
gstreamer-vaapi| Dependency gstreamer-1.0 found: YES 1.23.0.1 (overridden)
gstreamer-vaapi| Dependency gstreamer-base-1.0 found: YES 1.23.0.1 (overridden)
gstreamer-vaapi| Dependency gstreamer-pbutils-1.0 found: YES 1.23.0.1 (overridden)
gstreamer-vaapi| Dependency gstreamer-allocators-1.0 found: YES 1.23.0.1 (overridden)
gstreamer-vaapi| Dependency gstreamer-video-1.0 found: YES 1.23.0.1 (overridden)
gstreamer-vaapi| Dependency gstreamer-codecparsers-1.0 found: YES 1.23.0.1 (overridden)
gstreamer-vaapi| Dependency gstreamer-gl-1.0 found: YES 1.23.0.1 (overridden)
gstreamer-vaapi| Message: GStreamer debug system is enabled
gstreamer-vaapi| Dependency libva found: YES 2.19.0.1 (cached)
gstreamer-vaapi| Dependency libva-drm found: YES 2.19.0.1 (cached)
gstreamer-vaapi| Dependency libva-wayland from subproject subprojects/libva found: YES 2.19.0.1
gstreamer-vaapi| WARNING: Variable 'libva_x11_dep' in the subproject 'subprojects/libva' is not found
gstreamer-vaapi| Dependency libva-x11 from subproject subprojects/libva found: NO
subprojects/gstreamer-vaapi/meson.build:88:0: ERROR: Dependency 'libva-x11' is required but not found.
Setup
- Operating System: ubuntu 20.04.6 LTS
- Computer
- GStreamer Version: clone from main branch
- git clone https://gitlab.freedesktop.org/gstreamer/gstreamer.git
Steps to reproduce the bug
1.install meson >= 0.62, needed to build gstreamer:
git clone https://github.com/mesonbuild/meson.git
cd meson
- change to the desired branch version, for example if you want to install meson 0.62 version:
git checkout -b version62 origin/0.62
- run:
./packaging/create_zipapp.py --outfile meson.pyz --interpreter '/usr/bin/env python3'
- then you can run meson:
meson.pyz
git clone https://gitlab.freedesktop.org/gstreamer/gstreamer.git
- download neccesary packages:
sudo apt-get install ninja-build nasm libavformat-dev libx264-dev libglib2.0-dev libz3-dev zlib1g-dev libgl-dev libx11-dev cmake flex bison x264 libx264-dev build-essential dpkg-dev autotools-dev automake autopoint libtool gtk-doc-tools libbz2-dev libv4l-dev libvpx-dev libjack-jackd2-dev libsoup2.4-dev libpulse-dev faad libfaad-dev libfaac-dev libx264-dev libmad0-dev libavcodec-dev libffmpeg-nvenc-dev libva-dev nasm libavformat-dev libx264-dev libglib2.0-dev libz3-dev zlib1g-dev libgl-dev libx11-dev cmake flex bison x264 libx264-dev build-essential flex bison autotools-dev automake autopoint libtool gtk-doc-tools libbz2-dev libv4l-dev libvpx-dev libjack-jackd2-dev libsoup2.4-dev libpulse-dev faad libfaad-dev libfaac-dev libmad0-dev libavcodec-dev libffmpeg-nvenc-dev libglew-dev libwayland-dev wayland-protocols libudev-dev libgles-dev x11proto-gl-dev libx11-xcb-dev libdrm-dev libxrandr-dev
- setup gstreamer with meson (0.62.2):
meson.pyz setup --prefix=/opt build -Dbad=enabled -Dgood=enabled -Dugly=enabled -Dgpl=enabled -DFFmpeg:gpl=enabled -DFFmpeg:version3=enabled -DFFmpeg:nonfree=enabled -Dgst-plugins-bad:nvcodec=enabled -Dgst-plugins-ugly:x264=enabled -Dvaapi=enabled -Dgst-plugins-base:gl_winsys=x11,wayland -Dgstreamer-vaapi:encoders=enabled -Dgstreamer-vaapi:drm=enabled -Dgstreamer-vaapi:x11=enabled -Dgstreamer-vaapi:wayland=enabled -Dgstreamer-vaapi:egl=enabled 2>&1 | tee -I setup_log.txt
Solutions you have tried
sudo apt-get install libva-x11-1
sudo apt-get install libva-x11-2.
- but the error is still there
Edited by Víctor Manuel Jáquez Leal