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