Hello!

> I see on the DirectFB site that it wants gtk of 2.0.9. I have
> the distro supplied 2.2. 

I succeded in patching gtk+-2.4.9 (as it comes from www.gtk.org) with
the cvs version of gdk-directfb. But I noticed graphical problems:

The biggest mistake I noticed was the following:
When opening a menu it works well. But as soon as I reopen it its
contents aren't redrawn (so you see only a blank area)

And there are some other, minor errors. E.g. there are some miscolored
pixel around the line of a frame.

> I couldn't find anything about whether I'd have
> to re-compile gtk to be used. 

You need to patch the source code of gtk and then install it into a
different prefix ( not /usr or /usr/local, whatever your distribution
uses for gtk-x11), e.g. a directory in your home directory. You find
more information in the README file of gdk-directfb.

Basically you have to apply the gdk-directfb patch (--> README) and then
run "autoconf" and 
"./configure --prefix=/any/path/you/like --with-gdktarget=directfb"

then "make" and "make install" (as root, if you don't install it into
your home directory)

Test it with the gtk-demo you find in the source package of gtk.

And then you've to rebuild the gtk-application you want to use directfb
from source:

e.g.:
export PATH=/the/prefix/you/used/above:$PATH
export PKG_CONFIG_PATH=/the/prefix/you/used/above/lib/pkgconfig

test it with:
pkg-config gtk+-2.0 --libs 

Should show something like:
-Wl,--export-dynamic -L/home/leidola/testroot//lib -lgtk-directfb-2.0
-lgdk-directfb-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -ldirectfb -lz
-lpangoft2-1.0 -lfusion -ldirect -lpthread -lpango-1.0 -lgobject-2.0
-lgmodule-2.0 -ldl -lglib-2.0

If you find something with x11 in it, then something went wrong...

Then do a
./configure --prefix=/the/prefix/you/used/above

to configure your desired application.

This worked for me.
     1. 
But beware! Some applications/libraries use X11 calls directly (e.g.
wxGTK (at the moment, but this is going to change)), so they depend on
X11 and won't work with directfb without changes.

Good luck!

Ciao,

Olaf





Reply via email to