Hyprland build error on nixos
Felopater-Melika opened this issue · 0 comments
Felopater-Melika commented
~/system master !1 to the PKG_CONFIG_PATH environment variable
Package 'libpcre2-8', required by 'glib-2.0', not found
Package libpcre2-8 was not found in the pkg-config search path.
Perhaps you should add the directory containing `libpcre2-8.pc'
to the PKG_CONFIG_PATH environment variable
Package 'libpcre2-8', required by 'glib-2.0', not found
-- Configuring done (1.0s)
-- Generating done (0.0s)
CMake Warning:
Manually-specified variables were not used by the project:
BUILD_TESTING
CMAKE_EXPORT_NO_PACKAGE_REGISTRY
CMAKE_INSTALL_BINDIR
CMAKE_INSTALL_DOCDIR
CMAKE_INSTALL_INCLUDEDIR
CMAKE_INSTALL_INFODIR
CMAKE_INSTALL_LIBEXECDIR
CMAKE_INSTALL_LOCALEDIR
CMAKE_INSTALL_MANDIR
CMAKE_INSTALL_OLDINCLUDEDIR
CMAKE_INSTALL_SBINDIR
CMAKE_POLICY_DEFAULT_CMP0025
-- Build files have been written to: /build/xnhqdmp2fivhvvxxqawclc2mlmnhjsr7-source/build
@nix { "action": "setPhase", "phase": "buildPhase" }
Running phase: buildPhase
build flags: -j16
[1/7] Building CXX object CMakeFiles/hy3.dir/src/Hy3Layout.cpp.o
FAILED: CMakeFiles/hy3.dir/src/Hy3Layout.cpp.o
/nix/store/ac1hb5dc2z4biwgy8mjrhlifffkkrvdq-gcc-wrapper-13.2.0/bin/g++ -DWLR_USE_UNSTABLE -Dhy3_EXPORTS -I/nix/store/l93f6lkg4gs4w1xaad3wp5y5zlnnsdzr-hyprland-0.38.0+date=2024-04-07_f2a848c-dev/include/hyprland/protocols -I/nix/store/l93f6lkg4gs4w1xaad3wp5y5zlnnsdzr-hyprland-0.38.0+date=2024-04-07_f2a848c-dev/include/hyprland/wlroots -I/nix/store/m1kx60ln0zyg4nywl8yrpl6zy0g10srl-pango-1.51.2-dev/include/pango-1.0 -I/nix/store/y66wf2widknj05vg13lcmipdsl9xzlk0-cairo-1.18.0-dev/include/cairo -I/nix/store/z1xzvmw2bzzk3x403zab39lq0r2sxbkw-glib-2.78.4-dev/include/glib-2.0 -I/nix/store/q6jyzkl2f1capj5yc0rq65i0zfm9b82k-glib-2.78.4/lib/glib-2.0/include -I/nix/store/86flfz614gqln2znq398351jkbx93cd4-harfbuzz-8.3.0-dev/include/harfbuzz -I/nix/store/njw23bh48h17f4mxb1zywv1gn89brz6r-libdrm-2.4.120-dev/include/libdrm -O2 -g -DNDEBUG -std=gnu++23 -fPIC -Wall -Wextra -Wno-unused-parameter -Wno-unused-value -Wno-missing-field-initializers -Wno-narrowing -Wno-pointer-arith -MD -MT CMakeFiles/hy3.dir/src/Hy3Layout.cpp.o -MF CMakeFiles/hy3.dir/src/Hy3Layout.cpp.o.d -o CMakeFiles/hy3.dir/src/Hy3Layout.cpp.o -c /build/xnhqdmp2fivhvvxxqawclc2mlmnhjsr7-source/src/Hy3Layout.cpp
/build/xnhqdmp2fivhvvxxqawclc2mlmnhjsr7-source/src/Hy3Layout.cpp: In member function 'void Hy3Layout::applyNodeDataToWindow(Hy3Node*, bool)':
/build/xnhqdmp2fivhvvxxqawclc2mlmnhjsr7-source/src/Hy3Layout.cpp:1479:56: error: 'class CConfigManager' has no member named 'getWorkspaceRulesFor'; did you mean 'getWorkspaceRuleFor'?
1479 | const auto workspace_rules = g_pConfigManager->getWorkspaceRulesFor(node->workspace);
| ^~~~~~~~~~~~~~~~~~~~
| getWorkspaceRuleFor
[2/7] Building CXX object CMakeFiles/hy3.dir/src/main.cpp.o
[3/7] Building CXX object CMakeFiles/hy3.dir/src/SelectionHook.cpp.o
[4/7] Building CXX object CMakeFiles/hy3.dir/src/TabGroup.cpp.o
[5/7] Building CXX object CMakeFiles/hy3.dir/src/dispatchers.cpp.o
[6/7] Building CXX object CMakeFiles/hy3.dir/src/Hy3Node.cpp.o
/build/xnhqdmp2fivhvvxxqawclc2mlmnhjsr7-source/src/Hy3Node.cpp: In member function 'void Hy3Node::recalcSizePosRecursive(bool)':
/build/xnhqdmp2fivhvvxxqawclc2mlmnhjsr7-source/src/Hy3Node.cpp:351:72: warning: 'constraint' may be used uninitialized [-Wmaybe-uninitialized]
351 | group->layout != Hy3GroupLayout::Tabbed ? child_count <= 0 ? 0 : constraint / child_count : 0;
| ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/build/xnhqdmp2fivhvvxxqawclc2mlmnhjsr7-source/src/Hy3Node.cpp:332:16: note: 'constraint' was declared here
332 | double constraint;
| ^~~~~~~~~~
ninja: build stopped: subcommand failed.