Fedora build procedure does not work
sgob1 opened this issue · 1 comments
sgob1 commented
The commands provided in the README.md file for the Fedora build are inaccurate and should be updated.
I recently tried to compile wallutils
for Fedora 37 in a clean environment inside a toolbox.
While following the provided commands, I encountered some issues during the compilation process:
- the package
imagemagick
is misspelled: the correct package name in Fedora repositories isImageMagick
; - the package
libheif-devel
does not belong to Fedora repositories, it is instead part ofrpmfusion-free
repository, and this should be addressed. I am well aware that most, if not all users have rpmfusion installed, but for a build in a clean environment this is not usually the case; - package
wayland-devel
is missing: if not installed, full compilation withmake
fails for filewayinfo.go
with error
go build -mod=vendor -trimpath
# github.com/xyproto/wallutils
In file included from ./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.
make: *** [Makefile:18: all] Error 2
To solve this, a working command sequence could be the following:
sudo dnf update
sudo dnf install https://mirrors.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm
sudo dnf install git golang ImageMagick libXcursor-devel libXmu-devel xorg-x11-xbitmaps libheif-devel wayland-devel
git clone https://github.com/xyproto/wallutils
cd wallutils
make
sudo make PREFIX=/usr/local install
I tested it on a toolbox running Fedora 37.
xyproto commented
Thanks for reporting! I'll update the documentation.