Compilation error
yupyup-cmyk opened this issue · 0 comments
yupyup-cmyk commented
Kubuntu 22.10
Followed dependency installation correctly. Unsure of what's wrong.
-- The C compiler identification is GNU 12.2.0
-- The CXX compiler identification is GNU 12.2.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- The following REQUIRED packages have been found:
* ECM
-- Installing in the same prefix as Qt, adopting their path scheme.
-- Found X11: /usr/include
-- Looking for XOpenDisplay in /usr/lib/x86_64-linux-gnu/libX11.so;/usr/lib/x86_64-linux-gnu/libXext.so
-- Looking for XOpenDisplay in /usr/lib/x86_64-linux-gnu/libX11.so;/usr/lib/x86_64-linux-gnu/libXext.so - found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for connect
-- Looking for connect - found
-- Looking for remove
-- Looking for remove - found
-- Looking for shmat
-- Looking for shmat - found
-- Found KF5KIO: /usr/lib/x86_64-linux-gnu/cmake/KF5KIO/KF5KIOConfig.cmake (found version "5.98.0")
-- Found KF5GlobalAccel: /usr/lib/x86_64-linux-gnu/cmake/KF5GlobalAccel/KF5GlobalAccelConfig.cmake (found version "5.98.0")
-- Found Gettext: /usr/bin/msgmerge (found version "0.21")
-- Found KF5I18n: /usr/lib/x86_64-linux-gnu/cmake/KF5I18n/KF5I18nConfig.cmake (found version "5.98.0")
-- Found KF5: success (found suitable version "5.98.0", minimum required is "5.9.0") found components: KIO GlobalAccel I18n
-- Configuring done
-- Generating done
-- Build files have been written to: /home/yup/Documents/kwin-effect-shaders/build
[ 20%] Automatic MOC for target kwin_effect_shaders
AutoMoc warning
---------------
"SRC:/src/plugin.cc"
includes the moc file "plugin.moc", but does not contain a Q_OBJECT, Q_GADGET, Q_NAMESPACE, Q_NAMESPACE_EXPORT, K_PLUGIN_FACTORY, K_PLUGIN_CLASS, K_PLUGIN_FACTORY_WITH_JSON or K_PLUGIN_CLASS_WITH_JSON macro.
[ 20%] Built target kwin_effect_shaders_autogen
[ 60%] Building CXX object src/CMakeFiles/kwin_effect_shaders.dir/kwin_effect_shaders_autogen/mocs_compilation.cpp.o
[ 60%] Building CXX object src/CMakeFiles/kwin_effect_shaders.dir/Shaders.cpp.o
[ 80%] Building CXX object src/CMakeFiles/kwin_effect_shaders.dir/plugin.cc.o
/home/yup/Documents/kwin-effect-shaders/src/Shaders.cpp: In member function ‘void KWin::ShadersEffect::slotGenerateShaderFromBuffers()’:
/home/yup/Documents/kwin-effect-shaders/src/Shaders.cpp:246:111: error: no match for ‘operator=’ (operand types are ‘std::unique_ptr<KWin::GLShader>’ and ‘KWin::GLShader*’)
246 | m_shader = ShaderManager::instance()->generateCustomShader(ShaderTrait::MapTexture, vertexBuf, fragmentBuf);
| ^
In file included from /usr/include/c++/12/memory:76,
from /usr/include/x86_64-linux-gnu/qt5/QtCore/qsharedpointer_impl.h:71,
from /usr/include/x86_64-linux-gnu/qt5/QtCore/qsharedpointer.h:48,
from /usr/include/x86_64-linux-gnu/qt5/QtGui/qpixmap.h:48,
from /usr/include/x86_64-linux-gnu/qt5/QtGui/qicon.h:46,
from /usr/include/x86_64-linux-gnu/qt5/QtGui/QIcon:1,
from /usr/include/kwineffects.h:21,
from /home/yup/Documents/kwin-effect-shaders/src/Shaders.h:21,
from /home/yup/Documents/kwin-effect-shaders/src/Shaders.cpp:18:
/usr/include/c++/12/bits/unique_ptr.h:422:9: note: candidate: ‘template<class _Up, class _Ep> typename std::enable_if<std::__and_<std::__and_<std::is_convertible<typename std::unique_ptr<_Up, _Ep>::pointer, typename std::__uniq_ptr_impl<_Tp, _Dp>::pointer>, std::__not_<std::is_array<_Up> > >, std::is_assignable<_T2&, _U2&&> >::value, std::unique_ptr<_Tp, _Dp>&>::type std::unique_ptr<_Tp, _Dp>::operator=(std::unique_ptr<_Up, _Ep>&&) [with _Ep = _Up; _Tp = KWin::GLShader; _Dp = std::default_delete<KWin::GLShader>]’
422 | operator=(unique_ptr<_Up, _Ep>&& __u) noexcept
| ^~~~~~~~
/usr/include/c++/12/bits/unique_ptr.h:422:9: note: template argument deduction/substitution failed:
/home/yup/Documents/kwin-effect-shaders/src/Shaders.cpp:246:111: note: mismatched types ‘std::unique_ptr<_Tp, _Dp>’ and ‘KWin::GLShader*’
246 | m_shader = ShaderManager::instance()->generateCustomShader(ShaderTrait::MapTexture, vertexBuf, fragmentBuf);
| ^
/usr/include/c++/12/bits/unique_ptr.h:406:19: note: candidate: ‘std::unique_ptr<_Tp, _Dp>& std::unique_ptr<_Tp, _Dp>::operator=(std::unique_ptr<_Tp, _Dp>&&) [with _Tp = KWin::GLShader; _Dp = std::default_delete<KWin::GLShader>]’
406 | unique_ptr& operator=(unique_ptr&&) = default;
| ^~~~~~~~
/usr/include/c++/12/bits/unique_ptr.h:406:29: note: no known conversion for argument 1 from ‘KWin::GLShader*’ to ‘std::unique_ptr<KWin::GLShader>&&’
406 | unique_ptr& operator=(unique_ptr&&) = default;
| ^~~~~~~~~~~~
/usr/include/c++/12/bits/unique_ptr.h:432:7: note: candidate: ‘std::unique_ptr<_Tp, _Dp>& std::unique_ptr<_Tp, _Dp>::operator=(std::nullptr_t) [with _Tp = KWin::GLShader; _Dp = std::default_delete<KWin::GLShader>; std::nullptr_t = std::nullptr_t]’
432 | operator=(nullptr_t) noexcept
| ^~~~~~~~
/usr/include/c++/12/bits/unique_ptr.h:432:17: note: no known conversion for argument 1 from ‘KWin::GLShader*’ to ‘std::nullptr_t’
432 | operator=(nullptr_t) noexcept
| ^~~~~~~~~
make[2]: *** [src/CMakeFiles/kwin_effect_shaders.dir/build.make:104: src/CMakeFiles/kwin_effect_shaders.dir/Shaders.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:612: src/CMakeFiles/kwin_effect_shaders.dir/all] Error 2
make: *** [Makefile:136: all] Error 2