hyprwm / hyprland-plugins

Official plugins for Hyprland
BSD 3-Clause "New" or "Revised" License
567 stars 60 forks source link

All plugins build failed due to `PHLMONITOR`. #235

Closed unifreak closed 1 month ago

unifreak commented 1 month ago

When doing hyprpm update, all plugins build failed due to some PHLMONITOR declaration issue, I'm on:

Linux hao-archix 6.11.4-arch2-1 #1 SMP PREEMPT_DYNAMIC Sun, 20 Oct 2024 18:20:12 +0000 x86_64 GNU/Linux

The full log:

 hyprpm -v update
[v] version returned: Hyprland, built from branch  at commit 4520b30d498daca8079365bdb909a8dea38e8d55  (version: bump to 0.44.1).
Date: Wed Oct 9 12:54:39 2024
Tag: v0.44.1, commits: 5309
built against aquamarine 0.4.2

flags: (if any)

[v] parsed commit 4520b30d498daca8079365bdb909a8dea38e8d55 at branch  on Wed Oct 9 12:54:39 2024, commits 5309

✔ Headers up to date.

 → checking for updates for hyprland-plugins
 → Cloning https://github.com/hyprwm/hyprland-plugins
✔ repository hyprland-plugins has updates.
 → Building hyprland-plugins
✔ found hyprpm manifest
 → Manifest has 18 pins, checking
 → Building borders-plus-plus
 ━━━━━━━━━━━━━━━━━━━━━━━━━╍━━━━━━━━━━━━━━━━━━━━━━━━  2 / 4  Updating hyprland-plugins[v] shell returned:  -> cd /tmp/hyprpm/hao && PKG_CONFIG_PATH="/home/hao/.local/share/hyprpm/headersRoot/share/pkgconfig" make -C borders-plus-plus all
make: Entering directory '/tmp/hyprpm/hao/borders-plus-plus'
g++ -shared -fPIC --no-gnu-unique main.cpp borderDeco.cpp -o borders-plus-plus.so -g `pkg-config --cflags pixman-1 libdrm hyprland pangocairo libinput libudev wayland-server xkbcommon` -std=c++2b -O2
In file included from main.cpp:10:
borderDeco.hpp:16:45: error: ‘PHLMONITOR’ has not been declared
   16 |     virtual void                       draw(PHLMONITOR, float a);
      |                                             ^~~~~~~~~~
In file included from /usr/include/c++/14.2.1/memory:78,
                 from /home/hao/.local/share/hyprpm/headersRoot/include/hyprland/src/Compositor.hpp:3,
                 from main.cpp:6:
/usr/include/c++/14.2.1/bits/unique_ptr.h: In instantiation of ‘constexpr std::__detail::__unique_ptr_t<_Tp> std::make_unique(_Args&& ...) [with _Tp = CBordersPlusPlus; _Args = {const Hyprutils::Memory::CSharedPointer<CWindow>&}; __detail::__unique_ptr_t<_Tp> = __detail::__unique_ptr_t<CBordersPlusPlus>]’:
main.cpp:22:90:   required from here
   22 |     HyprlandAPI::addWindowDecoration(PHANDLE, PWINDOW, std::make_unique<CBordersPlusPlus>(PWINDOW));
      |                                                        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~
/usr/include/c++/14.2.1/bits/unique_ptr.h:1076:30: error: invalid new-expression of abstract class type ‘CBordersPlusPlus’
 1076 |     { return unique_ptr<_Tp>(new _Tp(std::forward<_Args>(__args)...)); }
      |                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
