horriblename / hyprgrass

hyprland plugin for touch gestures
BSD 3-Clause "New" or "Revised" License
268 stars 11 forks source link

Hyprgrass fails to build #127

Closed ForgotMyPasswd closed 4 months ago

ForgotMyPasswd commented 4 months ago

OS: EndeavourOS Hyprland Version: 0.40.0

Logs ``` [v] version returned: Hyprland, built from branch at commit cba1ade848feac44b2eda677503900639581c3f4 (props: bump version to 0.40.0). Date: Sat May 4 15:42:32 2024 Tag: v0.40.0, commits: 4606 flags: (if any) [v] parsed commit cba1ade848feac44b2eda677503900639581c3f4 at branch on Sat May 4 15:42:32 2024, commits 4606 ✔ Headers up to date. → checking for updates for hyprland-plugins → Cloning https://github.com/hyprwm/hyprland-plugins ✔ repository hyprland-plugins is up-to-date. → checking for updates for hyprgrass → Cloning https://github.com/horriblename/hyprgrass → Plugin has revision set, resetting: c3313dbbf64508118deb01e44ac2186d9b219285 ✔ repository hyprgrass has updates. → Building hyprgrass ✔ found hyprpm manifest → Building hyprgrass ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╍━━━━━━━━━━━━━━━━ 4 / 6 Updating hyprgrass[v] shell returned: -> cd /tmp/hyprpm/fahmed && PKG_CONFIG_PATH="/home/fahmed/.local/share/hyprpm/headersRoot/share/pkgconfig" meson setup build The Meson build system Version: 1.4.0 Source dir: /tmp/hyprpm/fahmed Build dir: /tmp/hyprpm/fahmed/build Build type: native build Project name: hyprgrass Project version: 0.6.0 C compiler for the host machine: cc (gcc 14.1.1 "cc (GCC) 14.1.1 20240522") C linker for the host machine: cc ld.bfd 2.42.0 C++ compiler for the host machine: c++ (gcc 14.1.1 "c++ (GCC) 14.1.1 20240522") C++ linker for the host machine: c++ ld.bfd 2.42.0 Host machine cpu family: x86_64 Host machine cpu: x86_64 Compiler for C++ supports arguments -std=c++23: YES meson.build:8: WARNING: Consider using the built-in option for language standard version instead of using "-std=c++23". Found pkg-config: YES (/usr/bin/pkg-config) 2.1.1 Run-time dependency hyprland found: YES 0.40.0 Found CMake: /usr/bin/cmake (3.29.3) Run-time dependency wftouch found: NO (tried pkgconfig and cmake) Executing subproject wf-touch wf-touch| Project name: wf-touch wf-touch| Project version: 0.0 wf-touch| C++ compiler for the host machine: c++ (gcc 14.1.1 "c++ (GCC) 14.1.1 20240522") wf-touch| C++ linker for the host machine: c++ ld.bfd 2.42.0 wf-touch| Run-time dependency glm found: YES 1.0.1 wf-touch| Run-time dependency doctest found: NO (tried pkgconfig and cmake) wf-touch| Build targets in project: 1 wf-touch| Subproject wf-touch finished. Run-time dependency doctest found: NO (tried pkgconfig and cmake) Run-time dependency pixman-1 found: YES 0.43.4 Run-time dependency libdrm found: YES 2.4.120 Build targets in project: 3 hyprgrass 0.6.0 Subprojects wf-touch: YES Found ninja-1.12.1 at /usr/bin/ninja -> cd /tmp/hyprpm/fahmed && PKG_CONFIG_PATH="/home/fahmed/.local/share/hyprpm/headersRoot/share/pkgconfig" ninja -C build ninja: Entering directory `build' [1/13] Compiling C++ object src/gestures/libgestures.a.p/Shared.cpp.o [2/13] Compiling C++ object src/gestures/libgestures.a.p/CompletedGesture.cpp.o [3/13] Compiling C++ object src/gestures/libgestures.a.p/DragGesture.cpp.o [4/13] Compiling C++ object src/gestures/libgestures.a.p/Actions.cpp.o [5/13] Compiling C++ object subprojects/wf-touch/libwftouch.a.p/src_touch.cpp.o [6/13] Compiling C++ object subprojects/wf-touch/libwftouch.a.p/src_actions.cpp.o [7/13] Compiling C++ object subprojects/wf-touch/libwftouch.a.p/src_math.cpp.o [8/13] Linking static target subprojects/wf-touch/libwftouch.a [9/13] Compiling C++ object src/gestures/libgestures.a.p/Gestures.cpp.o [10/13] Linking static target src/gestures/libgestures.a [11/13] Compiling C++ object src/libhyprgrass.so.p/main.cpp.o FAILED: src/libhyprgrass.so.p/main.cpp.o c++ -Isrc/libhyprgrass.so.p -Isrc -I../src -Isubprojects/wf-touch -I../subprojects/wf-touch -I/usr/include -I/usr/include/pixman-1 -I/usr/include/libdrm -I/home/fahmed/.local/share/hyprpm/headersRoot/include/hyprland/protocols -I/home/fahmed/.local/share/hyprpm/headersRoot/include/hyprland/wlroots-hyprland -I/home/fahmed/.local/share/hyprpm/headersRoot/include -fdiagnostics-color=always -D_GLIBCXX_ASSERTIONS=1 -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -O3 -std=c++23 -fPIC -DWLR_USE_UNSTABLE -MD -MQ src/libhyprgrass.so.p/main.cpp.o -MF src/libhyprgrass.so.p/main.cpp.o.d -o src/libhyprgrass.so.p/main.cpp.o -c ../src/main.cpp In file included from /usr/include/c++/14.1.1/chrono:45, from /home/fahmed/.local/share/hyprpm/headersRoot/include/hyprland/src/debug/Log.hpp:6, from ../src/GestureManager.hpp:7, from ../src/main.cpp:1: /usr/include/c++/14.1.1/sstream:457:7: error: ‘struct std::__cxx11::basic_stringbuf<_CharT, _Traits, _Alloc>::__xfer_bufptrs’ redeclared with different access 457 | struct __xfer_bufptrs | ^~~~~~ ../src/GestureManager.hpp:25:22: error: ‘ITouch::SDownEvent’ has not been declared 25 | bool onTouchDown(ITouch::SDownEvent e); | ^~~~~~ ../src/GestureManager.hpp:29:20: error: ‘ITouch::SUpEvent’ has not been declared 29 | bool onTouchUp(ITouch::SUpEvent e); | ^~~~~~ ../src/GestureManager.hpp:33:22: error: ‘ITouch::SMotionEvent’ has not been declared 33 | bool onTouchMove(ITouch::SMotionEvent e); | ^~~~~~ ../src/main.cpp: In function ‘void hkOnTouchDown(void*, SCallbackInfo&, std::any)’: ../src/main.cpp:17:37: error: incomplete type ‘ITouch’ used in nested name specifier 17 | auto ev = std::any_cast(e); | ^~~~~~~~~~ ../src/main.cpp:17:48: error: no matching function for call to ‘any_cast< >(std::any&)’ 17 | auto ev = std::any_cast(e); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~ In file included from /usr/include/hyprlang.hpp:6, from /home/fahmed/.local/share/hyprpm/headersRoot/include/hyprland/src/plugins/../helpers/Vector2D.hpp:6, from /home/fahmed/.local/share/hyprpm/headersRoot/include/hyprland/src/plugins/../SharedDefs.hpp:3, from /home/fahmed/.local/share/hyprpm/headersRoot/include/hyprland/src/plugins/PluginAPI.hpp:25, from ../src/globals.hpp:3, from ../src/GestureManager.hpp:4: /usr/include/c++/14.1.1/any:462:23: note: candidate: ‘template _ValueType std::any_cast(const any&)’ 462 | inline _ValueType any_cast(const any& __any) | ^~~~~~~~ /usr/include/c++/14.1.1/any:462:23: note: template argument deduction/substitution failed: ../src/main.cpp:17:48: error: template argument 1 is invalid 17 | auto ev = std::any_cast(e); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~ /usr/include/c++/14.1.1/any:488:23: note: candidate: ‘template _ValueType std::any_cast(any&)’ 488 | inline _ValueType any_cast(any& __any) | ^~~~~~~~ /usr/include/c++/14.1.1/any:488:23: note: template argument deduction/substitution failed: ../src/main.cpp:17:48: error: template argument 1 is invalid 17 | auto ev = std::any_cast(e); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~ /usr/include/c++/14.1.1/any:502:23: note: candidate: ‘template _ValueType std::any_cast(any&&)’ 502 | inline _ValueType any_cast(any&& __any) | ^~~~~~~~ /usr/include/c++/14.1.1/any:502:23: note: template argument deduction/substitution failed: ../src/main.cpp:17:48: error: template argument 1 is invalid 17 | auto ev = std::any_cast(e); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~ /usr/include/c++/14.1.1/any:555:30: note: candidate: ‘template const _ValueType* std::any_cast(const any*)’ 555 | inline const _ValueType* any_cast(const any* __any) noexcept | ^~~~~~~~ /usr/include/c++/14.1.1/any:555:30: note: template argument deduction/substitution failed: ../src/main.cpp:17:48: error: template argument 1 is invalid 17 | auto ev = std::any_cast(e); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~ /usr/include/c++/14.1.1/any:564:24: note: candidate: ‘template _ValueType* std::any_cast(any*)’ 564 | inline _ValueType* any_cast(any* __any) noexcept | ^~~~~~~~ /usr/include/c++/14.1.1/any:564:24: note: template argument deduction/substitution failed: ../src/main.cpp:17:48: error: template argument 1 is invalid 17 | auto ev = std::any_cast(e); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~ ../src/main.cpp: In function ‘void hkOnTouchUp(void*, SCallbackInfo&, std::any)’: ../src/main.cpp:23:37: error: incomplete type ‘ITouch’ used in nested name specifier 23 | auto ev = std::any_cast(e); | ^~~~~~~~ ../src/main.cpp:23:46: error: no matching function for call to ‘any_cast< >(std::any&)’ 23 | auto ev = std::any_cast(e); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~ /usr/include/c++/14.1.1/any:462:23: note: candidate: ‘template _ValueType std::any_cast(const any&)’ 462 | inline _ValueType any_cast(const any& __any) | ^~~~~~~~ /usr/include/c++/14.1.1/any:462:23: note: template argument deduction/substitution failed: ../src/main.cpp:23:46: error: template argument 1 is invalid 23 | auto ev = std::any_cast(e); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~ /usr/include/c++/14.1.1/any:488:23: note: candidate: ‘template _ValueType std::any_cast(any&)’ 488 | inline _ValueType any_cast(any& __any) | ^~~~~~~~ /usr/include/c++/14.1.1/any:488:23: note: template argument deduction/substitution failed: ../src/main.cpp:23:46: error: template argument 1 is invalid 23 | auto ev = std::any_cast(e); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~ /usr/include/c++/14.1.1/any:502:23: note: candidate: ‘template _ValueType std::any_cast(any&&)’ 502 | inline _ValueType any_cast(any&& __any) | ^~~~~~~~ /usr/include/c++/14.1.1/any:502:23: note: template argument deduction/substitution failed: ../src/main.cpp:23:46: error: template argument 1 is invalid 23 | auto ev = std::any_cast(e); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~ /usr/include/c++/14.1.1/any:555:30: note: candidate: ‘template const _ValueType* std::any_cast(const any*)’ 555 | inline const _ValueType* any_cast(const any* __any) noexcept | ^~~~~~~~ /usr/include/c++/14.1.1/any:555:30: note: template argument deduction/substitution failed: ../src/main.cpp:23:46: error: template argument 1 is invalid 23 | auto ev = std::any_cast(e); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~ /usr/include/c++/14.1.1/any:564:24: note: candidate: ‘template _ValueType* std::any_cast(any*)’ 564 | inline _ValueType* any_cast(any* __any) noexcept | ^~~~~~~~ /usr/include/c++/14.1.1/any:564:24: note: template argument deduction/substitution failed: ../src/main.cpp:23:46: error: template argument 1 is invalid 23 | auto ev = std::any_cast(e); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~ ../src/main.cpp: In function ‘void hkOnTouchMove(void*, SCallbackInfo&, std::any)’: ../src/main.cpp:29:37: error: incomplete type ‘ITouch’ used in nested name specifier 29 | auto ev = std::any_cast(e); | ^~~~~~~~~~~~ ../src/main.cpp:29:50: error: no matching function for call to ‘any_cast< >(std::any&)’ 29 | auto ev = std::any_cast(e); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~ /usr/include/c++/14.1.1/any:462:23: note: candidate: ‘template _ValueType std::any_cast(const any&)’ 462 | inline _ValueType any_cast(const any& __any) | ^~~~~~~~ /usr/include/c++/14.1.1/any:462:23: note: template argument deduction/substitution failed: ../src/main.cpp:29:50: error: template argument 1 is invalid 29 | auto ev = std::any_cast(e); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~ /usr/include/c++/14.1.1/any:488:23: note: candidate: ‘template _ValueType std::any_cast(any&)’ 488 | inline _ValueType any_cast(any& __any) | ^~~~~~~~ /usr/include/c++/14.1.1/any:488:23: note: template argument deduction/substitution failed: ../src/main.cpp:29:50: error: template argument 1 is invalid 29 | auto ev = std::any_cast(e); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~ /usr/include/c++/14.1.1/any:502:23: note: candidate: ‘template _ValueType std::any_cast(any&&)’ 502 | inline _ValueType any_cast(any&& __any) | ^~~~~~~~ /usr/include/c++/14.1.1/any:502:23: note: template argument deduction/substitution failed: ../src/main.cpp:29:50: error: template argument 1 is invalid 29 | auto ev = std::any_cast(e); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~ /usr/include/c++/14.1.1/any:555:30: note: candidate: ‘template const _ValueType* std::any_cast(const any*)’ 555 | inline const _ValueType* any_cast(const any* __any) noexcept | ^~~~~~~~ /usr/include/c++/14.1.1/any:555:30: note: template argument deduction/substitution failed: ../src/main.cpp:29:50: error: template argument 1 is invalid 29 | auto ev = std::any_cast(e); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~ /usr/include/c++/14.1.1/any:564:24: note: candidate: ‘template _ValueType* std::any_cast(any*)’ 564 | inline _ValueType* any_cast(any* __any) noexcept | ^~~~~~~~ /usr/include/c++/14.1.1/any:564:24: note: template argument deduction/substitution failed: ../src/main.cpp:29:50: error: template argument 1 is invalid 29 | auto ev = std::any_cast(e); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~ [12/13] Compiling C++ object src/libhyprgrass.so.p/GestureManager.cpp.o FAILED: src/libhyprgrass.so.p/GestureManager.cpp.o c++ -Isrc/libhyprgrass.so.p -Isrc -I../src -Isubprojects/wf-touch -I../subprojects/wf-touch -I/usr/include -I/usr/include/pixman-1 -I/usr/include/libdrm -I/home/fahmed/.local/share/hyprpm/headersRoot/include/hyprland/protocols -I/home/fahmed/.local/share/hyprpm/headersRoot/include/hyprland/wlroots-hyprland -I/home/fahmed/.local/share/hyprpm/headersRoot/include -fdiagnostics-color=always -D_GLIBCXX_ASSERTIONS=1 -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -O3 -std=c++23 -fPIC -DWLR_USE_UNSTABLE -MD -MQ src/libhyprgrass.so.p/GestureManager.cpp.o -MF src/libhyprgrass.so.p/GestureManager.cpp.o.d -o src/libhyprgrass.so.p/GestureManager.cpp.o -c ../src/GestureManager.cpp In file included from /usr/include/c++/14.1.1/chrono:45, from /home/fahmed/.local/share/hyprpm/headersRoot/include/hyprland/src/debug/Log.hpp:6, from ../src/GestureManager.hpp:7, from ../src/GestureManager.cpp:1: /usr/include/c++/14.1.1/sstream:457:7: error: ‘struct std::__cxx11::basic_stringbuf<_CharT, _Traits, _Alloc>::__xfer_bufptrs’ redeclared with different access 457 | struct __xfer_bufptrs | ^~~~~~ ../src/GestureManager.hpp:25:22: error: ‘ITouch::SDownEvent’ has not been declared 25 | bool onTouchDown(ITouch::SDownEvent e); | ^~~~~~ ../src/GestureManager.hpp:29:20: error: ‘ITouch::SUpEvent’ has not been declared 29 | bool onTouchUp(ITouch::SUpEvent e); | ^~~~~~ ../src/GestureManager.hpp:33:22: error: ‘ITouch::SMotionEvent’ has not been declared 33 | bool onTouchMove(ITouch::SMotionEvent e); | ^~~~~~ ../src/GestureManager.cpp: In member function ‘void GestureManager::emulateSwipeBegin(uint32_t)’: ../src/GestureManager.cpp:89:37: error: incomplete type ‘IPointer’ used in nested name specifier 89 | auto emulated_swipe = IPointer::SSwipeBeginEvent{ | ^~~~~~~~~~~~~~~~ ../src/GestureManager.cpp:83:23: warning: unused variable ‘PSWIPEFINGERS’ [-Wunused-variable] 83 | static auto const PSWIPEFINGERS = | ^~~~~~~~~~~~~ ../src/GestureManager.cpp: In member function ‘void GestureManager::emulateSwipeEnd(uint32_t, bool)’: ../src/GestureManager.cpp:100:37: error: incomplete type ‘IPointer’ used in nested name specifier 100 | auto emulated_swipe = IPointer::SSwipeEndEvent{ | ^~~~~~~~~~~~~~ ../src/GestureManager.cpp: In member function ‘void GestureManager::emulateSwipeUpdate(uint32_t)’: ../src/GestureManager.cpp:121:37: error: incomplete type ‘IPointer’ used in nested name specifier 121 | auto emulated_swipe = IPointer::SSwipeUpdateEvent{ | ^~~~~~~~~~~~~~~~~ ../src/GestureManager.cpp:108:23: warning: unused variable ‘PSWIPEDIST’ [-Wunused-variable] 108 | static auto const PSWIPEDIST = | ^~~~~~~~~~ ../src/GestureManager.cpp: At global scope: ../src/GestureManager.cpp:315:6: error: no declaration matches ‘bool GestureManager::onTouchDo wn(ITouch::SDownEvent)’ 315 | bool GestureManager::onTouchDown(ITouch::SDownEvent ev) { | ^~~~~~~~~~~~~~ ../src/GestureManager.hpp:25:10: note: candidate is: ‘bool GestureManager::onTouchDown(int)’ 25 | bool onTouchDown(ITouch::SDownEvent e); | ^~~~~~~~~~~ ../src/GestureManager.hpp:18:7: note: ‘class GestureManager’ defined here 18 | class GestureManager : public IGestureManager { | ^~~~~~~~~~~~~~ ../src/GestureManager.cpp:356:6: error: no declaration matches ‘bool GestureManager::onTouchUp(ITouch::SUpEvent)’ 356 | bool GestureManager::onTouchUp(ITouch::SUpEvent ev) { | ^~~~~~~~~~~~~~ ../src/GestureManager.hpp:29:10: note: candidate is: ‘bool GestureManager::onTouchUp(int)’ 29 | bool onTouchUp(ITouch::SUpEvent e); | ^~~~~~~~~ ../src/GestureManager.hpp:18:7: note: ‘class GestureManager’ defined here 18 | class GestureManager : public IGestureManager { | ^~~~~~~~~~~~~~ ../src/GestureManager.cpp:387:6: error: no declaration matches ‘bool GestureManager::onTouchMove(ITouch::SMotionEvent)’ 387 | bool GestureManager::onTouchMove(ITouch::SMotionEvent ev) { | ^~~~~~~~~~~~~~ ../src/GestureManager.hpp:33:10: note: candidate is: ‘bool GestureManager::onTouchMove(int)’ 33 | bool onTouchMove(ITouch::SMotionEvent e); | ^~~~~~~~~~~ ../src/GestureManager.hpp:18:7: note: ‘class GestureManager’ defined here 18 | class GestureManager : public IGestureManager { | ^~~~~~~~~~~~~~ ninja: build stopped: subcommand failed. ✖ Plugin hyprgrass failed to build. This likely means that the plugin is either outdated, not yet available for your version, or broken. If you are on -git, update first. Try re-running with -v to see more verbose output. Fetching submodule subprojects/wf-touch ✔ updated hyprgrass ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 6 / 6 Done! ✔ Ensuring plugin load state ✔ Loaded hyprgrass ✔ Plugin load state ensured ```
ForgotMyPasswd commented 4 months ago

Rolling back to 6c9efffc23dcb6370d1d1328e2858fa466baca21 allows the plugin to build correctly.

ForgotMyPasswd commented 4 months ago

It builds correctly after removing the repository then adding it again with hyprpm