Closed myamusashi closed 3 months ago
g++ -shared -fPIC --no-gnu-unique -Wall -g -DWLR_USE_UNSTABLE -std=c++2b -O2 `pkg-config --cflags pixman-1 libdrm hyprland pangocairo libinput libudev wayland-server xkbcommon` src/Input.cpp src/Layout.cpp src/main.cpp src/Overview.cpp src/Render.cpp -o Hyprspace.so src/main.cpp: In function ‘void onTouchDown(void*, SCallbackInfo&, std::any)’: src/main.cpp:266:34: error: ‘wlr_touch_down_event’ was not declared in this scope; did you mean ‘wl_resource_post_event’? 266 | const auto e = std::any_cast<wlr_touch_down_event*>(args); | ^~~~~~~~~~~~~~~~~~~~ | wl_resource_post_event src/main.cpp:266:25: error: parse error in template argument list 266 | const auto e = std::any_cast<wlr_touch_down_event*>(args); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/main.cpp:266:56: error: no matching function for call to ‘any_cast<<expression error> >(std::any&)’ 266 | const auto e = std::any_cast<wlr_touch_down_event*>(args); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~ In file included from /usr/include/hyprland/src/SharedDefs.hpp:5, from /usr/include/hyprland/src/includes.hpp:36, from /usr/include/hyprland/src/defines.hpp:1, from /usr/include/hyprland/src/plugins/PluginSystem.hpp:3, from src/main.cpp:1: /usr/include/c++/14.1.1/any:462:23: note: candidate: ‘template<class _ValueType> _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:266:56: error: template argument 1 is invalid 266 | const auto e = std::any_cast<wlr_touch_down_event*>(args); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~ /usr/include/c++/14.1.1/any:488:23: note: candidate: ‘template<class _ValueType> _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:266:56: error: template argument 1 is invalid 266 | const auto e = std::any_cast<wlr_touch_down_event*>(args); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~ /usr/include/c++/14.1.1/any:502:23: note: candidate: ‘template<class _ValueType> _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:266:56: error: template argument 1 is invalid 266 | const auto e = std::any_cast<wlr_touch_down_event*>(args); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~ /usr/include/c++/14.1.1/any:555:30: note: candidate: ‘template<class _ValueType> 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:266:56: error: template argument 1 is invalid 266 | const auto e = std::any_cast<wlr_touch_down_event*>(args); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~ /usr/include/c++/14.1.1/any:564:24: note: candidate: ‘template<class _ValueType> _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:266:56: error: template argument 1 is invalid 266 | const auto e = std::any_cast<wlr_touch_down_event*>(args); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~ src/main.cpp: In function ‘void onTouchUp(void*, SCallbackInfo&, std::any)’: src/main.cpp:275:34: error: ‘wlr_touch_up_event’ was not declared in this scope 275 | const auto e = std::any_cast<wlr_touch_up_event*>(args); | ^~~~~~~~~~~~~~~~~~ src/main.cpp:275:25: error: parse error in template argument list 275 | const auto e = std::any_cast<wlr_touch_up_event*>(args); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/main.cpp:275:54: error: no matching function for call to ‘any_cast<<expression error> >(std::any&)’ 275 | const auto e = std::any_cast<wlr_touch_up_event*>(args); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~ /usr/include/c++/14.1.1/any:462:23: note: candidate: ‘template<class _ValueType> _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:275:54: error: template argument 1 is invalid 275 | const auto e = std::any_cast<wlr_touch_up_event*>(args); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~ /usr/include/c++/14.1.1/any:488:23: note: candidate: ‘template<class _ValueType> _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:275:54: error: template argument 1 is invalid 275 | const auto e = std::any_cast<wlr_touch_up_event*>(args); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~ /usr/include/c++/14.1.1/any:502:23: note: candidate: ‘template<class _ValueType> _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:275:54: error: template argument 1 is invalid 275 | const auto e = std::any_cast<wlr_touch_up_event*>(args); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~ /usr/include/c++/14.1.1/any:555:30: note: candidate: ‘template<class _ValueType> 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:275:54: error: template argument 1 is invalid 275 | const auto e = std::any_cast<wlr_touch_up_event*>(args); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~ /usr/include/c++/14.1.1/any:564:24: note: candidate: ‘template<class _ValueType> _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:275:54: error: template argument 1 is invalid 275 | const auto e = std::any_cast<wlr_touch_up_event*>(args); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~ src/Render.cpp: In function ‘void renderWindowStub(PHLWINDOW, CMonitor*, PHLWORKSPACE, Hyprutils::Math::CBox, timespec*)’: src/Render.cpp:11:47: error: ‘class CWindow’ has no member named ‘m_sAdditionalConfigData’ 11 | const auto oUseNearestNeighbor = pWindow->m_sAdditionalConfigData.nearestNeighbor.toUnderlying(); | ^~~~~~~~~~~~~~~~~~~~~~~ src/Render.cpp:17:44: error: ‘class CWindow’ has no member named ‘m_sAdditionalConfigData’ 17 | const auto oSpecialRounding = pWindow->m_sAdditionalConfigData.rounding; | ^~~~~~~~~~~~~~~~~~~~~~~ src/Render.cpp:28:14: error: ‘class CWindow’ has no member named ‘m_sAdditionalConfigData’ 28 | pWindow->m_sAdditionalConfigData.nearestNeighbor = false; // FIX: this wont do, need to scale surface texture down properly so that windows arent shown as pixelated mess | ^~~~~~~~~~~~~~~~~~~~~~~ src/Render.cpp:31:14: error: ‘class CWindow’ has no member named ‘m_sAdditionalConfigData’ 31 | pWindow->m_sAdditionalConfigData.rounding = pWindow->rounding() * pMonitor->scale * curScaling; | ^~~~~~~~~~~~~~~~~~~~~~~ src/Render.cpp:42:14: error: ‘class CWindow’ has no member named ‘m_sAdditionalConfigData’ 42 | pWindow->m_sAdditionalConfigData.nearestNeighbor = oUseNearestNeighbor; | ^~~~~~~~~~~~~~~~~~~~~~~ src/Render.cpp:45:14: error: ‘class CWindow’ has no member named ‘m_sAdditionalConfigData’ 45 | pWindow->m_sAdditionalConfigData.rounding = oSpecialRounding; | ^~~~~~~~~~~~~~~~~~~~~~~ src/Render.cpp: In member function ‘void CHyprspaceWidget::draw()’: src/Render.cpp:117:247: warning: narrowing conversion of ‘Config::panelBorderWidth’ from ‘int’ to ‘double’ [-Wnarrowing] 117 | rYOffset.value()* owner->scale) * bottomInvert, owner->vecTransformedSize.x, Config::panelBorderWidth}; | ~~~~~~~~^~~~~~~~~~~~~~~~ make: *** [Makefile:7: all] Error 1
https://github.com/myamusashi/Hyprspace I fix the issue here