Duckonaut / hyprlens

Hyprland plugin for a different, shared texture as the transparent x-ray background
12 stars 0 forks source link

plugin fails to build #1

Open SpomJ opened 10 months ago

SpomJ commented 10 months ago
g++ -c -o obj/main.o src/main.cpp -g -fPIC --no-gnu-unique -std=c++23 -fdiagnostics-color=always `pkg-config --cflags hyprland pixman-1 libdrm` -Iinclude
src/main.cpp: In function ‘void hijackBlurFramebuffer()’:
src/main.cpp:100:45: error: no matching function for call to ‘CHyprOpenGLImpl::renderTexture(CTexture&, wlr_box*, float, int, bool, bool)’
  100 |                 g_pHyprOpenGL->renderTexture(*g_pTexture, &wholeMonitor, 1.f, 0, false, true);
      |                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/local/include/hyprland/src/render/Renderer.hpp:8,
                 from /usr/local/include/hyprland/src/Compositor.hpp:26,
                 from src/main.cpp:8:
/usr/local/include/hyprland/src/render/OpenGL.hpp:125:27: note: candidate: ‘void CHyprOpenGLImpl::renderTexture(wlr_texture*, CBox*, float, int, bool)’
  125 |     void                  renderTexture(wlr_texture*, CBox*, float a, int round = 0, bool allowCustomUV = false);
      |                           ^~~~~~~~~~~~~
/usr/local/include/hyprland/src/render/OpenGL.hpp:125:27: note:   candidate expects 5 arguments, 6 provided
/usr/local/include/hyprland/src/render/OpenGL.hpp:126:27: note: candidate: ‘void CHyprOpenGLImpl::renderTexture(const CTexture&, CBox*, float, int, bool, bool)’
  126 |     void                  renderTexture(const CTexture&, CBox*, float a, int round = 0, bool discardActive = false, bool allowCustomUV = false);
      |                           ^~~~~~~~~~~~~
/usr/local/include/hyprland/src/render/OpenGL.hpp:126:58: note:   no known conversion for argument 2 from ‘wlr_box*’ to ‘CBox*’
  126 |     void                  renderTexture(const CTexture&, CBox*, float a, int round = 0, bool discardActive = false, bool allowCustomUV = false);
      |                                                          ^~~~~
src/main.cpp:103:45: error: no matching function for call to ‘CHyprOpenGLImpl::renderTexture(CTexture&, wlr_box*, float, int)’
  103 |                 g_pHyprOpenGL->renderTexture(*g_pTexture, &wholeMonitor, 1.f, 0);
      |                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/hyprland/src/render/OpenGL.hpp:125:27: note: candidate: ‘void CHyprOpenGLImpl::renderTexture(wlr_texture*, CBox*, float, int, bool)’
  125 |     void                  renderTexture(wlr_texture*, CBox*, float a, int round = 0, bool allowCustomUV = false);
      |                           ^~~~~~~~~~~~~
/usr/local/include/hyprland/src/render/OpenGL.hpp:125:41: note:   no known conversion for argument 1 from ‘CTexture’ to ‘wlr_texture*’
  125 |     void                  renderTexture(wlr_texture*, CBox*, float a, int round = 0, bool allowCustomUV = false);
      |                                         ^~~~~~~~~~~~
/usr/local/include/hyprland/src/render/OpenGL.hpp:126:27: note: candidate: ‘void CHyprOpenGLImpl::renderTexture(const CTexture&, CBox*, float, int, bool, bool)’
  126 |     void                  renderTexture(const CTexture&, CBox*, float a, int round = 0, bool discardActive = false, bool allowCustomUV = false);
      |                           ^~~~~~~~~~~~~
/usr/local/include/hyprland/src/render/OpenGL.hpp:126:58: note:   no known conversion for argument 2 from ‘wlr_box*’ to ‘CBox*’
  126 |     void                  renderTexture(const CTexture&, CBox*, float a, int round = 0, bool discardActive = false, bool allowCustomUV = false);
      |                                                          ^~~~~
src/main.cpp:110:50: error: ‘struct SMonitorRenderData’ has no member named ‘primaryFB’
  110 |     g_pHyprOpenGL->m_RenderData.pCurrentMonData->primaryFB.bind();
      |                                                  ^~~~~~~~~
make: *** [Makefile:75: obj/main.o] Error 1