outfoxxed/hy3

Failed to build hy3 plugin. Fatal error: xcb/xcb_ewmh.h

Closed this issue · 1 comments

I tried to install hy3 via hyprpm and got this:


bsfgp@fedora ~> hyprpm add -v https://github.com/outfoxxed/hy3
[v] version returned: Hyprland, built from branch HEAD at commit 1c460e98f870676b15871fe4e5bfeb1a32a3d6d8  (props: bump ver to 0.36.0).
Date: Wed Feb 28 00:32:40 2024
Tag: v0.36.0

flags: (if any)


[v] parsed commit 1c460e98f870676b15871fe4e5bfeb1a32a3d6d8 at branch HEAD
✔️ adding a new plugin repository from https://github.com/outfoxxed/hy3
  MAKE SURE that you trust the authors. DO NOT install random plugins without verifying the code and author.
  Are you sure? [Y/n] y

! old plugin repo build files found in temp directory, removing.

 → Cloning https://github.com/outfoxxed/hy3


✔️ cloned


✔️ found hyprpm manifest


✔️ parsed manifest, found 1 plugins:


 → hy3 by outfoxxed version


 → Manifest has 3 pins, checking


✔️ commit pin c880e0f00946273ee0304bba9c1de276062d496f matched hl, resetting

✔️ Hyprland headers OK


 → Building hy3


✖️ Plugin hy3 failed to build.



 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╍━━━━━━━━━━━━━━━━━━━  3 / 5  Building plugin(s)[v] shell returned:  -> cd /tmp/hyprpm/new && PKG_CONFIG_PATH="/home/bsfgp/.local/share/hyprpm/headersRoot/share/pkgconfig" cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -B build
-- The C compiler identification is GNU 13.2.1
-- The CXX compiler identification is GNU 13.2.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/lib64/ccache/cc -skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/lib64/ccache/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found PkgConfig: /usr/bin/pkg-config (found version "1.9.5")
-- Checking for modules 'hyprland;pixman-1;libdrm;pango;pangocairo'
--   Found hyprland, version 0.36.0
--   Found pixman-1, version 0.42.2
--   Found libdrm, version 2.4.120
--   Found pango, version 1.51.0
--   Found pangocairo, version 1.51.0
-- Configuring done (1.8s)
-- Generating done (0.0s)
-- Build files have been written to: /tmp/hyprpm/new/build

 -> cd /tmp/hyprpm/new && PKG_CONFIG_PATH="/home/bsfgp/.local/share/hyprpm/headersRoot/share/pkgconfig" cmake --build build
[ 14%] Building CXX object CMakeFiles/hy3.dir/src/main.cpp.o
In file included from /home/bsfgp/.local/share/hyprpm/headersRoot/include/hyprland/wlroots/wlr/xwayland.h:2,
                 from /home/bsfgp/.local/share/hyprpm/headersRoot/include/hyprland/src/includes.hpp:119,
                 from /home/bsfgp/.local/share/hyprpm/headersRoot/include/hyprland/src/defines.hpp:1,
                 from /home/bsfgp/.local/share/hyprpm/headersRoot/include/hyprland/src/Compositor.hpp:7,
                 from /tmp/hyprpm/new/src/main.cpp:1:
/home/bsfgp/.local/share/hyprpm/headersRoot/include/hyprland/wlroots/wlr/xwayland/xwayland.h:15:10: fatal error: xcb/xcb_ewmh.h: No such file or directory
   15 | #include <xcb/xcb_ewmh.h>
      |          ^~~~~~~~~~~~~~~~
compilation terminated.
gmake[2]: *** [CMakeFiles/hy3.dir/build.make:76: CMakeFiles/hy3.dir/src/main.cpp.o] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:83: CMakeFiles/hy3.dir/all] Error 2
gmake: *** [Makefile:136: all] Error 2


✔️ all plugins built


 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╍━━━━━━━━━  4 / 5  Installing repositoryterminate called after throwing an instance of 'std::filesystem::__cxx11::filesystem_error'
  what():  filesystem error: cannot copy file: No such file or directory [/tmp/hyprpm/new/build/libhy3.so] [/home/bsfgp/.local/share/hyprpm/hy3/hy3.so]
fish: Job 1, 'hyprpm add -v https://github.co…' terminated by signal SIGABRT (Abort)

I also tried to manually build this in /tmp/hyprpm/new/build via cmake -DCMAKE_BUILD_TYPE=Release -B build and cmake --build build and got failure.
All deps are installed.
System: fedora 39 with testing update repo. Hyprland package is 0.36.0-1.fc39
Please help

I forget to install the xcb-util-devel header.
After installing this header plugin building become works normally.
Am dumb.