Doesn’t install cally headers, meta include path, clutter-x11 headers, GIR/typelib paths
Building gnome-shell master against mutter master (both from today; I built mutter using autotools, not meson), I get:
In file included from ../../source/gnome-shell/src/st/st-generic-accessible.h:28,
from src/st/st-enum-types.c:15:
/opt/gnome/source/gnome-shell/src/st/st-widget-accessible.h:31:10: fatal error: cally/cally.h: No such file or directory
#include <cally/cally.h>
^~~~~~~~~~~~~~~
It looks like mutter-clutter should be installing the cally headers somewhere, but clutter/clutter/Makefile.am
doesn’t install them at all.
If I manually copy the cally/
headers to my include path, the gnome-shell build progresses a bit more, but I then get:
../../source/gnome-shell/src/run-js-test.c:33:10: fatal error: clutter/x11/clutter-x11.h: No such file or directory
#include <clutter/x11/clutter-x11.h>
^~~~~~~~~~~~~~~~~~~~~~~~~~~
Indeed, clutter-x11.h
is not installed. It seems the backend_source_h
variable in clutter/clutter/Makefile.am
is never included in a *_HEADERS
variable to be installed.
After installing them manually I get:
../../source/gnome-shell/src/shell-global.h:9:10: fatal error: meta/meta-plugin.h: No such file or directory
#include <meta/meta-plugin.h>
^~~~~~~~~~~~~~~~~~~~
The meta/
headers are installed (in $install_prefix/include/mutter-3/meta/
, but that path is not listed in Cflags
in any .pc
file. After adding -I${includedir}
to mutter-clutter-3.pc
, I get:
Couldn't find include 'Clutter-3.gir' (search path: '['/opt/gnome/install/lib/mutter', './src/st/..', '../../source/gnome-shell/src/st/..', '/opt/gnome/install/share/gir-1.0', '/home/philip/.local/share/flatpak/exports/share/gir-1.0', '/var/lib/flatpak/exports/share/gir-1.0', '/usr/local/share/gir-1.0', '/usr/share/gir-1.0', '/opt/gnome/install/share/gir-1.0', '/usr/share/gir-1.0', '/opt/gnome/install/share/gir-1.0']')
Clutter-3.gir
isn’t installed in $install_prefix/share/gir-1.0
; it’s installed in $install_prefix/lib/mutter-3
instead (why?), but gnome-shell doesn’t look for it there. Copying the .gir
and .typelib
files from there to the normal system paths allows gnome-shell to build successfully.
(I realise that me copying all the headers/etc. around is not a long term fix, but I really just want gnome-shell to build.)