Я пытаюсь скомпилировать оформление окна для моей загрузки Manjaro (дистрибутив Arch), и я получаю эту ошибку:
/home/ldoney/material-decoration-bt/src/CloseButton.cc: In constructor ‘Material::CloseButton::CloseButton(Material::Decoration*, QObject*)’:
/home/ldoney/material-decoration-bt/src/CloseButton.cc:34:55: error: ‘T* QWeakPointer<T>::data() const [with T = KDecoration2::DecoratedClient]’ is deprecated: Use toStrongRef() instead, and data() on the returned QSharedPointer [-Werror=deprecated-declarations]
34 | auto *decoratedClient = decoration->client().data();
| ^
In file included from /usr/include/qt/QtCore/qsharedpointer.h:48,
from /usr/include/qt/QtCore/qpointer.h:43,
from /usr/include/qt/QtCore/QPointer:1,
from /usr/include/KDecoration2/kdecoration2/decorationbutton.h:27,
from /usr/include/KDecoration2/KDecoration2/DecorationButton:1,
from /home/ldoney/material-decoration-bt/src/CloseButton.h:21,
from /home/ldoney/material-decoration-bt/src/CloseButton.cc:19:
/usr/include/qt/QtCore/qsharedpointer_impl.h:565:8: note: declared here
565 | T *data() const noexcept { return internalData(); }
| ^~~~
/home/ldoney/material-decoration-bt/src/CloseButton.cc: In member function ‘QColor Material::CloseButton::backgroundColor() const’:
/home/ldoney/material-decoration-bt/src/CloseButton.cc:87:53: error: ‘T* QWeakPointer<T>::data() const [with T = KDecoration2::DecoratedClient]’ is deprecated: Use toStrongRef() instead, and data() on the returned QSharedPointer [-Werror=deprecated-declarations]
87 | auto *decoratedClient = deco->client().data();
| ^
In file included from /usr/include/qt/QtCore/qsharedpointer.h:48,
from /usr/include/qt/QtCore/qpointer.h:43,
from /usr/include/qt/QtCore/QPointer:1,
from /usr/include/KDecoration2/kdecoration2/decorationbutton.h:27,
from /usr/include/KDecoration2/KDecoration2/DecorationButton:1,
from /home/ldoney/material-decoration-bt/src/CloseButton.h:21,
from /home/ldoney/material-decoration-bt/src/CloseButton.cc:19:
/usr/include/qt/QtCore/qsharedpointer_impl.h:565:8: note: declared here
565 | T *data() const noexcept { return internalData(); }
| ^~~~
/home/ldoney/material-decoration-bt/src/CloseButton.cc:95:53: error: ‘T* QWeakPointer<T>::data() const [with T = KDecoration2::DecoratedClient]’ is deprecated: Use toStrongRef() instead, and data() on the returned QSharedPointer [-Werror=deprecated-declarations]
95 | auto *decoratedClient = deco->client().data();
| ^
In file included from /usr/include/qt/QtCore/qsharedpointer.h:48,
from /usr/include/qt/QtCore/qpointer.h:43,
from /usr/include/qt/QtCore/QPointer:1,
from /usr/include/KDecoration2/kdecoration2/decorationbutton.h:27,
from /usr/include/KDecoration2/KDecoration2/DecorationButton:1,
from /home/ldoney/material-decoration-bt/src/CloseButton.h:21,
from /home/ldoney/material-decoration-bt/src/CloseButton.cc:19:
/usr/include/qt/QtCore/qsharedpointer_impl.h:565:8: note: declared here
565 | T *data() const noexcept { return internalData(); }
| ^~~~
/home/ldoney/material-decoration-bt/src/MinimizeButton.cc: In constructor ‘Material::MinimizeButton::MinimizeButton(Material::Decoration*, QObject*)’:
/home/ldoney/material-decoration-bt/src/MinimizeButton.cc:37:55: error: ‘T* QWeakPointer<T>::data() const [with T = KDecoration2::DecoratedClient]’ is deprecated: Use toStrongRef() instead, and data() on the returned QSharedPointer [-Werror=deprecated-declarations]
37 | auto *decoratedClient = decoration->client().data();
| ^
In file included from /usr/include/qt/QtCore/qsharedpointer.h:48,
from /usr/include/qt/QtCore/qpointer.h:43,
from /usr/include/qt/QtCore/QPointer:1,
from /usr/include/KDecoration2/kdecoration2/decorationbutton.h:27,
from /usr/include/KDecoration2/KDecoration2/DecorationButton:1,
from /home/ldoney/material-decoration-bt/src/MinimizeButton.h:21,
from /home/ldoney/material-decoration-bt/src/MinimizeButton.cc:19:
/usr/include/qt/QtCore/qsharedpointer_impl.h:565:8: note: declared here
565 | T *data() const noexcept { return internalData(); }
| ^~~~
/home/ldoney/material-decoration-bt/src/MaximizeButton.cc: In constructor ‘Material::MaximizeButton::MaximizeButton(Material::Decoration*, QObject*)’:
/home/ldoney/material-decoration-bt/src/MaximizeButton.cc:37:55: error: ‘T* QWeakPointer<T>::data() const [with T = KDecoration2::DecoratedClient]’ is deprecated: Use toStrongRef() instead, and data() on the returned QSharedPointer [-Werror=deprecated-declarations]
37 | auto *decoratedClient = decoration->client().data();
| ^
In file included from /usr/include/qt/QtCore/qsharedpointer.h:48,
from /usr/include/qt/QtCore/qpointer.h:43,
from /usr/include/qt/QtCore/QPointer:1,
from /usr/include/KDecoration2/kdecoration2/decorationbutton.h:27,
from /usr/include/KDecoration2/KDecoration2/DecorationButton:1,
from /home/ldoney/material-decoration-bt/src/MaximizeButton.h:21,
from /home/ldoney/material-decoration-bt/src/MaximizeButton.cc:19:
/usr/include/qt/QtCore/qsharedpointer_impl.h:565:8: note: declared here
565 | T *data() const noexcept { return internalData(); }
| ^~~~
/home/ldoney/material-decoration-bt/src/Decoration.cc: In member function ‘virtual void Material::Decoration::paint(QPainter*, const QRect&)’:
/home/ldoney/material-decoration-bt/src/Decoration.cc:109:43: error: ‘T* QWeakPointer<T>::data() const [with T = KDecoration2::DecoratedClient]’ is deprecated: Use toStrongRef() instead, and data() on the returned QSharedPointer [-Werror=deprecated-declarations]
109 | auto *decoratedClient = client().data();
| ^
In file included from /usr/include/qt/QtCore/qsharedpointer.h:48,
from /usr/include/qt/QtCore/qpointer.h:43,
from /usr/include/qt/QtCore/QPointer:1,
from /usr/include/KDecoration2/kdecoration2/decoration.h:28,
from /usr/include/KDecoration2/KDecoration2/Decoration:1,
from /home/ldoney/material-decoration-bt/src/Decoration.h:21,
from /home/ldoney/material-decoration-bt/src/Decoration.cc:19:
/usr/include/qt/QtCore/qsharedpointer_impl.h:565:8: note: declared here
565 | T *data() const noexcept { return internalData(); }
| ^~~~
/home/ldoney/material-decoration-bt/src/Decoration.cc: In member function ‘virtual void Material::Decoration::init()’:
/home/ldoney/material-decoration-bt/src/Decoration.cc:122:43: error: ‘T* QWeakPointer<T>::data() const [with T = KDecoration2::DecoratedClient]’ is deprecated: Use toStrongRef() instead, and data() on the returned QSharedPointer [-Werror=deprecated-declarations]
122 | auto *decoratedClient = client().data();
| ^
In file included from /usr/include/qt/QtCore/qsharedpointer.h:48,
from /usr/include/qt/QtCore/qpointer.h:43,
from /usr/include/qt/QtCore/QPointer:1,
from /usr/include/KDecoration2/kdecoration2/decoration.h:28,
from /usr/include/KDecoration2/KDecoration2/Decoration:1,
from /home/ldoney/material-decoration-bt/src/Decoration.h:21,
from /home/ldoney/material-decoration-bt/src/Decoration.cc:19:
/usr/include/qt/QtCore/qsharedpointer_impl.h:565:8: note: declared here
565 | T *data() const noexcept { return internalData(); }
| ^~~~
/home/ldoney/material-decoration-bt/src/Decoration.cc: In member function ‘void Material::Decoration::updateTitleBar()’:
/home/ldoney/material-decoration-bt/src/Decoration.cc:202:43: error: ‘T* QWeakPointer<T>::data() const [with T = KDecoration2::DecoratedClient]’ is deprecated: Use toStrongRef() instead, and data() on the returned QSharedPointer [-Werror=deprecated-declarations]
202 | auto *decoratedClient = client().data();
| ^
In file included from /usr/include/qt/QtCore/qsharedpointer.h:48,
from /usr/include/qt/QtCore/qpointer.h:43,
from /usr/include/qt/QtCore/QPointer:1,
from /usr/include/KDecoration2/kdecoration2/decoration.h:28,
from /usr/include/KDecoration2/KDecoration2/Decoration:1,
from /home/ldoney/material-decoration-bt/src/Decoration.h:21,
from /home/ldoney/material-decoration-bt/src/Decoration.cc:19:
/usr/include/qt/QtCore/qsharedpointer_impl.h:565:8: note: declared here
565 | T *data() const noexcept { return internalData(); }
| ^~~~
/home/ldoney/material-decoration-bt/src/Decoration.cc: In member function ‘void Material::Decoration::paintFrameBackground(QPainter*, const QRect&) const’:
/home/ldoney/material-decoration-bt/src/Decoration.cc:297:49: error: ‘T* QWeakPointer<T>::data() const [with T = KDecoration2::DecoratedClient]’ is deprecated: Use toStrongRef() instead, and data() on the returned QSharedPointer [-Werror=deprecated-declarations]
297 | const auto *decoratedClient = client().data();
| ^
In file included from /usr/include/qt/QtCore/qsharedpointer.h:48,
from /usr/include/qt/QtCore/qpointer.h:43,
from /usr/include/qt/QtCore/QPointer:1,
from /usr/include/KDecoration2/kdecoration2/decoration.h:28,
from /usr/include/KDecoration2/KDecoration2/Decoration:1,
from /home/ldoney/material-decoration-bt/src/Decoration.h:21,
from /home/ldoney/material-decoration-bt/src/Decoration.cc:19:
/usr/include/qt/QtCore/qsharedpointer_impl.h:565:8: note: declared here
565 | T *data() const noexcept { return internalData(); }
| ^~~~
/home/ldoney/material-decoration-bt/src/Decoration.cc: In member function ‘QColor Material::Decoration::titleBarBackgroundColor() const’:
/home/ldoney/material-decoration-bt/src/Decoration.cc:317:49: error: ‘T* QWeakPointer<T>::data() const [with T = KDecoration2::DecoratedClient]’ is deprecated: Use toStrongRef() instead, and data() on the returned QSharedPointer [-Werror=deprecated-declarations]
317 | const auto *decoratedClient = client().data();
| ^
In file included from /usr/include/qt/QtCore/qsharedpointer.h:48,
from /usr/include/qt/QtCore/qpointer.h:43,
from /usr/include/qt/QtCore/QPointer:1,
from /usr/include/KDecoration2/kdecoration2/decoration.h:28,
from /usr/include/KDecoration2/KDecoration2/Decoration:1,
from /home/ldoney/material-decoration-bt/src/Decoration.h:21,
from /home/ldoney/material-decoration-bt/src/Decoration.cc:19:
/usr/include/qt/QtCore/qsharedpointer_impl.h:565:8: note: declared here
565 | T *data() const noexcept { return internalData(); }
| ^~~~
/home/ldoney/material-decoration-bt/src/Decoration.cc: In member function ‘QColor Material::Decoration::titleBarForegroundColor() const’:
/home/ldoney/material-decoration-bt/src/Decoration.cc:331:49: error: ‘T* QWeakPointer<T>::data() const [with T = KDecoration2::DecoratedClient]’ is deprecated: Use toStrongRef() instead, and data() on the returned QSharedPointer [-Werror=deprecated-declarations]
331 | const auto *decoratedClient = client().data();
| ^
In file included from /usr/include/qt/QtCore/qsharedpointer.h:48,
from /usr/include/qt/QtCore/qpointer.h:43,
from /usr/include/qt/QtCore/QPointer:1,
from /usr/include/KDecoration2/kdecoration2/decoration.h:28,
from /usr/include/KDecoration2/KDecoration2/Decoration:1,
from /home/ldoney/material-decoration-bt/src/Decoration.h:21,
from /home/ldoney/material-decoration-bt/src/Decoration.cc:19:
/usr/include/qt/QtCore/qsharedpointer_impl.h:565:8: note: declared here
565 | T *data() const noexcept { return internalData(); }
| ^~~~
/home/ldoney/material-decoration-bt/src/Decoration.cc: In member function ‘void Material::Decoration::paintTitleBarBackground(QPainter*, const QRect&) const’:
/home/ldoney/material-decoration-bt/src/Decoration.cc:342:49: error: ‘T* QWeakPointer<T>::data() const [with T = KDecoration2::DecoratedClient]’ is deprecated: Use toStrongRef() instead, and data() on the returned QSharedPointer [-Werror=deprecated-declarations]
342 | const auto *decoratedClient = client().data();
| ^
In file included from /usr/include/qt/QtCore/qsharedpointer.h:48,
from /usr/include/qt/QtCore/qpointer.h:43,
from /usr/include/qt/QtCore/QPointer:1,
from /usr/include/KDecoration2/kdecoration2/decoration.h:28,
from /usr/include/KDecoration2/KDecoration2/Decoration:1,
from /home/ldoney/material-decoration-bt/src/Decoration.h:21,
from /home/ldoney/material-decoration-bt/src/Decoration.cc:19:
/usr/include/qt/QtCore/qsharedpointer_impl.h:565:8: note: declared here
565 | T *data() const noexcept { return internalData(); }
| ^~~~
/home/ldoney/material-decoration-bt/src/Decoration.cc: In member function ‘void Material::Decoration::paintCaption(QPainter*, const QRect&) const’:
/home/ldoney/material-decoration-bt/src/Decoration.cc:355:49: error: ‘T* QWeakPointer<T>::data() const [with T = KDecoration2::DecoratedClient]’ is deprecated: Use toStrongRef() instead, and data() on the returned QSharedPointer [-Werror=deprecated-declarations]
355 | const auto *decoratedClient = client().data();
| ^
In file included from /usr/include/qt/QtCore/qsharedpointer.h:48,
from /usr/include/qt/QtCore/qpointer.h:43,
from /usr/include/qt/QtCore/QPointer:1,
from /usr/include/KDecoration2/kdecoration2/decoration.h:28,
from /usr/include/KDecoration2/KDecoration2/Decoration:1,
from /home/ldoney/material-decoration-bt/src/Decoration.h:21,
from /home/ldoney/material-decoration-bt/src/Decoration.cc:19:
/usr/include/qt/QtCore/qsharedpointer_impl.h:565:8: note: declared here
565 | T *data() const noexcept { return internalData(); }
| ^~~~
cc1plus: all warnings being treated as errors
cc1plus: all warnings being treated as errors
make[2]: *** [src/CMakeFiles/materialdecoration.dir/build.make:109: src/CMakeFiles/materialdecoration.dir/CloseButton.cc.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [src/CMakeFiles/materialdecoration.dir/build.make:148: src/CMakeFiles/materialdecoration.dir/MinimizeButton.cc.o] Error 1
cc1plus: all warnings being treated as errors
make[2]: *** [src/CMakeFiles/materialdecoration.dir/build.make:135: src/CMakeFiles/materialdecoration.dir/MaximizeButton.cc.o] Error 1
cc1plus: all warnings being treated as errors
make[2]: *** [src/CMakeFiles/materialdecoration.dir/build.make:122: src/CMakeFiles/materialdecoration.dir/Decoration.cc.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:175: src/CMakeFiles/materialdecoration.dir/all] Error 2
make: *** [Makefile:161: all] Error 2
Я считаю, что проблема как-то связана с версией qt, которая у меня есть, и у меня установлены эти пакеты: cmake extra-cmake-modules kdecoration qt5-declarative qt5-x11extras
Мне не хватает пакета? Есть ли устаревшая упаковка или устарело само оформление окна? И, как обычно, дайте мне знать, если я пропущу какую-либо важную информацию, которая вам нужна, чтобы помочь мне. Спасибо!