[ 28%] Building CXX object src/CMakeFiles/deepin-topbar.dir/widgets/switchitem.cpp.o
src/CMakeFiles/deepin-topbar.dir/build.make:638: recipe for target 'src/CMakeFiles/deepin-topbar.dir/widgets/switchitem.cpp.o' failed
CMakeFiles/Makefile2:86: recipe for target 'src/CMakeFiles/deepin-topbar.dir/all' failed
Makefile:129: recipe for target 'all' failed
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
/home/liumwei/Downloads/deepin-topbar-master/deepin-topbar/src/frame/mainframe.cpp: In lambda function:
/home/liumwei/Downloads/deepin-topbar-master/deepin-topbar/src/frame/mainframe.cpp:332:21: warning: unused variable ‘ratio’ [-Wunused-variable]
const qreal ratio { devicePixelRatioF() };
^~~~~
In file included from /home/liumwei/Downloads/deepin-topbar-master/deepin-topbar/src/widgets/switchitem.cpp:1:0:
/home/liumwei/Downloads/deepin-topbar-master/deepin-topbar/src/widgets/switchitem.h: In member function ‘bool dtb::widgets::SwitchItem::checked() const’:
/home/liumwei/Downloads/deepin-topbar-master/deepin-topbar/src/widgets/switchitem.h:18:45: error: ‘class Dtk::Widget::DSwitchButton’ has no member named ‘isChecked’; did you mean ‘checked’?
bool checked() const { return m_switch->isChecked(); }
^~~~~
make[2]: [src/CMakeFiles/deepin-topbar.dir/widgets/switchitem.cpp.o] Error 1
make[1]: [src/CMakeFiles/deepin-topbar.dir/all] Error 2
make: *** [all] Error 2
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
/home/liumwei/Downloads/deepin-topbar-master/deepin-topbar/src/frame/mainframe.cpp: In lambda function: /home/liumwei/Downloads/deepin-topbar-master/deepin-topbar/src/frame/mainframe.cpp:332:21: warning: unused variable ‘ratio’ [-Wunused-variable] const qreal ratio { devicePixelRatioF() }; ^~~~~ In file included from /home/liumwei/Downloads/deepin-topbar-master/deepin-topbar/src/widgets/switchitem.cpp:1:0: /home/liumwei/Downloads/deepin-topbar-master/deepin-topbar/src/widgets/switchitem.h: In member function ‘bool dtb::widgets::SwitchItem::checked() const’: /home/liumwei/Downloads/deepin-topbar-master/deepin-topbar/src/widgets/switchitem.h:18:45: error: ‘class Dtk::Widget::DSwitchButton’ has no member named ‘isChecked’; did you mean ‘checked’? bool checked() const { return m_switch->isChecked(); } ^
~~~~ make[2]: [src/CMakeFiles/deepin-topbar.dir/widgets/switchitem.cpp.o] Error 1 make[1]: [src/CMakeFiles/deepin-topbar.dir/all] Error 2 make: *** [all] Error 2