Hay planes para la actualizacion de FiveLinux con la mas reciente version de GTK?
Trate de crear FiveLinux con GTK3 pero el proceso aborta generando los siguientes mensaje:
- Code: Select all Expand view RUN
- pi@raspberrypi:~/fivelinux $ make
gcc -D_HARBOUR_ `pkg-config --cflags gtk+-3.0` -I./../harbour/include -I./include -Wall -c -o objc/buttons.o source/winapi/buttons.c
source/winapi/buttons.c: In function ‘HB_FUN_CREATEBUTTON’:
source/winapi/buttons.c:14:7: warning: ‘gtk_button_new_from_stock’ is deprecated (declared at /usr/include/gtk-3.0/gtk/gtkbutton.h:103): Use 'gtk_button_new_with_label' instead [-Wdeprecated-declarations]
hWnd = gtk_button_new_from_stock( hb_parc( 2 ) );
^
source/winapi/buttons.c:18:4: warning: implicit declaration of function ‘gtk_signal_connect’ [-Wimplicit-function-declaration]
gtk_signal_connect( GTK_OBJECT( hWnd ), "clicked", ( GtkSignalFunc )
^
source/winapi/buttons.c:18:4: warning: implicit declaration of function ‘GTK_OBJECT’ [-Wimplicit-function-declaration]
source/winapi/buttons.c:18:57: error: ‘GtkSignalFunc’ undeclared (first use in this function)
gtk_signal_connect( GTK_OBJECT( hWnd ), "clicked", ( GtkSignalFunc )
^
source/winapi/buttons.c:18:57: note: each undeclared identifier is reported only once for each function it appears in
source/winapi/buttons.c:19:24: error: expected ‘)’ before ‘ClickEvent’
ClickEvent, NULL );
^
source/winapi/buttons.c:22:28: error: expected ‘)’ before ‘LostFocusEvent’
( GtkSignalFunc ) LostFocusEvent, NULL );
^
source/winapi/buttons.c:25:42: error: expected ‘)’ before ‘button_press_event’
( GtkSignalFunc ) button_press_event, NULL );
^
source/winapi/buttons.c:28:42: error: expected ‘)’ before ‘motion_notify_event’
( GtkSignalFunc ) motion_notify_event, NULL );
^
source/winapi/buttons.c: In function ‘HB_FUN_CREATEBTN’:
source/winapi/buttons.c:43:4: warning: implicit declaration of function ‘gtk_object_get_data’ [-Wimplicit-function-declaration]
GtkWidget * hToolBar = ( GtkWidget * ) gtk_object_get_data( GTK_OBJECT(
^
source/winapi/buttons.c:48:7: warning: implicit declaration of function ‘gtk_toolbar_append_space’ [-Wimplicit-function-declaration]
gtk_toolbar_append_space( GTK_TOOLBAR( hToolBar ) );
^
source/winapi/buttons.c:54:7: warning: implicit declaration of function ‘gtk_toolbar_append_item’ [-Wimplicit-function-declaration]
hWnd = gtk_toolbar_append_item( GTK_TOOLBAR( hToolBar), NULL,
^
source/winapi/buttons.c:54:12: warning: assignment makes pointer from integer without a cast
hWnd = gtk_toolbar_append_item( GTK_TOOLBAR( hToolBar), NULL,
^
source/winapi/buttons.c:60:7: warning: implicit declaration of function ‘gtk_toolbar_insert_stock’ [-Wimplicit-function-declaration]
hWnd = gtk_toolbar_insert_stock( GTK_TOOLBAR( hToolBar ),
^
source/winapi/buttons.c:60:12: warning: assignment makes pointer from integer without a cast
hWnd = gtk_toolbar_insert_stock( GTK_TOOLBAR( hToolBar ),
^
source/winapi/buttons.c:66:7: warning: implicit declaration of function ‘gtk_toolbar_append_element’ [-Wimplicit-function-declaration]
hWnd = gtk_toolbar_append_element( GTK_TOOLBAR( hToolBar ),
^
source/winapi/buttons.c:67:42: error: ‘GTK_TOOLBAR_CHILD_BUTTON’ undeclared (first use in this function)
GTK_TOOLBAR_CHILD_BUTTON,
^
In file included from /usr/include/glib-2.0/gobject/gobject.h:24:0,
from /usr/include/glib-2.0/gobject/gbinding.h:29,
from /usr/include/glib-2.0/glib-object.h:23,
from /usr/include/glib-2.0/gio/gioenums.h:28,
from /usr/include/glib-2.0/gio/giotypes.h:28,
from /usr/include/glib-2.0/gio/gio.h:26,
from /usr/include/gtk-3.0/gdk/gdkapplaunchcontext.h:28,
from /usr/include/gtk-3.0/gdk/gdk.h:32,
from /usr/include/gtk-3.0/gtk/gtk.h:30,
from source/winapi/buttons.c:2:
source/winapi/buttons.c:71:51: error: ‘GtkToolbarChild’ undeclared (first use in this function)
gtk_label_set_use_underline( GTK_LABEL( ( ( GtkToolbarChild * )
^
/usr/include/glib-2.0/gobject/gtype.h:1933:57: note: in definition of macro ‘_G_TYPE_CIC’
((ct*) g_type_check_instance_cast ((GTypeInstance*) ip, gt))
^
/usr/include/gtk-3.0/gtk/gtklabel.h:41:28: note: in expansion of macro ‘G_TYPE_CHECK_INSTANCE_CAST’
#define GTK_LABEL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_LABEL, GtkLabel))
^
source/winapi/buttons.c:71:36: note: in expansion of macro ‘GTK_LABEL’
gtk_label_set_use_underline( GTK_LABEL( ( ( GtkToolbarChild * )
^
source/winapi/butpi@raspberrypi:~/fivelinux $ make
gcc -D_HARBOUR_ `pkg-config --cflags gtk+-3.0` -I./../harbour/include -I./include -Wall -c -o objc/buttons.o source/winapi/buttons.c
source/winapi/buttons.c: In function ‘HB_FUN_CREATEBUTTON’:
source/winapi/buttons.c:14:7: warning: ‘gtk_button_new_from_stock’ is deprecated (declared at /usr/include/gtk-3.0/gtk/gtkbutton.h:103): Use 'gtk_button_new_with_label' instead [-Wdeprecated-declarations]
hWnd = gtk_button_new_from_stock( hb_parc( 2 ) );
^
source/winapi/buttons.c:18:4: warning: implicit declaration of function ‘gtk_signal_connect’ [-Wimplicit-function-declaration]
gtk_signal_connect( GTK_OBJECT( hWnd ), "clicked", ( GtkSignalFunc )
^
source/winapi/buttons.c:18:4: warning: implicit declaration of function ‘GTK_OBJECT’ [-Wimplicit-function-declaration]
source/winapi/buttons.c:18:57: error: ‘GtkSignalFunc’ undeclared (first use in this function)
gtk_signal_connect( GTK_OBJECT( hWnd ), "clicked", ( GtkSignalFunc )
^
source/winapi/buttons.c:18:57: note: each undeclared identifier is reported only once for each function it appears in
source/winapi/buttons.c:19:24: error: expected ‘)’ before ‘ClickEvent’
ClickEvent, NULL );
^
source/winapi/buttons.c:22:28: error: expected ‘)’ before ‘LostFocusEvent’
( GtkSignalFunc ) LostFocusEvent, NULL );
^
source/winapi/buttons.c:25:42: error: expected ‘)’ before ‘button_press_event’
( GtkSignalFunc ) button_press_event, NULL );
^
source/winapi/buttons.c:28:42: error: expected ‘)’ before ‘motion_notify_event’
( GtkSignalFunc ) motion_notify_event, NULL );
^
source/winapi/buttons.c: In function ‘HB_FUN_CREATEBTN’:
source/winapi/buttons.c:43:4: warning: implicit declaration of function ‘gtk_object_get_data’ [-Wimplicit-function-declaration]
GtkWidget * hToolBar = ( GtkWidget * ) gtk_object_get_data( GTK_OBJECT(
^
source/winapi/buttons.c:48:7: warning: implicit declaration of function ‘gtk_toolbar_append_space’ [-Wimplicit-function-declaration]
gtk_toolbar_append_space( GTK_TOOLBAR( hToolBar ) );
^
source/winapi/buttons.c:54:7: warning: implicit declaration of function ‘gtk_toolbar_append_item’ [-Wimplicit-function-declaration]
hWnd = gtk_toolbar_append_item( GTK_TOOLBAR( hToolBar), NULL,
^
source/winapi/buttons.c:54:12: warning: assignment makes pointer from integer without a cast
hWnd = gtk_toolbar_append_item( GTK_TOOLBAR( hToolBar), NULL,
^
source/winapi/buttons.c:60:7: warning: implicit declaration of function ‘gtk_toolbar_insert_stock’ [-Wimplicit-function-declaration]
hWnd = gtk_toolbar_insert_stock( GTK_TOOLBAR( hToolBar ),
^
source/winapi/buttons.c:60:12: warning: assignment makes pointer from integer without a cast
hWnd = gtk_toolbar_insert_stock( GTK_TOOLBAR( hToolBar ),
^
source/winapi/buttons.c:66:7: warning: implicit declaration of function ‘gtk_toolbar_append_element’ [-Wimplicit-function-declaration]
hWnd = gtk_toolbar_append_element( GTK_TOOLBAR( hToolBar ),
^
source/winapi/buttons.c:67:42: error: ‘GTK_TOOLBAR_CHILD_BUTTON’ undeclared (first use in this function)
GTK_TOOLBAR_CHILD_BUTTON,
^
In file included from /usr/include/glib-2.0/gobject/gobject.h:24:0,
from /usr/include/glib-2.0/gobject/gbinding.h:29,
from /usr/include/glib-2.0/glib-object.h:23,
from /usr/include/glib-2.0/gio/gioenums.h:28,
from /usr/include/glib-2.0/gio/giotypes.h:28,
from /usr/include/glib-2.0/gio/gio.h:26,
from /usr/include/gtk-3.0/gdk/gdkapplaunchcontext.h:28,
from /usr/include/gtk-3.0/gdk/gdk.h:32,
from /usr/include/gtk-3.0/gtk/gtk.h:30,
from source/winapi/buttons.c:2:
source/winapi/buttons.c:71:51: error: ‘GtkToolbarChild’ undeclared (first use in this function)
gtk_label_set_use_underline( GTK_LABEL( ( ( GtkToolbarChild * )
^
/usr/include/glib-2.0/gobject/gtype.h:1933:57: note: in definition of macro ‘_G_TYPE_CIC’
((ct*) g_type_check_instance_cast ((GTypeInstance*) ip, gt))
^
/usr/include/gtk-3.0/gtk/gtklabel.h:41:28: note: in expansion of macro ‘G_TYPE_CHECK_INSTANCE_CAST’
#define GTK_LABEL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_LABEL, GtkLabel))
^
source/winapi/buttons.c:71:36: note: in expansion of macro ‘GTK_LABEL’
gtk_label_set_use_underline( GTK_LABEL( ( ( GtkToolbarChild * )
^
source/winapi/buttons.c:71:69: error: expected expression before ‘)’ token
gtk_label_set_use_underline( GTK_LABEL( ( ( GtkToolbarChild * )
^
/usr/include/glib-2.0/gobject/gtype.h:1933:57: note: in definition of macro ‘_G_TYPE_CIC’
((ct*) g_type_check_instance_cast ((GTypeInstance*) ip, gt))
^
/usr/include/gtk-3.0/gtk/gtklabel.h:41:28: note: in expansion of macro ‘G_TYPE_CHECK_INSTANCE_CAST’
#define GTK_LABEL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_LABEL, GtkLabel))
^
source/winapi/buttons.c:71:36: note: in expansion of macro ‘GTK_LABEL’
gtk_label_set_use_underline( GTK_LABEL( ( ( GtkToolbarChild * )
^
source/winapi/buttons.c:72:45: error: ‘GtkToolbar’ has no member named ‘children’
( g_list_last( GTK_TOOLBAR( hToolBar )->children )->data ) )->label ),
^
/usr/include/glib-2.0/gobject/gtype.h:1933:57: note: in definition of macro ‘_G_TYPE_CIC’
((ct*) g_type_check_instance_cast ((GTypeInstance*) ip, gt))
^
/usr/include/gtk-3.0/gtk/gtklabel.h:41:28: note: in expansion of macro ‘G_TYPE_CHECK_INSTANCE_CAST’
#define GTK_LABEL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_LABEL, GtkLabel))
^
source/winapi/buttons.c:71:36: note: in expansion of macro ‘GTK_LABEL’
gtk_label_set_use_underline( GTK_LABEL( ( ( GtkToolbarChild * )
^
source/winapi/buttons.c:76:57: error: ‘GtkSignalFunc’ undeclared (first use in this function)
gtk_signal_connect( GTK_OBJECT( hWnd ), "clicked", ( GtkSignalFunc )
^
source/winapi/buttons.c:77:24: error: expected ‘)’ before ‘ClickEvent’
ClickEvent, NULL );
^
Makefile:97: recipe for target 'objc/buttons.o' failed
make: *** [objc/buttons.o] Error 1
tons.c:71:69: error: expected expression before ‘)’ token
gtk_label_set_use_underline( GTK_LABEL( ( ( GtkToolbarChild * )
^
/usr/include/glib-2.0/gobject/gtype.h:1933:57: note: in definition of macro ‘_G_TYPE_CIC’
((ct*) g_typepi@raspberrypi:~/fivelinux $ make
gcc -D_HARBOUR_ `pkg-config --cflags gtk+-3.0` -I./../harbour/include -I./include -Wall -c -o objc/buttons.o source/winapi/buttons.c
source/winapi/buttons.c: In function ‘HB_FUN_CREATEBUTTON’:
source/winapi/buttons.c:14:7: warning: ‘gtk_button_new_from_stock’ is deprecated (declared at /usr/include/gtk-3.0/gtk/gtkbutton.h:103): Use 'gtk_button_new_with_label' instead [-Wdeprecated-declarations]
hWnd = gtk_button_new_from_stock( hb_parc( 2 ) );
^
source/winapi/buttons.c:18:4: warning: implicit declaration of function ‘gtk_signal_connect’ [-Wimplicit-function-declaration]
gtk_signal_connect( GTK_OBJECT( hWnd ), "clicked", ( GtkSignalFunc )
^
source/winapi/buttons.c:18:4: warning: implicit declaration of function ‘GTK_OBJECT’ [-Wimplicit-function-declaration]
source/winapi/buttons.c:18:57: error: ‘GtkSignalFunc’ undeclared (first use in this function)
gtk_signal_connect( GTK_OBJECT( hWnd ), "clicked", ( GtkSignalFunc )
^
source/winapi/buttons.c:18:57: note: each undeclared identifier is reported only once for each function it appears in
source/winapi/buttons.c:19:24: error: expected ‘)’ before ‘ClickEvent’
ClickEvent, NULL );
^
source/winapi/buttons.c:22:28: error: expected ‘)’ before ‘LostFocusEvent’
( GtkSignalFunc ) LostFocusEvent, NULL );
^
source/winapi/buttons.c:25:42: error: expected ‘)’ before ‘button_press_event’
( GtkSignalFunc ) button_press_event, NULL );
^
source/winapi/buttons.c:28:42: error: expected ‘)’ before ‘motion_notify_event’
( GtkSignalFunc ) motion_notify_event, NULL );
^
source/winapi/buttons.c: In function ‘HB_FUN_CREATEBTN’:
source/winapi/buttons.c:43:4: warning: implicit declaration of function ‘gtk_object_get_data’ [-Wimplicit-function-declaration]
GtkWidget * hToolBar = ( GtkWidget * ) gtk_object_get_data( GTK_OBJECT(
^
source/winapi/buttons.c:48:7: warning: implicit declaration of function ‘gtk_toolbar_append_space’ [-Wimplicit-function-declaration]
gtk_toolbar_append_space( GTK_TOOLBAR( hToolBar ) );
^
source/winapi/buttons.c:54:7: warning: implicit declaration of function ‘gtk_toolbar_append_item’ [-Wimplicit-function-declaration]
hWnd = gtk_toolbar_append_item( GTK_TOOLBAR( hToolBar), NULL,
^
source/winapi/buttons.c:54:12: warning: assignment makes pointer from integer without a cast
hWnd = gtk_toolbar_append_item( GTK_TOOLBAR( hToolBar), NULL,
^
source/winapi/buttons.c:60:7: warning: implicit declaration of function ‘gtk_toolbar_insert_stock’ [-Wimplicit-function-declaration]
hWnd = gtk_toolbar_insert_stock( GTK_TOOLBAR( hToolBar ),
^
source/winapi/buttons.c:60:12: warning: assignment makes pointer from integer without a cast
hWnd = gtk_toolbar_insert_stock( GTK_TOOLBAR( hToolBar ),
^
source/winapi/buttons.c:66:7: warning: implicit declaration of function ‘gtk_toolbar_append_element’ [-Wimplicit-function-declaration]
hWnd = gtk_toolbar_append_element( GTK_TOOLBAR( hToolBar ),
^
source/winapi/buttons.c:67:42: error: ‘GTK_TOOLBAR_CHILD_BUTTON’ undeclared (first use in this function)
GTK_TOOLBAR_CHILD_BUTTON,
^
In file included from /usr/include/glib-2.0/gobject/gobject.h:24:0,
from /usr/include/glib-2.0/gobject/gbinding.h:29,
from /usr/include/glib-2.0/glib-object.h:23,
from /usr/include/glib-2.0/gio/gioenums.h:28,
from /usr/include/glib-2.0/gio/giotypes.h:28,
from /usr/include/glib-2.0/gio/gio.h:26,
from /usr/include/gtk-3.0/gdk/gdkapplaunchcontext.h:28,
from /usr/include/gtk-3.0/gdk/gdk.h:32,
from /usr/include/gtk-3.0/gtk/gtk.h:30,
from source/winapi/buttons.c:2:
source/winapi/buttons.c:71:51: error: ‘GtkToolbarChild’ undeclared (first use in this function)
gtk_label_set_use_underline( GTK_LABEL( ( ( GtkToolbarChild * )
^
/usr/include/glib-2.0/gobject/gtype.h:1933:57: note: in definition of macro ‘_G_TYPE_CIC’
((ct*) g_type_check_instance_cast ((GTypeInstance*) ip, gt))
^
/usr/include/gtk-3.0/gtk/gtklabel.h:41:28: note: in expansion of macro ‘G_TYPE_CHECK_INSTANCE_CAST’
#define GTK_LABEL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_LABEL, GtkLabel))
^
source/winapi/buttons.c:71:36: note: in expansion of macro ‘GTK_LABEL’
gtk_label_set_use_underline( GTK_LABEL( ( ( GtkToolbarChild * )
^
source/winapi/buttons.c:71:69: error: expected expression before ‘)’ token
gtk_label_set_use_underline( GTK_LABEL( ( ( GtkToolbarChild * )
^
/usr/include/glib-2.0/gobject/gtype.h:1933:57: note: in definition of macro ‘_G_TYPE_CIC’
((ct*) g_type_check_instance_cast ((GTypeInstance*) ip, gt))
^
/usr/include/gtk-3.0/gtk/gtklabel.h:41:28: note: in expansion of macro ‘G_TYPE_CHECK_INSTANCE_CAST’
#define GTK_LABEL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_LABEL, GtkLabel))
^
source/winapi/buttons.c:71:36: note: in expansion of macro ‘GTK_LABEL’
gtk_label_set_use_underline( GTK_LABEL( ( ( GtkToolbarChild * )
^
source/winapi/buttons.c:72:45: error: ‘GtkToolbar’ has no member named ‘children’
( g_list_last( GTK_TOOLBAR( hToolBar )->children )->data ) )->label ),
^
/usr/include/glib-2.0/gobject/gtype.h:1933:57: note: in definition of macro ‘_G_TYPE_CIC’
((ct*) g_type_check_instance_cast ((GTypeInstance*) ip, gt))
^
/usr/include/gtk-3.0/gtk/gtklabel.h:41:28: note: in expansion of macro ‘G_TYPE_CHECK_INSTANCE_CAST’
#define GTK_LABEL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_LABEL, GtkLabel))
^
source/winapi/buttons.c:71:36: note: in expansion of macro ‘GTK_LABEL’
gtk_label_set_use_underline( GTK_LABEL( ( ( GtkToolbarChild * )
^
source/winapi/buttons.c:76:57: error: ‘GtkSignalFunc’ undeclared (first use in this function)
gtk_signal_connect( GTK_OBJECT( hWnd ), "clicked", ( GtkSignalFunc )
^
source/winapi/buttons.c:77:24: error: expected ‘)’ before ‘ClickEvent’
ClickEvent, NULL );
^
Makefile:97: recipe for target 'objc/buttons.o' failed
make: *** [objc/buttons.o] Error 1
_check_instance_cast ((GTypeInstance*) ip, gt))
^
/usr/include/gtk-3.0/gtk/gtklabel.h:41:28: note: in expansion of macro ‘G_TYPE_CHECK_INSTANCE_CAST’
#define GTK_LABEL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_LABEL, GtkLabel))
^
source/winapi/buttons.c:71:36: note: in expansion of macro ‘GTK_LABEL’
gtk_label_set_use_underline( GTK_LABEL( ( ( GtkToolbarChild * )
^
source/winapi/buttons.c:72:45: error: ‘GtkToolbar’ has no member named ‘children’
( g_list_last( GTK_TOOLBAR( hToolBar )->children )->data ) )->label ),
^
/usr/include/glib-2.0/gobject/gtype.h:1933:57: note: in definition of macro ‘_G_TYPE_CIC’
((ct*) g_type_check_instance_cast ((GTypeInstance*) ip, gt))
^
/usr/include/gtk-3.0/gtk/gtklabel.h:41:28: note: in expansion of macro ‘G_TYPE_CHECK_INSTANCE_CAST’
#define GTK_LABEL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_LABEL, GtkLabel))
^
source/winapi/buttons.c:71:36: note: in expansion of macro ‘GTK_LABEL’
gtk_label_set_use_underline( GTK_LABEL( ( ( GtkToolbarChild * )
^
source/winapi/buttons.c:76:57: error: ‘GtkSignalFunc’ undeclared (first use in this function)
gtk_signal_connect( GTK_OBJECT( hWnd ), "clicked", ( GtkSignalFunc )
^
source/winapi/buttons.c:77:24: error: expected ‘)’ before ‘ClickEvent’
ClickEvent, NULL );
^
Makefile:97: recipe for target 'objc/buttons.o' failed
make: *** [objc/buttons.o] Error 1
Si uso GTK2 FiveLinux se crea sin problemas pero hay metodos que no trabajan como por ejemplo el alineaniento de los SAYS.
Saludos,
George