Compile xfce4-timer-plugin

Matthew Brush mbrush at
Sat Apr 29 21:43:42 CEST 2017

On 2017-04-29 03:24 AM, Dani wrote:
> [...]
> Another thing
> When I execute ./
> The file, makefile, on line 266 (Refers to gtk2)
> LIBXFCE4PANEL_CFLAGS = -pthread -I/usr/include/xfce4/libxfce4panel-1.0
> -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include
> -I/usr/include/gio-unix-2.0/ -I/usr/include/cairo
> -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo
> -I/usr/include/pixman-1 -I/usr/include/libpng12
> -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng12
> -I/usr/include/pango-1.0 -I/usr/include/harfbuzz
> -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/include/xfce4
> -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
> Is this correct?

No, you need to make sure libxfce4panel is building against GTK+3 as 
well. It looks like the git master branch does by default, but I'm not 
sure if that's what you're building against.

> xfce4_timer-xfcetimer.o: In function `plugin_create_options':
> /home/usuario/pro_linux_c/xfce4-timer-plugin_meu_gtk3/src/xfcetimer.c:1615:
> undefined reference to `gtk_button_box_new'

That's your error right there. As you said above, it's building against 
GTK+2 still, but `gtk_button_box_new` is only available since GTK+ 3.0. 
This should go away once you get all your dependencies also building 
against GTK+ 3.

Matthew Brush

More information about the Xfce4-dev mailing list