HI, I am trying to run gtk-directfb applications on xscale pxa255 based arm board.(compulabs CMX255 SBC). Following is the libraries which i have successfully cross compiled and installed following deirectFBwiki's GTK on dierctFB for embedded systems in the order given below :
glib-2.12.0 atk-1.9.1 freetype-2.3.5 libxml2-2.6.23 fontconfig-2.3.93 zlib-1.2.3 libpng-1.2.10 DirectFB--1.0.0 cairo-1.2.6 pango-1.16.0 Gtk+ - 2.10.13 My gtk+ configure options are : ./configure --host=arm-linux --build=i386-linux --prefix=/usr/gtkdfb --with-gdktarget=directfb --without-libtiff --without-libjpeg --disable-glibtest --disable-modules --disable-largefile after that i cross compiled a helloworld program given in gtk/examples/helloworld source tree which is given below . #include <gtk/gtk.h> static void hello( GtkWidget *widget, gpointer data ) { g_print ("Hello World\n"); } static gboolean delete_event( GtkWidget *widget, GdkEvent *event, gpointer data ) { g_print ("delete event occurred\n"); return TRUE; } /* Another callback */ static void destroy( GtkWidget *widget, gpointer data ) { gtk_main_quit (); } int main( int argc, char *argv[] ) { GtkWidget *window; GtkWidget *button; gtk_init (&argc, &argv); window = gtk_window_new (GTK_WINDOW_TOPLEVEL); g_signal_connect (G_OBJECT (window), "delete_event", G_CALLBACK (delete_event), NULL); g_signal_connect (G_OBJECT (window), "destroy", G_CALLBACK (destroy), NULL); gtk_container_set_border_width (GTK_CONTAINER (window), 10); button = gtk_button_new_with_label ("Hello World"); g_signal_connect (G_OBJECT (button), "clicked", G_CALLBACK (hello), NULL); g_signal_connect_swapped (G_OBJECT (button), "clicked", G_CALLBACK (gtk_widget_destroy), G_OBJECT (window)); gtk_container_add (GTK_CONTAINER (window), button); gtk_widget_show (button); gtk_widget_show (window); gtk_main (); return 0; } now if i use gtk_button_new_with_label() in creating a button my program crashes with just a blue screen blink for a second. i get the following error, i am pasting the error msg here. [root at ARMCore root]$ ./helloworld =======================| DirectFB 1.0.0 |======================= (c) 2001-2007 The DirectFB Organization (directfb.org) (c) 2000-2004 Convergence (integrated media) GmbH ------------------------------------------------------------ (*) DirectFB/Core: Single Application Core. (2007-09-27 14:35) (*) Direct/Thread: Running 'VT Switcher' (CRITICAL, 1061)... (*) Direct/Thread: Running 'Keyboard Input' (INPUT, 1062)... (*) DirectFB/Input: Keyboard 0.9 (directfb.org) (*) DirectFB/Graphics: Generic Software Rasterizer 0.6 (directfb.org) (*) DirectFB/Core/WM: Default 0.3 (directfb.org) (!) DirectFB/FBDev: Panning display failed! --> Invalid argument (helloworld:1049): Gdk-CRITICAL **: gdk_drawable_set_colormap: assertion `cmap = = NULL || gdk_drawable_get_depth (drawable) == cmap->visual->depth' failed (*) Direct/Thread: Running 'EventBufferFeed' (MESSAGING, 1063)... (!) [ 1049: 0.000] --> Caught signal 11 (at 0xc4c09fc4, invalid address) <-- Aborted Now if i use gtk_button_new() for creating a button the program doesnot crashes but still i get Gdk-CRITICAL **: gdk_drawable_set_colormap: assertion `cmap = = NULL || gdk_drawable_get_depth (drawable) == cmap->visual->depth' failed This is the output when i run the same helloworld application using gtk_button_new() [root at ARMCore root]$ ./helloworld1 =======================| DirectFB 1.0.0 |======================= (c) 2001-2007 The DirectFB Organization (directfb.org) (c) 2000-2004 Convergence (integrated media) GmbH ------------------------------------------------------------ (*) DirectFB/Core: Single Application Core. (2007-09-27 14:35) (*) Direct/Thread: Running 'VT Switcher' (CRITICAL, 1092)... (*) Direct/Thread: Running 'Keyboard Input' (INPUT, 1093)... (*) DirectFB/Input: Keyboard 0.9 (directfb.org) (*) DirectFB/Graphics: Generic Software Rasterizer 0.6 (directfb.org) (*) DirectFB/Core/WM: Default 0.3 (directfb.org) (!) DirectFB/FBDev: Panning display failed! --> Invalid argument (helloworld1:1080): Gdk-CRITICAL **: gdk_drawable_set_colormap: assertion `cmap == NULL || gdk_drawable_get_depth (drawable) == cmap->visual->depth' failed (*) Direct/Thread: Running 'EventBufferFeed' (MESSAGING, 1094)... (helloworld1:1080): Gdk-DirectFB-WARNING **: gdk_window_set_keep_above() not imp lemented. (helloworld1:1080): Gdk-DirectFB-WARNING **: gdk_window_set_keep_below() not imp lemented. I get a blue screen with a window and an empty button. Now there are two things: 1) whatever is the case i get Gdk-CRITICAL **: gdk_drawable_set_colormap: assertion `cmap == NULL || gdk_drawable_get_depth (drawable) == cmap->visual->depth' failed. 2) I cannot create a button with a label. Is there any problem in the way i am building my libraries? Thanks Jasdeep -- View this message in context: http://www.nabble.com/gdk_drawable_set_colormap%28%29-assertion-cmap-failed-in-gtk-directfb-applications-tf4586162.html#a13091185 Sent from the DirectFB Users mailing list archive at Nabble.com. _______________________________________________ directfb-users mailing list directfb-users@directfb.org http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users