Closed unifreak closed 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.
When doing
hyprpm update
, all plugins build failed due to somePHLMONITOR
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: