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,
offcourse making lot of changes in configure script and makefiles, 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.
now if i use gtk_button_new_with_label() in creatign 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.
[EMAIL PROTECTED] 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 brogram 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()
[EMAIL PROTECTED] 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?
I tested the DirectFb demo examples like df_andi and df_dok and it seems to
be running fine i think.
e.g O/P of df_dok
[EMAIL PROTECTED] bin]$ ./df_dok
=======================| 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, 1118)...
(*) Direct/Thread: Running 'Keyboard Input' (INPUT, 1119)...
(*) 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
(*) Direct/Interface: Loaded 'PNG' implementation of
'IDirectFBImageProvider'.
(*) Direct/Interface: Loaded 'FT2' implementation of 'IDirectFBFont'.
(*) Direct/Interface: Using 'GIF' implementation of
'IDirectFBImageProvider'.
Benchmarking with 256x256 in 8bit mode... (8bit)
Anti-aliased Text 3.029 secs ( 101.023KChars/sec)
Anti-aliased Text (blend) 3.786 secs ( 2.852KChars/sec)
Fill Rectangle 3.023 secs ( 179.936MPixel/sec)
Fill Rectangle (blend) 5.023 secs ( 1.304MPixel/sec)
Fill Rectangles [10] 3.121 secs ( 209.983MPixel/sec)
Fill Rectangles [10] (blend) 48.734 secs ( 1.344MPixel/sec)
Fill Triangles 3.034 secs ( 83.162MPixel/sec)
Fill Triangles (blend) 5.274 secs ( 1.242MPixel/sec)
Draw Rectangle 3.009 secs ( 4.021KRects/sec)
Draw Rectangle (blend) 3.046 secs ( 0.328KRects/sec)
Draw Lines [10] 3.028 secs ( 16.512KLines/sec)
Draw Lines [10] (blend) 3.202 secs ( 1.561KLines/sec)
Fill Spans 3.042 secs ( 120.644MPixel/sec)
Fill Spans (blend) 5.052 secs ( 1.297MPixel/sec)
Blit 3.070 secs ( 40.559MPixel/sec)
Blit colorkeyed 3.128 secs ( 25.141MPixel/sec)
Blit destination colorkeyed 3.000 secs ( 1915.835MPixel/sec)
Blit with format conversion 41.682 secs ( 0.157MPixel/sec)
Blit with colorizing 5.479 secs ( 1.196MPixel/sec)
Blit from 32bit (blend) 120.930 secs ( 0.054MPixel/sec)
Stretch Blit 3.007 secs ( 31.194MPixel/sec)
Stretch Blit colorkeyed 3.206 secs ( 25.359MPixel/sec
and the program is still running when i took this snapshot
Thanks
Jasdeep
_______________________________________________
directfb-dev mailing list
[email protected]
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev