gtk4/main build fails: meson.build:857:13: ERROR: requires argument not a string, library with pkgconfig-generated file or pkgconfig-dependency object, got <InternalDependency null: True>
I am trying to build the main branch (commit 036629a4) using meson 0.63.0 and the following options:
~/.local/bin/meson --prefix /usr/local/muli _build -Dbuild-tests=false \
-Dbroadway-backend=true \
-Dbuild-testsuite=false \
-Dgraphene:installed_tests=false \
-Dwayland-protocols:tests=false && \
and I am getting the following error:
meson.build:857:13: ERROR: requires argument not a string, library with pkgconfig-generated file or pkgconfig-dependency object, got <InternalDependency null: True>
The line 857 of meson.build looks like
pkg_config.generate(
filebase: pkg,
unescaped_variables: common_pc_variables,
name: 'GTK',
description: 'GTK Graphical UI Library',
requires: ['gtk4', get_variable('@0@_public_deps'.format(backend), [])],
)
I found similar issue here: atk!39 and when I have replaced 'requires' by 'libraries' as suggested in that merge request, I was able to build successfully. Though I am not sure this is a correct fix.