Duckonaut / hyprload

A Hyprland plugin manager
BSD 3-Clause "New" or "Revised" License
194 stars 13 forks source link

Installation error #20

Closed Longpiggy closed 1 year ago

Longpiggy commented 1 year ago

I'm experiencing the same errors as reported here and also here

I've tried installing wlroots-git as described in one of the above issues, tried uninstalling wl-roots* and letting Hyprload provide it - all to no avail. I'm very much stuck on how to continue with this.

hyprctl version

Hyprland, built from branch main at commit 2c4a06eb547e11e818bbc94d90ecb1b32de21c21 dirty (deps: update hyprland-protocols).
Tag: v0.30.0-7-g2c4a06eb

flags: (if any)

pkg-config --cflags hyprland -I/usr/local/include/hyprland/protocols -I/usr/local/include/hyprland/wlroots -I/usr/local/include

I do not have /usr/local/include/wlr but contents of /usr/local/include/hyprland/wlroots/wlr is

backend
interfaces
render
types
util
xwayland
backend.h
config.h
config.h.in
version.h
version.h.in
xcursor.h
xwayland.h

and the full error is

``` curl -sSL https://raw.githubusercontent.com/Duckonaut/hyprload/main/install.sh | bash [1/7] Cloning hyprload to /home/longpig/.local/share/hyprload/src Already up to date. [2/7] Cloned hyprload source to /home/longpig/.local/share/hyprload/src [3/7] Setting up hyprland source in /home/longpig/.local/share/hyprload/hyprland You are not currently on a branch. Please specify which branch you want to merge with. See git-pull(1) for details. git pull M subprojects/wlroots HEAD is now at 2c4a06eb deps: update hyprland-protocols [4/7] Set up hyprland source in /home/longpig/.local/share/hyprload/hyprland at commit 2c4a06eb547e11e818bbc94d90ecb1b32de21c21 [5/7] Setting up hyprland plugin environment make: Entering directory '/home/longpig/.local/share/hyprload/hyprland' cd subprojects/udis86 && cmake --no-warn-unused-cli -DCMAKE_BUILD_TYPE:STRING=Release -S . -B ./build -G Ninja && cmake --build ./build --config Release --target all -j`nproc 2>/dev/null || getconf NPROCESSORS_CONF` Not searching for unused variables given on the command line. -- Configuring done (0.0s) -- Generating done (0.0s) -- Build files have been written to: /home/longpig/.local/share/hyprload/hyprland/subprojects/udis86/build ninja: no work to do. /usr/bin/make fixwlr make[1]: Entering directory '/home/longpig/.local/share/hyprload/hyprland' sed -E -i -e 's/(soversion = 12)([^032]|$)/soversion = 12032/g' subprojects/wlroots/meson.build rm -rf ./subprojects/wlroots/build make[1]: Leaving directory '/home/longpig/.local/share/hyprload/hyprland' meson setup subprojects/wlroots/build subprojects/wlroots --prefix=/usr/local --buildtype=release -Dwerror=false -Dexamples=false The Meson build system Version: 1.2.1 Source dir: /home/longpig/.local/share/hyprload/hyprland/subprojects/wlroots Build dir: /home/longpig/.local/share/hyprload/hyprland/subprojects/wlroots/build Build type: native build Project name: wlroots Project version: 0.17.0-dev C compiler for the host machine: cc (gcc 13.2.1 "cc (GCC) 13.2.1 20230801") C linker for the host machine: cc ld.bfd 2.41.0 Host machine cpu family: x86_64 Host machine cpu: x86_64 Compiler for C supports arguments -Wundef: YES Compiler for C supports arguments -Wlogical-op: YES Compiler for C supports arguments -Wmissing-include-dirs: YES Compiler for C supports arguments -Wold-style-definition: YES Compiler for C supports arguments -Wpointer-arith: YES Compiler for C supports arguments -Winit-self: YES Compiler for C supports arguments -Wstrict-prototypes: YES Compiler for C supports arguments -Wimplicit-fallthrough=2: YES Compiler for C supports arguments -Wendif-labels: YES Compiler for C supports arguments -Wstrict-aliasing=2: YES Compiler for C supports arguments -Woverflow: YES Compiler for C supports arguments -Wmissing-prototypes: YES Compiler for C supports arguments -Walloca: YES Compiler for C supports arguments -Wno-missing-braces: YES Compiler for C supports arguments -Wno-missing-field-initializers: YES Compiler for C supports arguments -Wno-unused-parameter: YES Compiler for C supports arguments -fmacro-prefix-map=/prefix/to/hide=: YES Found pkg-config: /usr/sbin/pkg-config (1.8.1) Run-time dependency wayland-server found: YES 1.22.0 Run-time dependency libdrm found: YES 2.4.116 Run-time dependency xkbcommon found: YES 1.5.0 Run-time dependency pixman-1 found: YES 0.42.2 Library m found: YES Library rt found: YES Run-time dependency wayland-protocols found: YES 1.32 Found pkg-config: /usr/sbin/pkg-config (1.8.1) Build-time dependency wayland-scanner found: YES 1.22.0 Program /usr/bin/wayland-scanner found: YES (/usr/bin/wayland-scanner) Has header "linux/dma-buf.h" : YES Run-time dependency egl found: YES 1.5 Run-time dependency gbm found: YES 23.1.8-arch1.1 Run-time dependency glesv2 found: YES 3.2 Program ./embed.sh found: YES (/home/longpig/.local/share/hyprload/hyprland/subprojects/wlroots/render/gles2/shaders/./embed.sh) Run-time dependency vulkan found: YES 1.3.263 Check usable header "vulkan/vulkan.h" with dependency vulkan: YES Program glslang found: YES (/usr/sbin/glslang) Dependency pixman-1 found: YES 0.42.2 (cached) Dependency gbm found: YES 23.1.8-arch1.1 (cached) Checking for function "gbm_bo_get_fd_for_plane" with dependency gbm: YES Run-time dependency libudev found: YES 254 Run-time dependency libseat found: YES 0.8.0 Build-time dependency hwdata found: YES 0.374 Run-time dependency libdisplay-info found: YES 0.1.1 Run-time dependency libliftoff found: YES 0.4.1 Run-time dependency libinput found: YES 1.24.0 Run-time dependency xcb found: YES 1.16 Run-time dependency xcb-dri3 found: YES 1.16 Run-time dependency xcb-present found: YES 1.16 Run-time dependency xcb-render found: YES 1.16 Run-time dependency xcb-renderutil found: YES 0.3.10 Run-time dependency xcb-shm found: YES 1.16 Run-time dependency xcb-xfixes found: YES 1.16 Run-time dependency xcb-xinput found: YES 1.16 Run-time dependency wayland-client found: YES 1.22.0 Run-time dependency xwayland found: YES 23.2.1 Dependency xcb found: YES 1.16 (cached) Run-time dependency xcb-composite found: YES 1.16 Run-time dependency xcb-ewmh found: YES 0.4.2 Run-time dependency xcb-icccm found: YES 0.4.2 Dependency xcb-render found: YES 1.16 (cached) Run-time dependency xcb-res found: YES 1.16 Dependency xcb-xfixes found: YES 1.16 (cached) Run-time dependency xcb-errors found: YES 1.0.1 Checking for function "xcb_xfixes_set_client_disconnect_mode" with dependencies xcb, xcb-composite, xcb-ewmh, xcb-icccm, xcb-render, xcb-res, xcb-xfixes, xcb-errors: YES Configuring config.h using configuration Configuring version.h using configuration Configuring config.h using configuration Build targets in project: 134 wlroots 0.17.0-dev drm-backend : YES x11-backend : YES libinput-backend: YES xwayland : YES gles2-renderer : YES vulkan-renderer : YES gbm-allocator : YES session : YES xcb-errors : YES egl : YES libliftoff : YES User defined options buildtype : release prefix : /usr/local werror : false examples : false Found ninja-1.11.1 at /usr/sbin/ninja ninja -C subprojects/wlroots/build/ ninja: Entering directory `subprojects/wlroots/build/' [316/316] Linking target libwlroots.so.12032 cmake --no-warn-unused-cli -DCMAKE_BUILD_TYPE:STRING=Release -S . -B ./build -G Ninja Not searching for unused variables given on the command line. -- Gathering git info fatal: detected dubious ownership in repository at '/home/longpig/.local/share/hyprload/hyprland' To add an exception for this directory, call: git config --global --add safe.directory /home/longpig/.local/share/hyprload/hyprland fatal: detected dubious ownership in repository at '/home/longpig/.local/share/hyprload/hyprland' To add an exception for this directory, call: git config --global --add safe.directory /home/longpig/.local/share/hyprload/hyprland fatal: detected dubious ownership in repository at '/home/longpig/.local/share/hyprload/hyprland' To add an exception for this directory, call: git config --global --add safe.directory /home/longpig/.local/share/hyprload/hyprland fatal: detected dubious ownership in repository at '/home/longpig/.local/share/hyprload/hyprland' To add an exception for this directory, call: git config --global --add safe.directory /home/longpig/.local/share/hyprload/hyprland fatal: detected dubious ownership in repository at '/home/longpig/.local/share/hyprload/hyprland' To add an exception for this directory, call: git config --global --add safe.directory /home/longpig/.local/share/hyprload/hyprland -- Found WaylandScanner at /usr/sbin/wayland-scanner -- Found wayland-protocols at //usr/share/wayland-protocols -- Configuring Hyprland in Release with CMake -- Checking deps... -- XWAYLAND Enabled (NO_XWAYLAND not defined) checking deps... -- SYSTEMD support is requested (NO_SYSTEMD not defined) checking deps... -- Setting precompiled headers -- Setting link libraries -- Configuring done (0.2s) -- Generating done (0.0s) -- Build files have been written to: /home/longpig/.local/share/hyprload/hyprland/build mkdir -p /usr/local/include/hyprland mkdir -p /usr/local/include/hyprland/protocols mkdir -p /usr/local/include/hyprland/wlroots mkdir -p /usr/local/share/pkgconfig find src -name '*.h*' -print0 | cpio --quiet -0dump /usr/local/include/hyprland cd subprojects/wlroots/include && find . -name '*.h*' -print0 | cpio --quiet -0dump /usr/local/include/hyprland/wlroots && cd ../../.. cd subprojects/wlroots/build/include && find . -name '*.h*' -print0 | cpio --quiet -0dump /usr/local/include/hyprland/wlroots && cd ../../../.. cp ./protocols/*-protocol.h /usr/local/include/hyprland/protocols cp ./build/hyprland.pc /usr/local/share/pkgconfig if [ -d /usr/share/pkgconfig ]; then cp ./build/hyprland.pc /usr/share/pkgconfig 2>/dev/null || true; fi make: Leaving directory '/home/longpig/.local/share/hyprload/hyprland' [6/7] Installing hyprload make: Entering directory '/home/longpig/.local/share/hyprload/src' Hyprland headers found. Building with XWayland support. g++ -c -o obj/util.o src/util.cpp -g -fPIC --no-gnu-unique -std=c++23 `pkg-config --cflags pixman-1 libdrm hyprland` -Iinclude -DWLR_USE_UNSTABLE In file included from src/util.cpp:2: include/globals.hpp:2: warning: "WLR_USE_UNSTABLE" redefined 2 | #define WLR_USE_UNSTABLE | : note: this is the location of the previous definition src/util.cpp: In function ‘void hyprload::info(const std::string&, usize)’: src/util.cpp:77:19: in ‘constexpr’ expansion of ‘std::operator+(_CharT, const __cxx11::basic_string<_CharT, _Traits, _Allocator>&) [with _CharT = char; _Traits = char_traits; _Alloc = allocator](logMessage)’ /usr/include/c++/13.2.1/bits/basic_string.h:3582:21: in ‘constexpr’ expansion of ‘(& __rhs)->std::__cxx11::basic_string::c_str()’ /usr/include/c++/13.2.1/bits/basic_string.h:2584:23: in ‘constexpr’ expansion of ‘((const std::__cxx11::basic_string*)this)->std::__cxx11::basic_string::_M_data()’ src/util.cpp:77:19: error: the value of ‘logMessage’ is not usable in a constant expression 77 | Debug::log(LOG, (' ' + logMessage).c_str()); | ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/util.cpp:67:21: note: ‘logMessage’ was not declared ‘constexpr’ 67 | std::string logMessage = "[hyprload] " + message; | ^~~~~~~~~~ src/util.cpp: In function ‘void hyprload::success(const std::string&, usize)’: src/util.cpp:91:19: in ‘constexpr’ expansion of ‘std::operator+(_CharT, const __cxx11::basic_string<_CharT, _Traits, _Allocator>&) [with _CharT = char; _Traits = char_traits; _Alloc = allocator](logMessage)’ /usr/include/c++/13.2.1/bits/basic_string.h:3582:21: in ‘constexpr’ expansion of ‘(& __rhs)->std::__cxx11::basic_string::c_str()’ /usr/include/c++/13.2.1/bits/basic_string.h:2584:23: in ‘constexpr’ expansion of ‘((const std::__cxx11::basic_string*)this)->std::__cxx11::basic_string::_M_data()’ src/util.cpp:91:19: error: the value of ‘logMessage’ is not usable in a constant expression 91 | Debug::log(LOG, (' ' + logMessage).c_str()); | ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/util.cpp:81:21: note: ‘logMessage’ was not declared ‘constexpr’ 81 | std::string logMessage = "[hyprload] " + message; | ^~~~~~~~~~ src/util.cpp: In function ‘void hyprload::error(const std::string&, usize)’: src/util.cpp:105:19: in ‘constexpr’ expansion of ‘std::operator+(_CharT, const __cxx11::basic_string<_CharT, _Traits, _Allocator>&) [with _CharT = char; _Traits = char_traits; _Alloc = allocator](logMessage)’ /usr/include/c++/13.2.1/bits/basic_string.h:3582:21: in ‘constexpr’ expansion of ‘(& __rhs)->std::__cxx11::basic_string::c_str()’ /usr/include/c++/13.2.1/bits/basic_string.h:2584:23: in ‘constexpr’ expansion of ‘((const std::__cxx11::basic_string*)this)->std::__cxx11::basic_string::_M_data()’ src/util.cpp:105:19: error: the value of ‘logMessage’ is not usable in a constant expression 105 | Debug::log(LOG, (' ' + logMessage).c_str()); | ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/util.cpp:95:21: note: ‘logMessage’ was not declared ‘constexpr’ 95 | std::string logMessage = "[hyprload] " + message; | ^~~~~~~~~~ src/util.cpp: In function ‘void hyprload::debug(const std::string&, usize)’: src/util.cpp:119:19: in ‘constexpr’ expansion of ‘std::operator+(_CharT, const __cxx11::basic_string<_CharT, _Traits, _Allocator>&) [with _CharT = char; _Traits = char_traits; _Alloc = allocator](debugMessage)’ /usr/include/c++/13.2.1/bits/basic_string.h:3582:21: in ‘constexpr’ expansion of ‘(& __rhs)->std::__cxx11::basic_string::c_str()’ /usr/include/c++/13.2.1/bits/basic_string.h:2584:23: in ‘constexpr’ expansion of ‘((const std::__cxx11::basic_string*)this)->std::__cxx11::basic_string::_M_data()’ src/util.cpp:119:19: error: the value of ‘debugMessage’ is not usable in a constant expression 119 | Debug::log(LOG, (' ' + debugMessage).c_str()); | ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/util.cpp:109:21: note: ‘debugMessage’ was not declared ‘constexpr’ 109 | std::string debugMessage = "[hyprload] " + message; | ^~~~~~~~~~~~ make: *** [Makefile:62: obj/util.o] Error 1 make: Leaving directory '/home/longpig/.local/share/hyprload/src' [7/7] Installed hyprload! ```

Any assistance would be greatly appreciated :)

Longpiggy commented 1 year ago

After messing around for a good hour or so, today after an update/restart I tried again and it just worked. Absolutely no idea why or how.