borderDeco.hpp:7:7: note:   because the following virtual functions are pure within ‘CBordersPlusPlus’:
    7 | class CBordersPlusPlus : public IHyprWindowDecoration {
      |       ^~~~~~~~~~~~~~~~
In file included from /home/hao/.local/share/hyprpm/headersRoot/include/hyprland/src/config/../helpers/../desktop/Window.hpp:14,
                 from /home/hao/.local/share/hyprpm/headersRoot/include/hyprland/src/config/../helpers/WLClasses.hpp:5,
                 from /home/hao/.local/share/hyprpm/headersRoot/include/hyprland/src/config/ConfigManager.hpp:17,
                 from /home/hao/.local/share/hyprpm/headersRoot/include/hyprland/src/Compositor.hpp:11:
/home/hao/.local/share/hyprpm/headersRoot/include/hyprland/src/config/../helpers/../desktop/../render/decorations/IHyprWindowDecoration.hpp:42:40: note:     ‘virtual void IHyprWindowDecoration::draw(CMonitor*, float)’
   42 |     virtual void                       draw(CMonitor*, float a) = 0;
      |                                        ^~~~
/usr/include/c++/14.2.1/bits/unique_ptr.h: In instantiation of ‘constexpr std::__detail::__unique_ptr_t<_Tp> std::make_unique(_Args&& ...) [with _Tp = CBordersPlusPlus; _Args = {Hyprutils::Memory::CSharedPointer<CWindow>&}; __detail::__unique_ptr_t<_Tp> = __detail::__unique_ptr_t<CBordersPlusPlus>]’:
main.cpp:53:88:   required from here
   53 |         HyprlandAPI::addWindowDecoration(PHANDLE, w, std::make_unique<CBordersPlusPlus>(w));
      |                                                      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
/usr/include/c++/14.2.1/bits/unique_ptr.h:1076:30: error: invalid new-expression of abstract class type ‘CBordersPlusPlus’
 1076 |     { return unique_ptr<_Tp>(new _Tp(std::forward<_Args>(__args)...)); }
      |                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from borderDeco.cpp:1:
borderDeco.hpp:16:45: error: ‘PHLMONITOR’ has not been declared
   16 |     virtual void                       draw(PHLMONITOR, float a);
      |                                             ^~~~~~~~~~
borderDeco.cpp:62:6: error: variable or field ‘draw’ declared void
   62 | void CBordersPlusPlus::draw(PHLMONITOR pMonitor, float a) {
      |      ^~~~~~~~~~~~~~~~
borderDeco.cpp:62:29: error: ‘PHLMONITOR’ was not declared in this scope
   62 | void CBordersPlusPlus::draw(PHLMONITOR pMonitor, float a) {
      |                             ^~~~~~~~~~
borderDeco.cpp:62:50: error: expected primary-expression before ‘float’
   62 | void CBordersPlusPlus::draw(PHLMONITOR pMonitor, float a) {
      |                                                  ^~~~~
make: *** [Makefile:2: all] Error 1
make: Leaving directory '/tmp/hyprpm/hao/borders-plus-plus'

✖ Plugin borders-plus-plus 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.
 → Building csgo-vulkan-fix
 ━━━━━━━━━━━━━━━━━━━━━━━━━╍━━━━━━━━━━━━━━━━━━━━━━━━  2 / 4  Updating hyprland-plugins[v] shell returned:  -> cd /tmp/hyprpm/hao && PKG_CONFIG_PATH="/home/hao/.local/share/hyprpm/headersRoot/share/pkgconfig" make -C csgo-vulkan-fix all
make: Entering directory '/tmp/hyprpm/hao/csgo-vulkan-fix'
g++ -shared -fPIC --no-gnu-unique main.cpp -o csgo-vulkan-fix.so -g `pkg-config --cflags pixman-1 libdrm hyprland pangocairo libinput libudev wayland-server xkbcommon` -std=c++2b -O2
make: Leaving directory '/tmp/hyprpm/hao/csgo-vulkan-fix'

✔ built csgo-vulkan-fix into csgo-vulkan-fix/csgo-vulkan-fix.so
 → Building hyprbars
 ━━━━━━━━━━━━━━━━━━━━━━━━━╍━━━━━━━━━━━━━━━━━━━━━━━━  2 / 4  Updating hyprland-plugins[v] shell returned:  -> cd /tmp/hyprpm/hao && PKG_CONFIG_PATH="/home/hao/.local/share/hyprpm/headersRoot/share/pkgconfig" make -C hyprbars all
make: Entering directory '/tmp/hyprpm/hao/hyprbars'
g++ -shared -fPIC --no-gnu-unique -g -std=c++2b -Wno-c++11-narrowing `pkg-config --cflags pixman-1 libdrm hyprland pangocairo libinput libudev wayland-server xkbcommon` main.cpp barDeco.cpp  -o hyprbars.so `pkg-config --libs pangocairo` -O2
In file included from main.cpp:10:
barDeco.hpp:19:45: error: ‘PHLMONITOR’ has not been declared
   19 |     virtual void                       draw(PHLMONITOR, float a);
      |                                             ^~~~~~~~~~
In file included from /usr/include/c++/14.2.1/memory:78,
                 from /home/hao/.local/share/hyprpm/headersRoot/include/hyprland/src/Compositor.hpp:3,
                 from main.cpp:6:
/usr/include/c++/14.2.1/bits/unique_ptr.h: In instantiation of ‘constexpr std::__detail::__unique_ptr_t<_Tp> std::make_unique(_Args&& ...) [with _Tp = CHyprBar; _Args = {const Hyprutils::Memory::CSharedPointer<CWindow>&}; __detail::__unique_ptr_t<_Tp> = __detail::__unique_ptr_t<CHyprBar>]’:
main.cpp:23:67:   required from here
   23 |         std::unique_ptr<CHyprBar> bar = std::make_unique<CHyprBar>(PWINDOW);
      |                                         ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~
/usr/include/c++/14.2.1/bits/unique_ptr.h:1076:30: error: invalid new-expression of abstract class type ‘CHyprBar’
 1076 |     { return unique_ptr<_Tp>(new _Tp(std::forward<_Args>(__args)...)); }
      |                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
barDeco.hpp:10:7: note:   because the following virtual functions are pure within ‘CHyprBar’:
   10 | class CHyprBar : public IHyprWindowDecoration {
      |       ^~~~~~~~
In file included from /home/hao/.local/share/hyprpm/headersRoot/include/hyprland/src/config/../helpers/../desktop/Window.hpp:14,
                 from /home/hao/.local/share/hyprpm/headersRoot/include/hyprland/src/config/../helpers/WLClasses.hpp:5,
                 from /home/hao/.local/share/hyprpm/headersRoot/include/hyprland/src/config/ConfigManager.hpp:17,
                 from /home/hao/.local/share/hyprpm/headersRoot/include/hyprland/src/Compositor.hpp:11:
/home/hao/.local/share/hyprpm/headersRoot/include/hyprland/src/config/../helpers/../desktop/../render/decorations/IHyprWindowDecoration.hpp:42:40: note:     ‘virtual void IHyprWindowDecoration::draw(CMonitor*, float)’
   42 |     virtual void                       draw(CMonitor*, float a) = 0;
      |                                        ^~~~
cc1plus: note: unrecognized command-line option ‘-Wno-c++11-narrowing’ may have been intended to silence earlier diagnostics
In file included from barDeco.cpp:1:
barDeco.hpp:19:45: error: ‘PHLMONITOR’ has not been declared
   19 |     virtual void                       draw(PHLMONITOR, float a);
      |                                             ^~~~~~~~~~
barDeco.cpp: In destructor ‘virtual CHyprBar::~CHyprBar()’:
barDeco.cpp:27:36: warning: ‘bool HyprlandAPI::unregisterCallback(void*, Hyprutils::Memory::CSharedPointer<std::function<void(void*, SCallbackInfo&, std::any)> >)’ is deprecated [-Wdeprecated-declarations]
   27 |     HyprlandAPI::unregisterCallback(PHANDLE, m_pMouseButtonCallback);
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from globals.hpp:3,
                 from barDeco.hpp:8:
/home/hao/.local/share/hyprpm/headersRoot/include/hyprland/src/plugins/PluginAPI.hpp:155:33: note: declared here
  155 |     APICALL [[deprecated]] bool unregisterCallback(HANDLE handle, SP<HOOK_CALLBACK_FN> fn);
      |                                 ^~~~~~~~~~~~~~~~~~
barDeco.cpp:28:36: warning: ‘bool HyprlandAPI::unregisterCallback(void*, Hyprutils::Memory::CSharedPointer<std::function<void(void*, SCallbackInfo&, std::any)> >)’ is deprecated [-Wdeprecated-declarations]
   28 |     HyprlandAPI::unregisterCallback(PHANDLE, m_pMouseMoveCallback);
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/hao/.local/share/hyprpm/headersRoot/include/hyprland/src/plugins/PluginAPI.hpp:155:33: note: declared here
  155 |     APICALL [[deprecated]] bool unregisterCallback(HANDLE handle, SP<HOOK_CALLBACK_FN> fn);
      |                                 ^~~~~~~~~~~~~~~~~~
barDeco.cpp: In member function ‘virtual SDecorationPositioningInfo CHyprBar::getPositioningInfo()’:
barDeco.cpp:41:42: warning: narrowing conversion of ‘(((CHyprBar*)this)->CHyprBar::m_bHidden ? 0 : (*(long int*)(*(long int* const*)PHEIGHT)))’ from ‘long int’ to ‘int’ [-Wnarrowing]
   41 |     info.desiredExtents = {{0, m_bHidden ? 0 : **PHEIGHT}, {0, 0}};
      |                                ~~~~~~~~~~^~~~~~~~~~~~~~~
barDeco.cpp: In member function ‘void CHyprBar::onMouseDown(SCallbackInfo&, IPointer::SButtonEvent)’:
barDeco.cpp:113:70: warning: narrowing conversion of ‘*(long int*)(*(long int* const*)PHEIGHT)’ from ‘long int’ to ‘int’ [-Wnarrowing]
  113 |         const auto BARBUF     = Vector2D{(int)assignedBoxGlobal().w, **PHEIGHT};
      |                                                                      ^~~~~~~~~
barDeco.cpp: At global scope:
barDeco.cpp:386:6: error: variable or field ‘draw’ declared void
  386 | void CHyprBar::draw(PHLMONITOR pMonitor, float a) {
      |      ^~~~~~~~
barDeco.cpp:386:21: error: ‘PHLMONITOR’ was not declared in this scope
  386 | void CHyprBar::draw(PHLMONITOR pMonitor, float a) {
      |                     ^~~~~~~~~~
barDeco.cpp:386:42: error: expected primary-expression before ‘float’
  386 | void CHyprBar::draw(PHLMONITOR pMonitor, float a) {
      |                                          ^~~~~
cc1plus: note: unrecognized command-line option ‘-Wno-c++11-narrowing’ may have been intended to silence earlier diagnostics
make: *** [Makefile:11: hyprbars.so] Error 1
make: Leaving directory '/tmp/hyprpm/hao/hyprbars'

✖ Plugin hyprbars 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.
 → Building hyprexpo
 ━━━━━━━━━━━━━━━━━━━━━━━━━╍━━━━━━━━━━━━━━━━━━━━━━━━  2 / 4  Updating hyprland-plugins[v] shell returned:  -> cd /tmp/hyprpm/hao && PKG_CONFIG_PATH="/home/hao/.local/share/hyprpm/headersRoot/share/pkgconfig" make -C hyprexpo all
make: Entering directory '/tmp/hyprpm/hao/hyprexpo'
g++ -shared -fPIC --no-gnu-unique main.cpp overview.cpp -o hyprexpo.so -g `pkg-config --cflags pixman-1 libdrm hyprland pangocairo libinput libudev wayland-server xkbcommon` -std=c++2b -Wno-narrowing
In file included from main.cpp:11:
overview.hpp:37:5: error: ‘PHLMONITORREF’ does not name a type
   37 |     PHLMONITORREF pMonitor;
      |     ^~~~~~~~~~~~~
main.cpp:17:44: error: ‘PHLMONITOR’ has not been declared
   17 | typedef void (*origRenderWorkspace)(void*, PHLMONITOR, PHLWORKSPACE, timespec*, const CBox&);
      |                                            ^~~~~~~~~~
main.cpp:29:46: error: ‘PHLMONITOR’ has not been declared
   29 | static void hkRenderWorkspace(void* thisptr, PHLMONITOR pMonitor, PHLWORKSPACE pWorkspace, timespec* now, const CBox& geometry) {
      |                                              ^~~~~~~~~~
main.cpp: In function ‘void hkRenderWorkspace(void*, int, PHLWORKSPACE, timespec*, const Hyprutils::Math::CBox&)’:
main.cpp:30:98: error: ‘class COverview’ has no member named ‘pMonitor’
   30 |     if (!g_pOverview || renderingOverview || g_pOverview->blockOverviewRendering || g_pOverview->pMonitor != pMonitor)
      |                                                                                                  ^~~~~~~~
main.cpp: In function ‘void hkAddDamageA(void*, const Hyprutils::Math::CBox*)’:
main.cpp:39:38: error: ‘class COverview’ has no member named ‘pMonitor’
   39 |     if (!g_pOverview || g_pOverview->pMonitor != PMONITOR->self || g_pOverview->blockDamageReporting) {
      |                                      ^~~~~~~~
main.cpp: In function ‘void hkAddDamageB(void*, const pixman_region32_t*)’:
main.cpp:50:38: error: ‘class COverview’ has no member named ‘pMonitor’
   50 |     if (!g_pOverview || g_pOverview->pMonitor != PMONITOR->self || g_pOverview->blockDamageReporting) {
      |                                      ^~~~~~~~
In file included from overview.cpp:1:
overview.hpp:37:5: error: ‘PHLMONITORREF’ does not name a type
   37 |     PHLMONITORREF pMonitor;
      |     ^~~~~~~~~~~~~
overview.cpp: In destructor ‘COverview::~COverview()’:
overview.cpp:21:44: error: ‘pMonitor’ was not declared in this scope; did you mean ‘CMonitor’?
   21 |     g_pHyprOpenGL->markBlurDirtyForMonitor(pMonitor.lock());
      |                                            ^~~~~~~~
      |                                            CMonitor
overview.cpp: In constructor ‘COverview::COverview(PHLWORKSPACE, bool)’:
overview.cpp:26:5: error: ‘pMonitor’ was not declared in this scope; did you mean ‘CMonitor’?
   26 |     pMonitor            = PMONITOR;
      |     ^~~~~~~~
      |     CMonitor
overview.cpp:98:121: error: no matching function for call to ‘Hyprutils::Math::Vector2D::Vector2D(<brace-enclosed initializer list>)’
   98 |     Vector2D     tileRenderSize = (pMonitor->vecSize - Vector2D{GAP_WIDTH * pMonitor->scale, GAP_WIDTH * pMonitor->scale} * (SIDE_LENGTH - 1)) / SIDE_LENGTH;
      |                                                                                                                         ^
In file included from /usr/include/hyprutils/math/Region.hpp:5,
                 from /home/hao/.local/share/hyprpm/headersRoot/include/hyprland/src/plugins/../helpers/math/Math.hpp:6,
                 from /home/hao/.local/share/hyprpm/headersRoot/include/hyprland/src/plugins/../SharedDefs.hpp:3,
                 from /home/hao/.local/share/hyprpm/headersRoot/include/hyprland/src/plugins/PluginAPI.hpp:25,
                 from globals.hpp:3,
                 from overview.hpp:5:
/usr/include/hyprutils/math/Vector2D.hpp:12:13: note: candidate: ‘Hyprutils::Math::Vector2D::Vector2D()’
   12 |             Vector2D();
      |             ^~~~~~~~
/usr/include/hyprutils/math/Vector2D.hpp:12:13: note:   candidate expects 0 arguments, 2 provided
/usr/include/hyprutils/math/Vector2D.hpp:11:13: note: candidate: ‘Hyprutils::Math::Vector2D::Vector2D(int, int)’
   11 |             Vector2D(int, int);
      |             ^~~~~~~~
/usr/include/hyprutils/math/Vector2D.hpp:11:13: note:   conversion of argument 1 would be ill-formed:
/usr/include/hyprutils/math/Vector2D.hpp:10:13: note: candidate: ‘Hyprutils::Math::Vector2D::Vector2D(double, double)’
   10 |             Vector2D(double, double);
      |             ^~~~~~~~
/usr/include/hyprutils/math/Vector2D.hpp:10:13: note:   conversion of argument 1 would be ill-formed:
/usr/include/hyprutils/math/Vector2D.hpp:8:15: note: candidate: ‘constexpr Hyprutils::Math::Vector2D::Vector2D(const Hyprutils::Math::Vector2D&)’
    8 |         class Vector2D {
      |               ^~~~~~~~
/usr/include/hyprutils/math/Vector2D.hpp:8:15: note:   candidate expects 1 argument, 2 provided
overview.cpp:116:38: error: cannot convert ‘const Hyprutils::Memory::CSharedPointer<CMonitor>’ to ‘CMonitor*’
  116 |         g_pHyprRenderer->beginRender(PMONITOR, fakeDamage, RENDER_MODE_FULL_FAKE, nullptr, &image.fb);
      |                                      ^~~~~~~~
      |                                      |
      |                                      const Hyprutils::Memory::CSharedPointer<CMonitor>
In file included from overview.cpp:4:
/home/hao/.local/share/hyprpm/headersRoot/include/hyprland/src/render/Renderer.hpp:87:37: note:   initializing argument 1 of ‘bool CHyprRenderer::beginRender(CMonitor*, Hyprutils::Math::CRegion&, eRenderMode, Hyprutils::Memory::CSharedPointer<IHLBuffer>, CFramebuffer*, bool)’
   87 |     bool      beginRender(CMonitor* pMonitor, CRegion& damage, eRenderMode mode = RENDER_MODE_NORMAL, SP<IHLBuffer> buffer = {}, CFramebuffer* fb = nullptr, bool simple = false);
      |                           ~~~~~~~~~~^~~~~~~~
overview.cpp:134:46: error: cannot convert ‘const Hyprutils::Memory::CSharedPointer<CMonitor>’ to ‘CMonitor*’
  134 |             g_pHyprRenderer->renderWorkspace(PMONITOR, PWORKSPACE, &now, monbox);
      |                                              ^~~~~~~~
      |                                              |
      |                                              const Hyprutils::Memory::CSharedPointer<CMonitor>
/home/hao/.local/share/hyprpm/headersRoot/include/hyprland/src/render/Renderer.hpp:126:49: note:   initializing argument 1 of ‘void CHyprRenderer::renderWorkspace(CMonitor*, PHLWORKSPACE, timespec*, const Hyprutils::Math::CBox&)’
  126 |     void              renderWorkspace(CMonitor* pMonitor, PHLWORKSPACE pWorkspace, timespec* now, const CBox& geometry);
      |                                       ~~~~~~~~~~^~~~~~~~
overview.cpp:142:46: error: cannot convert ‘const Hyprutils::Memory::CSharedPointer<CMonitor>’ to ‘CMonitor*’
  142 |             g_pHyprRenderer->renderWorkspace(PMONITOR, PWORKSPACE, &now, monbox);
      |                                              ^~~~~~~~
      |                                              |
      |                                              const Hyprutils::Memory::CSharedPointer<CMonitor>
/home/hao/.local/share/hyprpm/headersRoot/include/hyprland/src/render/Renderer.hpp:126:49: note:   initializing argument 1 of ‘void CHyprRenderer::renderWorkspace(CMonitor*, PHLWORKSPACE, timespec*, const Hyprutils::Math::CBox&)’
  126 |     void              renderWorkspace(CMonitor* pMonitor, PHLWORKSPACE pWorkspace, timespec* now, const CBox& geometry);
      |                                       ~~~~~~~~~~^~~~~~~~
overview.cpp: In lambda function:
overview.cpp:186:73: error: ‘pMonitor’ is not captured
  186 |         lastMousePosLocal = g_pInputManager->getMouseCoordsInternal() - pMonitor->vecPosition;
      |                                                                         ^~~~~~~~
overview.cpp:181:30: note: the lambda has no capture-default
  181 |     auto onCursorMove = [this](void* self, SCallbackInfo& info, std::any param) {
      |                              ^
overview.cpp:26:5: note: ‘<typeprefixerror>pMonitor’ declared here
   26 |     pMonitor            = PMONITOR;
      |     ^~~~~~~~
overview.cpp: In lambda function:
overview.cpp:196:39: error: ‘pMonitor’ is not captured
  196 |         int x = lastMousePosLocal.x / pMonitor->vecSize.x * SIDE_LENGTH;
      |                                       ^~~~~~~~
overview.cpp:189:32: note: the lambda has no capture-default
  189 |     auto onCursorSelect = [this](void* self, SCallbackInfo& info, std::any param) {
      |                                ^
overview.cpp:26:5: note: ‘<typeprefixerror>pMonitor’ declared here
   26 |     pMonitor            = PMONITOR;
      |     ^~~~~~~~
overview.cpp:197:39: error: ‘pMonitor’ is not captured
  197 |         int y = lastMousePosLocal.y / pMonitor->vecSize.y * SIDE_LENGTH;
      |                                       ^~~~~~~~
overview.cpp:189:32: note: the lambda has no capture-default
  189 |     auto onCursorSelect = [this](void* self, SCallbackInfo& info, std::any param) {
      |                                ^
overview.cpp:26:5: note: ‘<typeprefixerror>pMonitor’ declared here
   26 |     pMonitor            = PMONITOR;
      |     ^~~~~~~~
overview.cpp: In member function ‘void COverview::redrawID(int, bool)’:
overview.cpp:212:9: error: ‘pMonitor’ was not declared in this scope; did you mean ‘CMonitor’?
  212 |     if (pMonitor->activeWorkspace != startedOn && !closing) {
      |         ^~~~~~~~
      |         CMonitor
overview.cpp:223:31: error: ‘pMonitor’ was not declared in this scope; did you mean ‘CMonitor’?
  223 |     Vector2D tileSize       = pMonitor->vecSize / SIDE_LENGTH;
      |                               ^~~~~~~~
      |                               CMonitor
overview.cpp:228:49: error: no match for ‘operator=’ (operand types are ‘Hyprutils::Math::CBox’ and ‘<brace-enclosed initializer list>’)
  228 |         monbox = {{0, 0}, pMonitor->vecPixelSize};
      |                                                 ^
In file included from /usr/include/hyprutils/math/Region.hpp:6:
/usr/include/hyprutils/math/Box.hpp:52:11: note: candidate: ‘constexpr Hyprutils::Math::CBox& Hyprutils::Math::CBox::operator=(const Hyprutils::Math::CBox&)’
   52 |     class CBox {
      |           ^~~~
/usr/include/hyprutils/math/Box.hpp:52:11: note:   no known conversion for argument 1 from ‘<brace-enclosed initializer list>’ to ‘const Hyprutils::Math::CBox&’
/usr/include/hyprutils/math/Box.hpp:52:11: note: candidate: ‘constexpr Hyprutils::Math::CBox& Hyprutils::Math::CBox::operator=(Hyprutils::Math::CBox&&)’
/usr/include/hyprutils/math/Box.hpp:52:11: note:   no known conversion for argument 1 from ‘<brace-enclosed initializer list>’ to ‘Hyprutils::Math::CBox&&’
overview.cpp:231:49: error: no match for ‘operator=’ (operand types are ‘Hyprutils::Math::CBox’ and ‘<brace-enclosed initializer list>’)
  231 |         monbox = {{0, 0}, pMonitor->vecPixelSize};
      |                                                 ^
/usr/include/hyprutils/math/Box.hpp:52:11: note: candidate: ‘constexpr Hyprutils::Math::CBox& Hyprutils::Math::CBox::operator=(const Hyprutils::Math::CBox&)’
   52 |     class CBox {
      |           ^~~~
/usr/include/hyprutils/math/Box.hpp:52:11: note:   no known conversion for argument 1 from ‘<brace-enclosed initializer list>’ to ‘const Hyprutils::Math::CBox&’
/usr/include/hyprutils/math/Box.hpp:52:11: note: candidate: ‘constexpr Hyprutils::Math::CBox& Hyprutils::Math::CBox::operator=(Hyprutils::Math::CBox&&)’
/usr/include/hyprutils/math/Box.hpp:52:11: note:   no known conversion for argument 1 from ‘<brace-enclosed initializer list>’ to ‘Hyprutils::Math::CBox&&’
overview.cpp: In member function ‘void COverview::damage()’:
overview.cpp:294:36: error: ‘pMonitor’ was not declared in this scope; did you mean ‘CMonitor’?
  294 |     g_pHyprRenderer->damageMonitor(pMonitor.lock());
      |                                    ^~~~~~~~
      |                                    CMonitor
overview.cpp: In member function ‘void COverview::onDamageReported()’:
overview.cpp:308:34: error: ‘pMonitor’ was not declared in this scope; did you mean ‘CMonitor’?
  308 |                       .translate(pMonitor->vecPosition);
      |                                  ^~~~~~~~
      |                                  CMonitor
overview.cpp: In member function ‘void COverview::close()’:
overview.cpp:326:29: error: ‘pMonitor’ was not declared in this scope; did you mean ‘CMonitor’?
  326 |     Vector2D    tileSize = (pMonitor->vecSize / SIDE_LENGTH);
      |                             ^~~~~~~~
      |                             CMonitor
overview.cpp: In member function ‘void COverview::onWorkspaceChange()’:
overview.cpp:367:21: error: ‘pMonitor’ was not declared in this scope; did you mean ‘CMonitor’?
  367 |         startedOn = pMonitor->activeWorkspace;
      |                     ^~~~~~~~
      |                     CMonitor
overview.cpp:370:38: error: ‘pMonitor’ was not declared in this scope; did you mean ‘CMonitor’?
  370 |         if (images[i].workspaceID != pMonitor->activeWorkspaceID())
      |                                      ^~~~~~~~
      |                                      CMonitor
overview.cpp: In member function ‘void COverview::render()’:
overview.cpp:385:9: error: ‘pMonitor’ was not declared in this scope; did you mean ‘CMonitor’?
  385 |     if (pMonitor->activeWorkspace != startedOn && !closing) {
      |         ^~~~~~~~
      |         CMonitor
overview.cpp:400:26: error: ‘pMonitor’ was not declared in this scope; did you mean ‘CMonitor’?
  400 |             texbox.scale(pMonitor->scale).translate(pos.value());
      |                          ^~~~~~~~
      |                          CMonitor
overview.cpp: In member function ‘void COverview::onSwipeUpdate(double)’:
overview.cpp:424:37: error: ‘pMonitor’ was not declared in this scope; did you mean ‘CMonitor’?
  424 |     Vector2D            tileSize = (pMonitor->vecSize / SIDE_LENGTH);
      |                                     ^~~~~~~~
      |                                     CMonitor
overview.cpp: In member function ‘void COverview::onSwipeEnd()’:
overview.cpp:438:26: error: ‘pMonitor’ was not declared in this scope; did you mean ‘CMonitor’?
  438 |     const auto SIZEMIN = pMonitor->vecSize;
      |                          ^~~~~~~~
      |                          CMonitor
make: *** [Makefile:2: all] Error 1
make: Leaving directory '/tmp/hyprpm/hao/hyprexpo'

✖ Plugin hyprexpo 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.
 → Building hyprtrails
 ━━━━━━━━━━━━━━━━━━━━━━━━━╍━━━━━━━━━━━━━━━━━━━━━━━━  2 / 4  Updating hyprland-plugins[v] shell returned:  -> cd /tmp/hyprpm/hao && PKG_CONFIG_PATH="/home/hao/.local/share/hyprpm/headersRoot/share/pkgconfig" make -C hyprtrails all
make: Entering directory '/tmp/hyprpm/hao/hyprtrails'
g++ -shared -fPIC --no-gnu-unique main.cpp trail.cpp -o hyprtrails.so -g `pkg-config --cflags pixman-1 libdrm hyprland pangocairo libinput libudev wayland-server xkbcommon` -std=c++2b -O2
In file included from main.cpp:13:
trail.hpp:40:45: error: ‘PHLMONITOR’ has not been declared
   40 |     virtual void                       draw(PHLMONITOR, float a);
      |                                             ^~~~~~~~~~
In file included from /usr/include/c++/14.2.1/memory:78,
                 from /home/hao/.local/share/hyprpm/headersRoot/include/hyprland/src/Compositor.hpp:3,
                 from main.cpp:6:
/usr/include/c++/14.2.1/bits/unique_ptr.h: In instantiation of ‘constexpr std::__detail::__unique_ptr_t<_Tp> std::make_unique(_Args&& ...) [with _Tp = CTrail; _Args = {const Hyprutils::Memory::CSharedPointer<CWindow>&}; __detail::__unique_ptr_t<_Tp> = __detail::__unique_ptr_t<CTrail>]’:
main.cpp:24:80:   required from here
   24 |     HyprlandAPI::addWindowDecoration(PHANDLE, PWINDOW, std::make_unique<CTrail>(PWINDOW));
      |                                                        ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~
/usr/include/c++/14.2.1/bits/unique_ptr.h:1076:30: error: invalid new-expression of abstract class type ‘CTrail’
 1076 |     { return unique_ptr<_Tp>(new _Tp(std::forward<_Args>(__args)...)); }
      |                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
trail.hpp:31:7: note:   because the following virtual functions are pure within ‘CTrail’:
   31 | class CTrail : public IHyprWindowDecoration {
      |       ^~~~~~
In file included from /home/hao/.local/share/hyprpm/headersRoot/include/hyprland/src/config/../helpers/../desktop/Window.hpp:14,
                 from /home/hao/.local/share/hyprpm/headersRoot/include/hyprland/src/config/../helpers/WLClasses.hpp:5,
                 from /home/hao/.local/share/hyprpm/headersRoot/include/hyprland/src/config/ConfigManager.hpp:17,
                 from /home/hao/.local/share/hyprpm/headersRoot/include/hyprland/src/Compositor.hpp:11:
/home/hao/.local/share/hyprpm/headersRoot/include/hyprland/src/config/../helpers/../desktop/../render/decorations/IHyprWindowDecoration.hpp:42:40: note:     ‘virtual void IHyprWindowDecoration::draw(CMonitor*, float)’
   42 |     virtual void                       draw(CMonitor*, float a) = 0;
      |                                        ^~~~
/usr/include/c++/14.2.1/bits/unique_ptr.h: In instantiation of ‘constexpr std::__detail::__unique_ptr_t<_Tp> std::make_unique(_Args&& ...) [with _Tp = CTrail; _Args = {Hyprutils::Memory::CSharedPointer<CWindow>&}; __detail::__unique_ptr_t<_Tp> = __detail::__unique_ptr_t<CTrail>]’:
main.cpp:126:78:   required from here
  126 |         HyprlandAPI::addWindowDecoration(PHANDLE, w, std::make_unique<CTrail>(w));
      |                                                      ~~~~~~~~~~~~~~~~~~~~~~~~^~~
/usr/include/c++/14.2.1/bits/unique_ptr.h:1076:30: error: invalid new-expression of abstract class type ‘CTrail’
 1076 |     { return unique_ptr<_Tp>(new _Tp(std::forward<_Args>(__args)...)); }
      |                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from trail.cpp:1:
trail.hpp:40:45: error: ‘PHLMONITOR’ has not been declared
   40 |     virtual void                       draw(PHLMONITOR, float a);
      |                                             ^~~~~~~~~~
trail.cpp: In destructor ‘virtual CTrail::~CTrail()’:
trail.cpp:41:36: warning: ‘bool HyprlandAPI::unregisterCallback(void*, Hyprutils::Memory::CSharedPointer<std::function<void(void*, SCallbackInfo&, std::any)> >)’ is deprecated [-Wdeprecated-declarations]
   41 |     HyprlandAPI::unregisterCallback(PHANDLE, pTickCb);
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
In file included from trail.hpp:6:
/home/hao/.local/share/hyprpm/headersRoot/include/hyprland/src/plugins/PluginAPI.hpp:155:33: note: declared here
  155 |     APICALL [[deprecated]] bool unregisterCallback(HANDLE handle, SP<HOOK_CALLBACK_FN> fn);
      |                                 ^~~~~~~~~~~~~~~~~~
trail.cpp: At global scope:
trail.cpp:81:6: error: variable or field ‘draw’ declared void
   81 | void CTrail::draw(PHLMONITOR pMonitor, float a) {
      |      ^~~~~~
trail.cpp:81:19: error: ‘PHLMONITOR’ was not declared in this scope
   81 | void CTrail::draw(PHLMONITOR pMonitor, float a) {
      |                   ^~~~~~~~~~
trail.cpp:81:40: error: expected primary-expression before ‘float’
   81 | void CTrail::draw(PHLMONITOR pMonitor, float a) {
      |                                        ^~~~~
trail.cpp: In member function ‘virtual void CTrail::damageEntire()’:
trail.cpp:330:16: warning: narrowing conversion of ‘(int)(((CTrail*)this)->CTrail::m_vLastWindowPos.Hyprutils::Math::Vector2D::x - ((CTrail*)this)->CTrail::m_seExtents.Hyprutils::Math::SBoxExtents::topLeft.Hyprutils::Math::Vector2D::x)’ from ‘int’ to ‘double’ [-Wnarrowing]
  330 |     CBox dm = {(int)(m_vLastWindowPos.x - m_seExtents.topLeft.x), (int)(m_vLastWindowPos.y - m_seExtents.topLeft.y),
      |                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
trail.cpp:330:67: warning: narrowing conversion of ‘(int)(((CTrail*)this)->CTrail::m_vLastWindowPos.Hyprutils::Math::Vector2D::y - ((CTrail*)this)->CTrail::m_seExtents.Hyprutils::Math::SBoxExtents::topLeft.Hyprutils::Math::Vector2D::y)’ from ‘int’ to ‘double’ [-Wnarrowing]
  330 |     CBox dm = {(int)(m_vLastWindowPos.x - m_seExtents.topLeft.x), (int)(m_vLastWindowPos.y - m_seExtents.topLeft.y),
      |                                                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
trail.cpp:331:16: warning: narrowing conversion of ‘(int)(((CTrail*)this)->CTrail::m_vLastWindowSize.Hyprutils::Math::Vector2D::x + ((CTrail*)this)->CTrail::m_seExtents.Hyprutils::Math::SBoxExtents::topLeft.Hyprutils::Math::Vector2D::x + ((CTrail*)this)->CTrail::m_seExtents.Hyprutils::Math::SBoxExtents::bottomRight.Hyprutils::Math::Vector2D::x)’ from ‘int’ to ‘double’ [-Wnarrowing]
  331 |                (int)(m_vLastWindowSize.x + m_seExtents.topLeft.x + m_seExtents.bottomRight.x), (int)m_seExtents.topLeft.y};
      |                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
trail.cpp:331:96: warning: narrowing conversion of ‘(int)((CTrail*)this)->CTrail::m_seExtents.Hyprutils::Math::SBoxExtents::topLeft.Hyprutils::Math::Vector2D::y’ from ‘int’ to ‘double’ [-Wnarrowing]
  331 |                (int)(m_vLastWindowSize.x + m_seExtents.topLeft.x + m_seExtents.bottomRight.x), (int)m_seExtents.topLeft.y};
      |                                                                                                ^~~~~~~~~~~~~~~~~~~~~~~~~~
make: *** [Makefile:2: all] Error 1
make: Leaving directory '/tmp/hyprpm/hao/hyprtrails'

✖ Plugin hyprtrails 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.
 → Building hyprwinwrap
 ━━━━━━━━━━━━━━━━━━━━━━━━━╍━━━━━━━━━━━━━━━━━━━━━━━━  2 / 4  Updating hyprland-plugins[v] shell returned:  -> cd /tmp/hyprpm/hao && PKG_CONFIG_PATH="/home/hao/.local/share/hyprpm/headersRoot/share/pkgconfig" make -C hyprwinwrap all
make: Entering directory '/tmp/hyprpm/hao/hyprwinwrap'
g++ -shared -fPIC --no-gnu-unique main.cpp -o hyprwinwrap.so -g `pkg-config --cflags pixman-1 libdrm hyprland pangocairo libinput libudev wayland-server xkbcommon` -std=c++2b -O2
main.cpp: In function ‘void onRenderStage(eRenderStage)’:
main.cpp:85:81: error: request for member ‘lock’ in ‘g_pHyprOpenGL.std::unique_ptr<CHyprOpenGLImpl>::operator->()->CHyprOpenGLImpl::m_RenderData.SCurrentRenderData::pMonitor’, which is of pointer type ‘CMonitor*’ (maybe you meant to use ‘->’ ?)
   85 |         g_pHyprRenderer->renderWindow(bgw, g_pHyprOpenGL->m_RenderData.pMonitor.lock(), &now, false, RENDER_PASS_ALL, false, true);
      |                                                                                 ^~~~
make: *** [Makefile:2: all] Error 1
make: Leaving directory '/tmp/hyprpm/hao/hyprwinwrap'

✖ Plugin hyprwinwrap 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.
✔ updated hyprland-plugins
 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━  4 / 4  Done!
✔ Ensuring plugin load state
✔ Plugin load state ensured
shatwo56 commented 1 month ago

same issue here, all plugins are broken after updating to the latest version of Hyprland

      → Building hyprexpo                                                                                                                                            
       ━━━━━━━━━━━━━━━━━━━━━━━━━╍━━━━━━━━━━━━━━━━━━━━━━━━  2 / 4  Updating hyprland-plugins[v] shell returned:  -> cd /tmp/hyprpm/dgnpacer && PKG_CONFIG_PATH="/home/dgnpacer/.local/share/hyprpm/headersRoot/share/pkgconfig" make -C hyprexpo all
      make: Entering directory '/tmp/hyprpm/dgnpacer/hyprexpo'
      g++ -shared -fPIC --no-gnu-unique main.cpp overview.cpp -o hyprexpo.so -g `pkg-config --cflags pixman-1 libdrm hyprland pangocairo libinput libudev wayland-server xkbcommon` -std=c++2b -Wno-narrowing
      In file included from main.cpp:11:
      overview.hpp:37:5: error: ‘PHLMONITORREF’ does not name a type
         37 |     PHLMONITORREF pMonitor;
            |     ^~~~~~~~~~~~~
      main.cpp:17:44: error: ‘PHLMONITOR’ has not been declared
         17 | typedef void (*origRenderWorkspace)(void*, PHLMONITOR, PHLWORKSPACE, timespec*, const CBox&);
            |                                            ^~~~~~~~~~
      main.cpp:29:46: error: ‘PHLMONITOR’ has not been declared
         29 | static void hkRenderWorkspace(void* thisptr, PHLMONITOR pMonitor, PHLWORKSPACE pWorkspace, timespec* now, const CBox& geometry) {
            |                                              ^~~~~~~~~~
      main.cpp: In function ‘void hkRenderWorkspace(void*, int, PHLWORKSPACE, timespec*, const Hyprutils::Math::CBox&)’:
      main.cpp:30:98: error: ‘class COverview’ has no member named ‘pMonitor’
         30 |     if (!g_pOverview || renderingOverview || g_pOverview->blockOverviewRendering || g_pOverview->pMonitor != pMonitor)
            |                                                                                                  ^~~~~~~~
      main.cpp: In function ‘void hkAddDamageA(void*, const Hyprutils::Math::CBox*)’:
      main.cpp:39:38: error: ‘class COverview’ has no member named ‘pMonitor’
         39 |     if (!g_pOverview || g_pOverview->pMonitor != PMONITOR->self || g_pOverview->blockDamageReporting) {
            |                                      ^~~~~~~~
      main.cpp: In function ‘void hkAddDamageB(void*, const pixman_region32_t*)’:
      main.cpp:50:38: error: ‘class COverview’ has no member named ‘pMonitor’
         50 |     if (!g_pOverview || g_pOverview->pMonitor != PMONITOR->self || g_pOverview->blockDamageReporting) {
            |                                      ^~~~~~~~
      In file included from overview.cpp:1:
      overview.hpp:37:5: error: ‘PHLMONITORREF’ does not name a type
         37 |     PHLMONITORREF pMonitor;
            |     ^~~~~~~~~~~~~
      overview.cpp: In destructor ‘COverview::~COverview()’:
      overview.cpp:21:44: error: ‘pMonitor’ was not declared in this scope; did you mean ‘CMonitor’?
         21 |     g_pHyprOpenGL->markBlurDirtyForMonitor(pMonitor.lock());
            |                                            ^~~~~~~~
            |                                            CMonitor
      overview.cpp: In constructor ‘COverview::COverview(PHLWORKSPACE, bool)’:
      overview.cpp:26:5: error: ‘pMonitor’ was not declared in this scope; did you mean ‘CMonitor’?
         26 |     pMonitor            = PMONITOR;
            |     ^~~~~~~~
            |     CMonitor
      overview.cpp:98:121: error: no matching function for call to ‘Hyprutils::Math::Vector2D::Vector2D(<brace-enclosed initializer list>)’
         98 |     Vector2D     tileRenderSize = (pMonitor->vecSize - Vector2D{GAP_WIDTH * pMonitor->scale, GAP_WIDTH * pMonitor->scale} * (SIDE_LENGTH - 1)) / SIDE_LENGTH;
            |                                                                                                                         ^
      In file included from /usr/include/hyprutils/math/Region.hpp:5,
                       from /home/dgnpacer/.local/share/hyprpm/headersRoot/include/hyprland/src/plugins/../helpers/math/Math.hpp:6,
                       from /home/dgnpacer/.local/share/hyprpm/headersRoot/include/hyprland/src/plugins/../SharedDefs.hpp:3,
                       from /home/dgnpacer/.local/share/hyprpm/headersRoot/include/hyprland/src/plugins/PluginAPI.hpp:25,
                       from globals.hpp:3,
                       from overview.hpp:5:
      /usr/include/hyprutils/math/Vector2D.hpp:12:13: note: candidate: ‘Hyprutils::Math::Vector2D::Vector2D()’
         12 |             Vector2D();
            |             ^~~~~~~~
      /usr/include/hyprutils/math/Vector2D.hpp:12:13: note:   candidate expects 0 arguments, 2 provided
      /usr/include/hyprutils/math/Vector2D.hpp:11:13: note: candidate: ‘Hyprutils::Math::Vector2D::Vector2D(int, int)’
         11 |             Vector2D(int, int);
            |             ^~~~~~~~
      /usr/include/hyprutils/math/Vector2D.hpp:11:13: note:   conversion of argument 1 would be ill-formed:
      /usr/include/hyprutils/math/Vector2D.hpp:10:13: note: candidate: ‘Hyprutils::Math::Vector2D::Vector2D(double, double)’
         10 |             Vector2D(double, double);
            |             ^~~~~~~~
      /usr/include/hyprutils/math/Vector2D.hpp:10:13: note:   conversion of argument 1 would be ill-formed:
      /usr/include/hyprutils/math/Vector2D.hpp:8:15: note: candidate: ‘constexpr Hyprutils::Math::Vector2D::Vector2D(const Hyprutils::Math::Vector2D&)’
          8 |         class Vector2D {
            |               ^~~~~~~~
      /usr/include/hyprutils/math/Vector2D.hpp:8:15: note:   candidate expects 1 argument, 2 provided
      overview.cpp:116:38: error: cannot convert ‘const Hyprutils::Memory::CSharedPointer<CMonitor>’ to ‘CMonitor*’
        116 |         g_pHyprRenderer->beginRender(PMONITOR, fakeDamage, RENDER_MODE_FULL_FAKE, nullptr, &image.fb);
            |                                      ^~~~~~~~
            |                                      |
            |                                      const Hyprutils::Memory::CSharedPointer<CMonitor>
      In file included from overview.cpp:4:
      /home/dgnpacer/.local/share/hyprpm/headersRoot/include/hyprland/src/render/Renderer.hpp:87:37: note:   initializing argument 1 of ‘bool CHyprRenderer::beginRender(CMonitor*, Hyprutils::Math::CRegion&, eRenderMode, Hyprutils::Memory::CSharedPointer<IHLBuffer>, CFramebuffer*, bool)’
         87 |     bool      beginRender(CMonitor* pMonitor, CRegion& damage, eRenderMode mode = RENDER_MODE_NORMAL, SP<IHLBuffer> buffer = {}, CFramebuffer* fb = nullptr, bool simple = false);
            |                           ~~~~~~~~~~^~~~~~~~
      overview.cpp:134:46: error: cannot convert ‘const Hyprutils::Memory::CSharedPointer<CMonitor>’ to ‘CMonitor*’
        134 |             g_pHyprRenderer->renderWorkspace(PMONITOR, PWORKSPACE, &now, monbox);
            |                                              ^~~~~~~~
            |                                              |
            |                                              const Hyprutils::Memory::CSharedPointer<CMonitor>
      /home/dgnpacer/.local/share/hyprpm/headersRoot/include/hyprland/src/render/Renderer.hpp:126:49: note:   initializing argument 1 of ‘void CHyprRenderer::renderWorkspace(CMonitor*, PHLWORKSPACE, timespec*, const Hyprutils::Math::CBox&)’
        126 |     void              renderWorkspace(CMonitor* pMonitor, PHLWORKSPACE pWorkspace, timespec* now, const CBox& geometry);
            |                                       ~~~~~~~~~~^~~~~~~~
      overview.cpp:142:46: error: cannot convert ‘const Hyprutils::Memory::CSharedPointer<CMonitor>’ to ‘CMonitor*’
        142 |             g_pHyprRenderer->renderWorkspace(PMONITOR, PWORKSPACE, &now, monbox);
            |                                              ^~~~~~~~
            |                                              |
            |                                              const Hyprutils::Memory::CSharedPointer<CMonitor>
      /home/dgnpacer/.local/share/hyprpm/headersRoot/include/hyprland/src/render/Renderer.hpp:126:49: note:   initializing argument 1 of ‘void CHyprRenderer::renderWorkspace(CMonitor*, PHLWORKSPACE, timespec*, const Hyprutils::Math::CBox&)’
        126 |     void              renderWorkspace(CMonitor* pMonitor, PHLWORKSPACE pWorkspace, timespec* now, const CBox& geometry);
            |                                       ~~~~~~~~~~^~~~~~~~
      overview.cpp: In lambda function:
      overview.cpp:186:73: error: ‘pMonitor’ is not captured
        186 |         lastMousePosLocal = g_pInputManager->getMouseCoordsInternal() - pMonitor->vecPosition;
            |                                                                         ^~~~~~~~
      overview.cpp:181:30: note: the lambda has no capture-default
        181 |     auto onCursorMove = [this](void* self, SCallbackInfo& info, std::any param) {
            |                              ^
      overview.cpp:26:5: note: ‘<typeprefixerror>pMonitor’ declared here
         26 |     pMonitor            = PMONITOR;
            |     ^~~~~~~~
      overview.cpp: In lambda function:
      overview.cpp:196:39: error: ‘pMonitor’ is not captured
        196 |         int x = lastMousePosLocal.x / pMonitor->vecSize.x * SIDE_LENGTH;
            |                                       ^~~~~~~~
      overview.cpp:189:32: note: the lambda has no capture-default
        189 |     auto onCursorSelect = [this](void* self, SCallbackInfo& info, std::any param) {
            |                                ^
      overview.cpp:26:5: note: ‘<typeprefixerror>pMonitor’ declared here
         26 |     pMonitor            = PMONITOR;
            |     ^~~~~~~~
      overview.cpp:197:39: error: ‘pMonitor’ is not captured
        197 |         int y = lastMousePosLocal.y / pMonitor->vecSize.y * SIDE_LENGTH;
            |                                       ^~~~~~~~
      overview.cpp:189:32: note: the lambda has no capture-default
        189 |     auto onCursorSelect = [this](void* self, SCallbackInfo& info, std::any param) {
            |                                ^
      overview.cpp:26:5: note: ‘<typeprefixerror>pMonitor’ declared here
         26 |     pMonitor            = PMONITOR;
            |     ^~~~~~~~
      overview.cpp: In member function ‘void COverview::redrawID(int, bool)’:
      overview.cpp:212:9: error: ‘pMonitor’ was not declared in this scope; did you mean ‘CMonitor’?
        212 |     if (pMonitor->activeWorkspace != startedOn && !closing) {
            |         ^~~~~~~~
            |         CMonitor
      overview.cpp:223:31: error: ‘pMonitor’ was not declared in this scope; did you mean ‘CMonitor’?
        223 |     Vector2D tileSize       = pMonitor->vecSize / SIDE_LENGTH;
            |                               ^~~~~~~~
            |                               CMonitor
      overview.cpp:228:49: error: no match for ‘operator=’ (operand types are ‘Hyprutils::Math::CBox’ and ‘<brace-enclosed initializer list>’)
        228 |         monbox = {{0, 0}, pMonitor->vecPixelSize};
            |                                                 ^
      In file included from /usr/include/hyprutils/math/Region.hpp:6:
      /usr/include/hyprutils/math/Box.hpp:52:11: note: candidate: ‘constexpr Hyprutils::Math::CBox& Hyprutils::Math::CBox::operator=(const Hyprutils::Math::CBox&)’
         52 |     class CBox {
            |           ^~~~
      /usr/include/hyprutils/math/Box.hpp:52:11: note:   no known conversion for argument 1 from ‘<brace-enclosed initializer list>’ to ‘const Hyprutils::Math::CBox&’
      /usr/include/hyprutils/math/Box.hpp:52:11: note: candidate: ‘constexpr Hyprutils::Math::CBox& Hyprutils::Math::CBox::operator=(Hyprutils::Math::CBox&&)’
      /usr/include/hyprutils/math/Box.hpp:52:11: note:   no known conversion for argument 1 from ‘<brace-enclosed initializer list>’ to ‘Hyprutils::Math::CBox&&’
      overview.cpp:231:49: error: no match for ‘operator=’ (operand types are ‘Hyprutils::Math::CBox’ and ‘<brace-enclosed initializer list>’)
        231 |         monbox = {{0, 0}, pMonitor->vecPixelSize};
            |                                                 ^
      /usr/include/hyprutils/math/Box.hpp:52:11: note: candidate: ‘constexpr Hyprutils::Math::CBox& Hyprutils::Math::CBox::operator=(const Hyprutils::Math::CBox&)’
         52 |     class CBox {
            |           ^~~~
      /usr/include/hyprutils/math/Box.hpp:52:11: note:   no known conversion for argument 1 from ‘<brace-enclosed initializer list>’ to ‘const Hyprutils::Math::CBox&’
      /usr/include/hyprutils/math/Box.hpp:52:11: note: candidate: ‘constexpr Hyprutils::Math::CBox& Hyprutils::Math::CBox::operator=(Hyprutils::Math::CBox&&)’
      /usr/include/hyprutils/math/Box.hpp:52:11: note:   no known conversion for argument 1 from ‘<brace-enclosed initializer list>’ to ‘Hyprutils::Math::CBox&&’
      overview.cpp: In member function ‘void COverview::damage()’:
      overview.cpp:294:36: error: ‘pMonitor’ was not declared in this scope; did you mean ‘CMonitor’?
        294 |     g_pHyprRenderer->damageMonitor(pMonitor.lock());
            |                                    ^~~~~~~~
            |                                    CMonitor
      overview.cpp: In member function ‘void COverview::onDamageReported()’:
      overview.cpp:308:34: error: ‘pMonitor’ was not declared in this scope; did you mean ‘CMonitor’?
        308 |                       .translate(pMonitor->vecPosition);
            |                                  ^~~~~~~~
            |                                  CMonitor
      overview.cpp: In member function ‘void COverview::close()’:
      overview.cpp:326:29: error: ‘pMonitor’ was not declared in this scope; did you mean ‘CMonitor’?
        326 |     Vector2D    tileSize = (pMonitor->vecSize / SIDE_LENGTH);
            |                             ^~~~~~~~
            |                             CMonitor
      overview.cpp: In member function ‘void COverview::onWorkspaceChange()’:
      overview.cpp:367:21: error: ‘pMonitor’ was not declared in this scope; did you mean ‘CMonitor’?
        367 |         startedOn = pMonitor->activeWorkspace;
            |                     ^~~~~~~~
            |                     CMonitor
      overview.cpp:370:38: error: ‘pMonitor’ was not declared in this scope; did you mean ‘CMonitor’?
        370 |         if (images[i].workspaceID != pMonitor->activeWorkspaceID())
            |                                      ^~~~~~~~
            |                                      CMonitor
      overview.cpp: In member function ‘void COverview::render()’:
      overview.cpp:385:9: error: ‘pMonitor’ was not declared in this scope; did you mean ‘CMonitor’?
        385 |     if (pMonitor->activeWorkspace != startedOn && !closing) {
            |         ^~~~~~~~
            |         CMonitor
      overview.cpp:400:26: error: ‘pMonitor’ was not declared in this scope; did you mean ‘CMonitor’?
        400 |             texbox.scale(pMonitor->scale).translate(pos.value());
            |                          ^~~~~~~~
            |                          CMonitor
      overview.cpp: In member function ‘void COverview::onSwipeUpdate(double)’:
      overview.cpp:424:37: error: ‘pMonitor’ was not declared in this scope; did you mean ‘CMonitor’?
        424 |     Vector2D            tileSize = (pMonitor->vecSize / SIDE_LENGTH);
            |                                     ^~~~~~~~
            |                                     CMonitor
      overview.cpp: In member function ‘void COverview::onSwipeEnd()’:
      overview.cpp:438:26: error: ‘pMonitor’ was not declared in this scope; did you mean ‘CMonitor’?
        438 |     const auto SIZEMIN = pMonitor->vecSize;
            |                          ^~~~~~~~
            |                          CMonitor
      make: *** [Makefile:2: all] Error 1
      make: Leaving directory '/tmp/hyprpm/dgnpacer/hyprexpo'

      ✖ Plugin hyprexpo 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.