kevinlekiller / kwin-effect-shaders

Desktop effect for KDE Plasma to apply GLSL shaders. Alternative to vkBasalt or ReShade when they are unsupported.
GNU General Public License v2.0
40 stars 3 forks source link

whats happenning here? #12

Open J-K-Tech opened 1 year ago

J-K-Tech commented 1 year ago
giant error wall `/usr/include/kwineffects.h:3010:20: error: ‘std::span’ has not been declared 3010 void copy(std::span destination); ^~~~ /usr/include/kwineffects.h:3010:24: error: expected ‘,’ or ‘.. ’ before ‘<’ token 3010 void copy(std::span destination); ^ In file included from /home/komi/src/kwin-effect-shaders/src/Shaders.h:21, from /home/komi/src/kwin-effect-shaders/src/plugin.cc:18: /usr/include/kwineffects.h:3010:20: error: ‘std::span’ has not been declared 3010 void copy(std::span destination); ^~~~ /usr/include/kwineffects.h:3010:24: error: expected ‘,’ or ‘.. ’ before ‘<’ token 3010 void copy(std::span destination); ^ /usr/include/kwineffects.h:3428:10: error: ‘optional’ in namespace ‘std’ does not name a template type 3428 std::optional renderTargetScale() const; ^~~~ /usr/include/kwineffects.h:3428:5: note: ‘std::optional’ is only available from C++17 onwards 3428 std::optional renderTargetScale() const; ^~~ /usr/include/kwineffects.h:3428:10: error: ‘optional’ in namespace ‘std’ does not name a template type 3428 std::optional renderTargetScale() const; ^~~~ /usr/include/kwineffects.h:3428:5: note: ‘std::optional’ is only available from C++17 onwards 3428 std::optional renderTargetScale() const; ^~~ In file included from /home/komi/src/kwin-effect-shaders/src/Shaders.h:21, from /home/komi/src/kwin-effect-shaders/src/Shaders.cpp:18: /usr/include/kwineffects.h:3010:20: error: ‘std::span’ has not been declared 3010 void copy(std::span destination); ^~~~ /usr/include/kwineffects.h:3010:24: error: expected ‘,’ or ‘.. ’ before ‘<’ token 3010 void copy(std::span destination); ^ /usr/include/kwineffects.h:3428:10: error: ‘optional’ in namespace ‘std’ does not name a template type 3428 std::optional renderTargetScale() const; ^~~~ /usr/include/kwineffects.h:3428:5: note: ‘std::optional’ is only available from C++17 onwards 3428 std::optional renderTargetScale() const; ^~~ /home/komi/src/kwin-effect-shaders/src/Shaders.h:46:21: error: ‘GLShader’ was not declared in this scope 46 std::unique_ptr m_shader; ^~~~ /home/komi/src/kwin-effect-shaders/src/Shaders.h:46:29: error: template argument 1 is invalid 46 std::unique_ptr m_shader; ^ /home/komi/src/kwin-effect-shaders/src/Shaders.h:46:29: error: template argument 2 is invalid /home/komi/src/kwin-effect-shaders/build/src/kwin_effect_shaders_autogen/EWIEGA46WW/../../../../src/Shaders.h:46:21: error: ‘GLShader’ was not declared in this scope 46 std::unique_ptr m_shader; ^~~~ /home/komi/src/kwin-effect-shaders/build/src/kwin_effect_shaders_autogen/EWIEGA46WW/../../../../src/Shaders.h:46:29: error: template argument 1 is invalid 46 std::unique_ptr m_shader; ^ /home/komi/src/kwin-effect-shaders/build/src/kwin_effect_shaders_autogen/EWIEGA46WW/../../../../src/Shaders.h:46:29: error: template argument 2 is invalid /home/komi/src/kwin-effect-shaders/src/Shaders.h:46:21: error: ‘GLShader’ was not declared in this scope; did you mean ‘glIsShader’? 46 std::unique_ptr m_shader; ^~~~ glIsShader /home/komi/src/kwin-effect-shaders/src/Shaders.h:46:29: error: template argument 1 is invalid 46 std::unique_ptr m_shader; ^ /home/komi/src/kwin-effect-shaders/src/Shaders.h:46:29: error: template argument 2 is invalid make[2]: [src/CMakeFiles/kwin_effect_shaders.dir/build.make:76: src/CMakeFiles/kwin_effect_shaders.dir/kwin_effect_shaders_autogen/mocs_compilation.cpp.o] Error 1 make[2]: Waiting for unfinished jobs.... make[2]: *** [src/CMakeFiles/kwin_effect_shaders.dir/build.make:90: src/CMakeFiles/kwin_effect_shaders.dir/plugin.cc.o] Error 1 /home/komi/src/kwin-effect-shaders/src/Shaders.cpp: In constructor ‘KWin::ShadersEffect::ShadersEffect()’: /home/komi/src/kwin-effect-shaders/src/Shaders.cpp:36:43: error: cannot convert ‘std::nullptr_t’ to ‘int’ in initialization 36 ShadersEffect::ShadersEffect() : m_shader(nullptr), m_effectEnabled(false) { ^~~
std::nullptr_t
/home/komi/src/kwin-effect-shaders/src/Shaders.cpp:60:14: error: ‘class KWin::EffectsHandler’ has no member named ‘registerGlobalShortcut’; did you mean ‘registerAxisShortcut’? 60 effects->registerGlobalShortcut(Qt::CTRL + Qt::META + Qt::Key_Z, toggleEffectShortcut); ^~~~~~ registerAxisShortcut /home/komi/src/kwin-effect-shaders/src/Shaders.cpp:67:14: error: ‘class KWin::EffectsHandler’ has no member named ‘registerGlobalShortcut’; did you mean ‘registerAxisShortcut’? 67 effects->registerGlobalShortcut(Qt::CTRL + Qt::META + Qt::Key_A, reloadShadersShortcut); ^~~~~~ registerAxisShortcut /home/komi/src/kwin-effect-shaders/src/Shaders.cpp: In member function ‘void KWin::ShadersEffect::slotGenerateShaderFromBuffers()’: /home/komi/src/kwin-effect-shaders/src/Shaders.cpp:246:63: error: cannot convert ‘std::unique_ptr’ to ‘int’ in assignment 246 m_shader = ShaderManager::instance()->generateCustomShader(ShaderTrait::MapTexture, vertexBuf, fragmentBuf); ~~~~~~~~~^~~~~~~~~~~
std::unique_ptr

/home/komi/src/kwin-effect-shaders/src/Shaders.cpp:249:18: error: base operand of ‘->’ is not a pointer 249 | if (!m_shader->isValid()) { | ^~ /home/komi/src/kwin-effect-shaders/src/Shaders.cpp: In member function ‘virtual void KWin::ShadersEffect::paintWindow(KWin::EffectWindow, int, QRegion, KWin::WindowPaintData&)’: /home/komi/src/kwin-effect-shaders/src/Shaders.cpp:304:32: error: request for member ‘get’ in ‘((KWin::ShadersEffect)this)->KWin::ShadersEffect::m_shader’, which is of non-class type ‘int’ 304 | ShaderBinder bind(m_shader.get()); | ^~~ /home/komi/src/kwin-effect-shaders/src/Shaders.cpp:308:13: error: base operand of ‘->’ is not a pointer 308 | m_shader->setUniform("g_Random", (float) drand48()); | ^~ /home/komi/src/kwin-effect-shaders/src/Shaders.cpp:309:13: error: base operand of ‘->’ is not a pointer 309 | m_shader->setUniform("g_TextureSize", QVector2D(effects->virtualScreenSize().width(), effects->virtualScreenSize().height())); | ^~ /home/komi/src/kwin-effect-shaders/src/Shaders.cpp:310:13: error: base operand of ‘->’ is not a pointer 310 | m_shader->setUniform("modelViewProjectionMatrix", data.projectionMatrix()); | ^~ /home/komi/src/kwin-effect-shaders/src/Shaders.cpp:312:10: error: ‘class KWin::WindowPaintData’ has no member named ‘shader’ 312 | data.shader = m_shader.get(); | ^~ /home/komi/src/kwin-effect-shaders/src/Shaders.cpp:312:28: error: request for member ‘get’ in ‘((KWin::ShadersEffect*)this)->KWin::ShadersEffect::m_shader’, which is of non-class type ‘int’ 312 | data.shader = m_shader.get(); | `

kevinlekiller commented 1 year ago

As mentioned in #9, I don't have time to fix this issue, there are some major changes in 5.27 and things will get worse with plasma 6.

I'll archive this repo until I have more time.