Build fails on Ubuntu 26.04 (gtk-layer-shell.h not found) #4749
-
|
I've experienced the following: I do have gtk-layer-shell.h in 2 locations (the latter from git): I disabled the cava module in meson_options.txt as this seemed to be causing a lot of build errors, even though i have an updated cava install from git. I also updated fmt and spdlog, again from git. My preferred destination is /usr/local but both produced the same errors. Any help would be greatly appreciated. Ubuntu: 26.04 (Copied from issues list, not relevant there) |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
|
the header file is there but meson cant find it. the include path shows try this:
sudo ln -s /usr/local/include/gtk-layer-shell/gtk-layer-shell.h /usr/local/include/gtk-layer-shell.h
cd gtk-layer-shell
meson setup build --prefix=/usr
ninja -C build
sudo ninja -C build installusing /usr instead of /usr/local often fixes include path issues
pkg-config --cflags gtk-layer-shell-0should show correct include path
meson setup build -Dpkg_config_path=/usr/local/lib/pkgconfigthe problem is meson found the library but include path is gtk-layer-shell/ subdirectory while code expects direct include |
Beta Was this translation helpful? Give feedback.
-
|
@ismaildasci Thanks for responding. I used your symlink solution and then Many thanks. |
Beta Was this translation helpful? Give feedback.
the header file is there but meson cant find it. the include path shows
/usr/local/include/gtk-layer-shellbut compiler expects justgtk-layer-shell.hwithout subdirectory.try this:
cd gtk-layer-shell meson setup build --prefix=/usr ninja -C build sudo ninja -C build installusing /usr instead of /usr/local often fixes include path issues
should show correct include path