Hi All, I am trying to run GTK+-DirectFB on TI board, Davinci. I have made DFB-example(including a horizontal line drawing and Image loading and displaying) to run successfully under Davinci. However, when I run two simple GTK+ programs, the screen always is blue.
DirectFB, GTK+ and GTK+ dependencies are cross-compiled following this instruction http://www.paguilar.org/blog/?p=6. DirectFB is configured with ./configure --host=$HOST --prefix=$PREFIX --disable-x11 --disable-fbdev --with-gfxdrivers=davinci --target=arm-linux In order to run DirectFB correctly, I replace gfxdrivers/davinci/davincifb.h with the include/video/davincifb.h, and my kernel is [EMAIL PROTECTED]:~# uname -a Linux emb 2.6.10_mvl401-davinci_evm #4 Mon Aug 11 18:19:52 CST 2008 armv5tejl GNU/Linux For the remote input support of GTK+, I made a symbolic link from /dev/pts/0 to /dev/tty0. The package version I cross-compile are glib-2.14.6.tar.bz2 gtk+-2.12.12.tar.bz2 atk-1.20.0.tar.bz2 freetype-2.3.7.tar.bz2 fontconfig-2.5.93.tar.gz libxml2-2.6.32.tar.gz cairo-1.4.14.tar.gz pango-1.18.4.tar.bz2 DirectFB-1.2.3.tar.gz pixman-0.10.0.tar.gz The first GTK-DFB program would draw a 640x480 rectangle on screen by cairo library when on_window_expose_event is triggered every 200ms by a timer. The source code can be found here http://rafb.net/p/V40qxA75.html. It output the log as following: ~~~~~~~~~~~~~~~~~~~~~~~~~~| DirectFB 1.2.3 |~~~~~~~~~~~~~~~~~~~~~~~~~~ (c) 2001-2008 The world wide DirectFB Open Source Community (c) 2000-2004 Convergence (integrated media) GmbH ---------------------------------------------------------------- (*) DirectFB/Core: Single Application Core. (2008-09-15 05:58) [ DEBUG ] (*) Direct/Thread: Started 'Keyboard Input' (-1) [INPUT OTHER/OTHER 0/0] <8388608>... (*) DirectFB/Input: Keyboard 0.9 (directfb.org) (*) Davinci/Driver: Mapped fb0 with length 1658880 at 0x84e00000 to 0x413ea000 (*) Davinci/Driver: Mapped fb1 with length 3760128 at 0x84800000 to 0x4157f000 (*) Davinci/Driver: Mapped fb2 with length 1658880 at 0x84400000 to 0x41915000 (*) Davinci/Driver: Mapped fb3 with length 3760128 at 0x84000000 to 0x41aaa000 (!) Direct/Util: opening '/dev/c64x' failed --> No such device or address (!!!) *** WARNING [running without DSP acceleration] *** [davinci_gfxdriver.c:238 in driver_init_driver()] (*) DirectFB/Graphics: Texas Instruments Davinci 0.4 (Telio AG) (*) DirectFB/Core/WM: Default 0.3 (directfb.org) (!) DirectFB/keyboard: KDGKBENT (table: 0, index: 0) failed! --> Invalid argument (!) DirectFB/keyboard: KDGKBENT (table: 1, index: 0) failed! --> Invalid argument (!) DirectFB/keyboard: KDGKBENT (table: 2, index: 0) failed! --> Invalid argument (!) DirectFB/keyboard: KDGKBENT (table: 3, index: 0) failed! --> Invalid argument (!) DirectFB/keyboard: KDGKBENT (table: 0, index: 1) failed! --> Invalid argument [snip] --> Invalid argument (!) DirectFB/keyboard: KDGKBENT (table: 3, index: 127) failed! --> Invalid argument (*) Direct/Thread: Started 'EventBufferFeed' (-1) [MESSAGING OTHER/OTHER 0/0] <8388608>... (!) [ 1328: 0.000] --> Caught signal 15 (sent by pid 1019, uid 0) <-- (!!!) *** WARNING [still objects in 'Window Pool'] *** [object.c:241 in fusion_object_pool_destroy()] (!!!) *** WARNING [still objects in 'Layer Region Pool'] *** [object.c:241 in fusion_object_pool_destroy()] (!!!) *** WARNING [still objects in 'Layer Context Pool'] *** [object.c:241 in fusion_object_pool_destroy()] (!!!) *** WARNING [still objects in 'Surface Pool'] *** [object.c:241 in fusion_object_pool_destroy()] (simple_gtk:1328): Gdk-DirectFB-WARNING **: gdk_window_set_keep_above() not implemented (simple_gtk:1328): Gdk-DirectFB-WARNING **: gdk_window_set_keep_below() not implemented. -------------------------------------------------------------------------------------------------------------------------------- I also enable debug info that can be found here http://rafb.net/p/WGg2Px68.html. Another GTK-DFB program is a window with a button, and the screen is blue after executing. The log it output is similar to the first program, so I don't list it here. Could anyone talk me what's going wrong? Or other info I should provide. Best Regards, Fan-Cheng Wu _______________________________________________ directfb-users mailing list directfb-users@directfb.org http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users