Issues with pkg-config & wayland-client while trying to install wallutils

I installed OpenSUSE Slowroll the other day (Running KDE & Wayland) and wanted to set up sunpaper. While installing one of it’s dependencies, wallutils, using the recommended command;
go install github.com/xyproto/wallutils/cmd/setwallpaper@latest
I encountered the following error;

# github.com/xyproto/wallutils
# [pkg-config --cflags  -- wayland-client]
Package wayland-client was not found in the pkg-config search path.
Perhaps you should add the directory containing `wayland-client.pc'
to the PKG_CONFIG_PATH environment variable
Package 'wayland-client' not found

I opened an issue (47, wont let me link it because new account) on wallutil’s repo, where there is a little more info on steps I’ve taken, but I think this may be an issue with OpenSUSE so I’m posting here.

Checking the PKG_CONFIG_PATH showed that it was empty, so I exported the following directory which I searched for & contained wayland-client.pc as a value.
/var/lib/flatpak/runtime/org.freedesktop.Sdk/x86_64/24.08/f204b2a59b67831c67f7174fda5ac0cc40c438e5211dfdb9d0ac6c0ad893e025/files/lib/x86_64-linux-gnu/pkgconfig/
It seemed strange to be so out the way of other pkg-configs, but after adding that and trying the same install method as before, I get a new error;

# github.com/xyproto/wallutils
In file included from go/pkg/mod/github.com/xyproto/wallutils@v0.0.0-20250117114656-01497d1e1997/wayinfo.go:4:
./include/wayinfo.h:32:10: fatal error: wayland-client.h: No such file or directory
   32 | #include <wayland-client.h>
      |          ^~~~~~~~~~~~~~~~~~
compilation terminated.

I searched and found wayland-client.h in this directory;
/var/lib/flatpak/runtime/org.freedesktop.Sdk/x86_64/24.08/f204b2a59b67831c67f7174fda5ac0cc40c438e5211dfdb9d0ac6c0ad893e025/files/include/

At this point I’ve reached a dead-end, as I’ve not had this distro for long nor am I overly experienced with Linux in general.

Is it normal to have pkg-configs in such deep directories within flatpak? I’m inclined to think not as it doesn’t seem to reference the .h files correctly, though this is my first encounter with pkg-configs.
Will installing utilities from github repos need linking with PKG_CONFIG_PATH each time?
Thanks

You need to install the header package aka wayland-devel.

1 Like

I had already ran

LC_ALL=C zypper se wayland

And verified that wayland-devel is present within the output.
I can attach the full output in a couple hours if needed when I’m back at my desktop.

A stack overflow post led me to believe LC_ALL=C zypper se wayland would list all packages installed, but I was mistaken since installing wayland-devel fixed the issue.

zypper se -i wayland will show only installed packages.

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.