Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NixOS build failure (<wlr/backend.h>) #77

Closed
jacekpoz opened this issue May 9, 2024 · 5 comments
Closed

NixOS build failure (<wlr/backend.h>) #77

jacekpoz opened this issue May 9, 2024 · 5 comments
Assignees
Labels
build error The plugin couldn't be built property NixOS

Comments

@jacekpoz
Copy link

jacekpoz commented May 9, 2024

[1/2] Compiling C++ object libsplit-monitor-workspaces.so.p/src_main.cpp.o
FAILED: libsplit-monitor-workspaces.so.p/src_main.cpp.o 
g++ -Ilibsplit-monitor-workspaces.so.p -I. -I.. -I../include -I/nix/store/qd3f6x4a9v6wcbx33snmgfivpkxkyk5f-hyprland-0.40.0+date=2024-05-09_d7aed24//nix/store/ih2a7nj3218dpcl5kf9f8qzdyhyp8d0x-hyprland-0.40.0+date=2024-05-09_d7aed24-dev/include -I/nix/store/qd3f6x4a9v6wcbx33snmgfivpkxkyk5f-hyprland-0.40.0+date=2024-05-09_d7aed24//nix/store/ih2a7nj3218dpcl5kf9f8qzdyhyp8d0x-hyprland-0.40.0+date=2024-05-09_d7aed24-dev/include/hyprland/protocols -I/nix/store/qd3f6x4a9v6wcbx33snmgfivpkxkyk5f-hyprland-0.40.0+date=2024-05-09_d7aed24//nix/store/ih2a7nj3218dpcl5kf9f8qzdyhyp8d0x-hyprland-0.40.0+date=2024-05-09_d7aed24-dev/include/hyprland -I/nix/store/qd3f6x4a9v6wcbx33snmgfivpkxkyk5f-hyprland-0.40.0+date=2024-05-09_d7aed24//nix/store/ih2a7nj3218dpcl5kf9f8qzdyhyp8d0x-hyprland-0.40.0+date=2024-05-09_d7aed24-dev/include/hyprland/wlroots-hyprland -I/nix/store/ldz76qcgv1ic8s8jlvhcyw51s7pzl2bx-pixman-0.43.4/include/pixman-1 -I/nix/store/bnanzp44z8gxxqcm2b9sw4wpymnlfqpp-libdrm-2.4.120-dev/include -I/nix/store/bnanzp44z8gxxqcm2b9sw4wpymnlfqpp-libdrm-2.4.120-dev/include/libdrm -fdiagnostics-color=always -D_GLIBCXX_ASSERTIONS=1 -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c++23 -DWLR_USE_UNSTABLE -fPIC -MD -MQ libsplit-monitor-workspaces.so.p/src_main.cpp.o -MF libsplit-monitor-workspaces.so.p/src_main.cpp.o.d -o libsplit-monitor-workspaces.so.p/src_main.cpp.o -c ../src/main.cpp
In file included from /nix/store/ih2a7nj3218dpcl5kf9f8qzdyhyp8d0x-hyprland-0.40.0+date=2024-05-09_d7aed24-dev/include/hyprland/src/defines.hpp:1,
                 from /nix/store/ih2a7nj3218dpcl5kf9f8qzdyhyp8d0x-hyprland-0.40.0+date=2024-05-09_d7aed24-dev/include/hyprland/src/Compositor.hpp:7,
                 from ../src/main.cpp:3:
/nix/store/ih2a7nj3218dpcl5kf9f8qzdyhyp8d0x-hyprland-0.40.0+date=2024-05-09_d7aed24-dev/include/hyprland/src/includes.hpp:36:10: fatal error: wlr/backend.h: No such file or directory
   36 | #include <wlr/backend.h>
      |          ^~~~~~~~~~~~~~~
compilation terminated.
ninja: build stopped: subcommand failed.

hyprland d7aed240db408259228bf09708986c82bdca23eb
split-monitor-workspaces 9befbe8e72f223531ec3382b26300e9f0be6cddc

@zjeffer zjeffer added bug Something isn't working NixOS labels May 9, 2024
@zjeffer
Copy link
Collaborator

zjeffer commented May 9, 2024

Did it work with previous versions of Hyprland?

Do you have the wlr/backend.h file on your system? On my system (Arch), it's located in /usr/include/hyprland/wlroots/wlr/backend.h.

@zjeffer zjeffer self-assigned this May 9, 2024
@zjeffer zjeffer added build error The plugin couldn't be built property and removed bug Something isn't working labels May 9, 2024
@jacekpoz
Copy link
Author

jacekpoz commented May 9, 2024

Did it work with previous versions of Hyprland?

before updating my flake hyprland was at 589f758d947cb4e8b888d2da00076a9fb0a6d521 and split-monitor-workspaces was at 65d4cb11a27f8c0e6aa976e5d1c17d9086469938, haven't bisected yet, will do that tomorrow most likely if it's not related to this hyprwm/hyprland-plugins#164

Do you have the wlr/backend.h file on your system? On my system (Arch), it's located in /usr/include/hyprland/wlroots/wlr/backend.h.

it's built by nix, the derivation should have all the correct dependencies - if that's the case it'll most likely be fixed when this gets merged hyprwm/Hyprland#5952

@zjeffer
Copy link
Collaborator

zjeffer commented May 11, 2024

That PR has now been merged, can you try again?

@jacekpoz
Copy link
Author

still broken but just built with hyprwm/Hyprland#6002 and it works, I'll close this when that PR gets merged

@jacekpoz
Copy link
Author

merged and fixed, closing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build error The plugin couldn't be built property NixOS
Projects
None yet
Development

No branches or pull requests

2 participants