timxx / xmradio

Xia Mi Radio
GNU General Public License v3.0
56 stars 12 forks source link

编译卡在gtk面板这儿 #45

Open lowy opened 7 years ago

lowy commented 7 years ago

debian9 amd64 xfce4.12 kernel4.9 [ 45%] Building C object src/CMakeFiles/xmradio-core.dir/xmrlabel.c.o /home/lowy/xmradio/src/xmrlabel.c: In function ‘xmr_label_realize’: /home/lowy/xmradio/src/xmrlabel.c:165:3: error: ‘gdk_window_set_background_rgba’ is deprecated [-Werror=deprecated-declarations] gdk_window_set_background_rgba(window, &rgba); ^~~~~~~~~~ In file included from /usr/include/gtk-3.0/gdk/gdkseat.h:28:0, from /usr/include/gtk-3.0/gdk/gdkdisplay.h:33, from /usr/include/gtk-3.0/gdk/gdkscreen.h:32, from /usr/include/gtk-3.0/gdk/gdkapplaunchcontext.h:31, from /usr/include/gtk-3.0/gdk/gdk.h:32, from /usr/include/gtk-3.0/gtk/gtk.h:30, from /home/lowy/xmradio/src/xmrlabel.h:23, from /home/lowy/xmradio/src/xmrlabel.c:21: /usr/include/gtk-3.0/gdk/gdkwindow.h:778:15: note: declared here void gdk_window_set_background_rgba (GdkWindow *window, ^~~~~~~~~~ cc1: all warnings being treated as errors src/CMakeFiles/xmradio-core.dir/build.make:230: recipe for target 'src/CMakeFiles/xmradio-core.dir/xmrlabel.c.o' failed make[2]: [src/CMakeFiles/xmradio-core.dir/xmrlabel.c.o] Error 1 CMakeFiles/Makefile2:543: recipe for target 'src/CMakeFiles/xmradio-core.dir/all' failed make[1]: [src/CMakeFiles/xmradio-core.dir/all] Error 2 Makefile:127: recipe for target 'all' failed make: *** [all] Error 2 这个问题就算安装现成的ppa里的deb 外观切换到gtk界面也会出现黑幕不显示现象