PLS HELP-URGENT...Error in running GTK application on MIPS board using GTK+ over DirectFB



Hi,

   I have cross compiled GTK+2.10.12 and DirectFB 1.0.0 for MIPS  BCM7401 with all the dependancy as below:

tiff 3.7.4
libpng 1.2.18
libjpeg-6b
glib 2.12.13
atk 1.9.1
freetype 2.3.4
fontconfig 2.4.2
cairo 1.2.6
pango 1.16.4

and used the configuration parameter as given at http://www.directfb.org/wiki/index.php/Projects:GTK_on_DirectFB_for_Embedded_Systems.

I executed a simple GTK program(code snippet below) which loads an image

#include <gtk/gtk.h>

int main( int   argc, char *argv[] )
{
        GtkWidget *window;
        GtkWidget *pMainWidget;
        GdkPixbuf *image;
        gboolean ret = 0;
        gtk_init (&argc, &argv);
       
        window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
       
        gtk_container_set_border_width (GTK_CONTAINER (window), 10);
       
        image  = gdk_pixbuf_new_from_file ("test.gif", NULL);
    if (!image)
                return FALSE;
    pMainWidget = gtk_image_new_from_pixbuf(image);
       
        gtk_widget_show (pMainWidget);
       
        gtk_container_add (GTK_CONTAINER (window), pMainWidget);
   
        gtk_widget_show (window);
       
        gtk_main ();

        return 0;
}


Initially, execution failed at

ret=directfb->GetInputDevice(directfb, DIDID_KEYBOARD, &keyboard) ;

in gtk+-2.10.14/gdk/directfb/gdkdisplay- directfb.c  

I commented out some line related to keyboard because WE ARE NOT USING ANY INPUT DEVICE.

The commented lines in file gdkdisplay-directfb.c are below:

//ret=directfb->GetInputDevice(directfb, DIDID_KEYBOARD, &keyboard)

//_gdk_display->keyboard=keyboard;

//_gdk_directfb_keyboard_init ();

//_gdk_input_init ();


I again cross compiled and executed the same GTK example mentioned above. 
This time the code executed and got stuck in a function.

I had put some debug messages in GTK library and below is the log of debug messages



# pixmap_mips
[gtkmain.c:934]
[gtkmain.c:699]
[gtkmain.c:702]
[gtkmain.c:721]
[gtkmain.c:898]
[ gdk.c:273]
[gdk.c:277]

     =======================|  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-12-07 07:12) [ DEBUG ]
(*) before  direct_modules_explore_directory
(*) after  direct_modules_explore_directory
(*) inside  direct_list_foreach
(*) inside  direct_list_foreach2
(*) inside  direct_list_foreach
(*) inside  direct_list_foreach2
(*) Going to ABHISHEK initialize 'clipboard' core...
(*) Going to ABHISHEK initialize 'colorhash' core...
(*) Going to ABHISHEK initialize 'system' core...
(*) Going to ABHISHEK initialize 'input' core...
(*) Going to ABHISHEK initialize 'gfxcard' core...
driver_init_driver1
(*)
dfb_fbdev->shared-> fix.mmio_start = -1342177280 length in system_map_mmio  = 1900000, length passes as argument = 1900000
(*)
dfb_fbdev->shared->page_mask = 4095 addr = 731037696(*)
dfb_fbdev->shared->fix.mmio_start = -1342177280 length in system_map_mmio  = 1900000, length passes as argument = 1900000
(*)
dfb_fbdev->shared->page_mask = 4095 addr = 731938816bdrv->mmio_base= 2b92c000 bdrv->mmio_base1 = 2ba08000
(*) DirectFB/Graphics: Broadcom Software Rasterizer 0.0 ( www.samsung.com)
(*) Going to ABHISHEK initialize 'screens' core...

Inside Screen InitScreen COMPLETED
(*) Going to ABHISHEK initialize 'layers' core...
(*) Going to ABHISHEK initialize 'wm' core...
(*) DirectFB/Core/WM: Default 0.3 (directfb.org)
[gdkdisplay-directfb:99]
[gdkdisplay-directfb:107]
(!) DirectFB/FBDev: Could not set gamma ramp    --> Invalid argument
(!) DirectFB/FBDev: Panning display failed!
    --> Invalid argument
[gdkdisplay-directfb:116]
[gdkdisplay-directfb:125]
[gdkdisplay-directfb:127]
[gdkdisplay-directfb:129]
[gdkdisplay-directfb:131]
[gdkdisplay-directfb:133]
[gdkdisplay-directfb:135]
[gdkdisplay-directfb:138]
[gdkdisplay-directfb:140]
[gdkdisplay-directfb:142]
[gdkdisplay-directfb:144]
[gdkdisplay-directfb:146]
(*) Direct/Thread: Running 'EventBufferFeed' (MESSAGING, 218)...
[gdkdisplay-directfb:148]
[gdkdisplay-directfb:150]
[gdkdisplay-directfb:153]
[gdk.c:279]
[gdk.c:288]
[gdk.c:292]
[gtkmain.c:943]
[sar]in pixmap.c

(pixmap_mips:216): Gdk-DirectFB-WARNING **: gdk_window_set_keep_above() not implemented.


(pixmap_mips:216): Gdk-DirectFB-WARNING **: gdk_window_set_keep_below() not implemented.

[gtkwidget.c:2217][gtkwidget.c:2219][gtkwidget.c:2222][gtkwidget.c:2225][gtkwidget.c:2229][gtkwidget.c:2232][gtkwidget.c :2234][gtkwidget.c:2236][gtkwidget.]
[sar]g_main_loop_new returns loop=4339560[gtkmain.c:1146]
[gtkmain.c:1147]
[gtkmain.c:1149]
[gtkmain.c:1164]
[sar]g_main_loop_is_running[gtkmain.c:1167]
[sar][gtkmain.c:before g_main_loop_run (loop = 5d);4339560]
(!) [  216:    0.000] --> Caught signal 2 (sent by the kernel) <--


It is not able to exit from g_main_loop_run (loop) function which is called from gtk_main() function.

I am stuck here and not able to proceed further.

somebody plzzzzz.... help me on this!!!

Thanks
Sundeep 
 

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]