Ubuntu 21.04: Dependency "xdg-desktop-portal" not found
I'm trying to install xdg-desktop-portal
under Ubuntu 21.04 with the following command:
meson . _build --prefix /usr
but seem to have run into a teething problem owing to ignorance. The resulting output from entering the command line is:
`The Meson build system Version: 0.56.2 Source dir: /home/chowkidar/projects/obs-xdg-portal Build dir: /home/chowkidar/projects/obs-xdg-portal/_build Build type: native build Project name: obs-xdg-portal Project version: undefined C compiler for the host machine: cc (gcc 10.3.0 "cc (Ubuntu 10.3.0-1ubuntu1) 10.3.0") C linker for the host machine: cc ld.bfd 2.36.1 Host machine cpu family: x86_64 Host machine cpu: x86_64 Found pkg-config: /usr/bin/pkg-config (0.29.2) Run-time dependency libobs found: YES 26.1.2+dfsg1-1 Run-time dependency gio-2.0 found: YES 2.68.0 Run-time dependency gio-unix-2.0 found: YES 2.68.0 Run-time dependency libpipewire-0.3 found: YES 0.3.24 Run-time dependency libspa-0.2 found: YES 0.2 Found CMake: /usr/bin/cmake (3.18.4) Run-time dependency xdg-desktop-portal found: NO (tried pkgconfig and cmake)
meson.build:13:0: ERROR: Dependency "xdg-desktop-portal" not found, tried pkgconfig and cmake
A full log can be found at /home/chowkidar/projects/obs-xdg-portal/_build/meson-logs/meson-log.txt `
How do I resolve the error, please? Thanks.
Kind regards.
P.S. I read elsewhere that xdg-desktop-portal may help me to avoid the blank preview screen (& lack of window selections other the running OBS-Studio app) when attempting to enable Screen/Window capture. I did set EnableWayland=false
in /etc/gdm3/custom.conf
but that did not resolve the blank preview screen issue. But this issue is for a later potential request since I need to get xdg-desktop-portal installed first.