francma / wob

A lightweight overlay volume/backlight/progress/anything bar for Wayland.
ISC License
896 stars 49 forks source link

Fails to build on openSUSE Tumbleweed #20

Closed m-rey closed 4 years ago

m-rey commented 4 years ago

When trying to build wob on openSUSE Tumbleweed, the following error appears after running ninja -C build-release:

$> ninja -C build-release
ninja: Entering directory `build-release'
[1/6] Compiling C object 'xdg_shell_lib@sta/meson-generated_.._xdg-shell-client-protocol.c.o'.
FAILED: xdg_shell_lib@sta/meson-generated_.._xdg-shell-client-protocol.c.o 
cc -Ixdg_shell_lib@sta -I. -I.. -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c99 -O3 '-DWOB_VERSION="0.2"' -fPIC -MD -MQ 'xdg_shell_lib@sta/meson-generated_.._xdg-shell-client-protocol.c.o' -MF 'xdg_shell_lib@sta/meson-generated_.._xdg-shell-client-protocol.c.o.d' -o 'xdg_shell_lib@sta/meson-generated_.._xdg-shell-client-protocol.c.o' -c xdg-shell-client-protocol.c
xdg-shell-client-protocol.c:33:10: fatal error: wayland-util.h: No such file or directory
   33 | #include "wayland-util.h"
      |          ^~~~~~~~~~~~~~~~
compilation terminated.
[2/6] Compiling C object 'wlr_layer_shell_unstable_v1_lib@sta/meson-generated_.._wlr-layer-shell-unstable-v1.c.o'.
FAILED: wlr_layer_shell_unstable_v1_lib@sta/meson-generated_.._wlr-layer-shell-unstable-v1.c.o 
cc -Iwlr_layer_shell_unstable_v1_lib@sta -I. -I.. -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c99 -O3 '-DWOB_VERSION="0.2"' -fPIC -MD -MQ 'wlr_layer_shell_unstable_v1_lib@sta/meson-generated_.._wlr-layer-shell-unstable-v1.c.o' -MF 'wlr_layer_shell_unstable_v1_lib@sta/meson-generated_.._wlr-layer-shell-unstable-v1.c.o.d' -o 'wlr_layer_shell_unstable_v1_lib@sta/meson-generated_.._wlr-layer-shell-unstable-v1.c.o' -c wlr-layer-shell-unstable-v1.c
wlr-layer-shell-unstable-v1.c:30:10: fatal error: wayland-util.h: No such file or directory
   30 | #include "wayland-util.h"
      |          ^~~~~~~~~~~~~~~~
compilation terminated.
ninja: build stopped: subcommand failed.

All the previous steps run fine:

$> meson build-release  --buildtype release          
The Meson build system
Version: 0.51.2
Source dir: /home/mrey/repos/mrey/github/wob
Build dir: /home/mrey/repos/mrey/github/wob/build-release
Build type: native build
Project name: wob
Project version: 0.2
C compiler for the host machine: cc (gcc 9.2.1 "cc (SUSE Linux) 9.2.1 20190903 [gcc-9-branch revision 275330]")
Build machine cpu family: x86_64
Build machine cpu: x86_64
Found pkg-config: /usr/bin/pkg-config (1.6.3)
Run-time dependency wayland-protocols found: YES 1.18
Program wayland-scanner found: YES (/usr/bin/wayland-scanner)
Run-time dependency wayland-client found: YES 1.17.0
Library rt found: YES
Build targets in project: 8
Found ninja-1.9.0 at /usr/bin/ninja
primeos commented 4 years ago

In case it helps: Is the wayland-devel package installed and does /usr/include/wayland/wayland-util.h exist?

francma commented 4 years ago

I was able to build wob with:

CFLAGS='-I/usr/include/wayland/' meson build
ninja -C build

The header file is in /usr/include/wayland/ not /usr/include. No idea how to fix it :/

francma commented 4 years ago

Should be fixed now. Thanks for reporting it :slightly_smiling_face: