This should work... you have the latest version. My major hack may be
getting you arrghhh.
The big hack is this line in gdkdrawable-directfb.c
impl->cairo_surface = cairo_directfb_surface_create(dfb ,impl->surface);
cairo_surface_set_user_data (impl->cairo_surface,
&gdk_directfb_cairo_key,drawable,
gdk_directfb_cairo_surface_destroy);
//XXX!!! MAJOR HACK so cairo coexists with direct drawing
impl->surface->Unlock( impl->surface );
Try some of the stuff I suggested below to make sure its not just a
library issue esp freetype version. Next try to comment out that line.
//XXX!!! MAJOR HACK so cairo coexists with direct drawing
// impl->surface->Unlock( impl->surface );
And you should work but I think you will only see black.
Lets make sure your not just crashing on the libraries first. If this
is really the problem then you may have to wait till I've got the
cairo backend redone to do the locking correctly I'm working on that
now. Also you can try using and unaccelerated driver which may work..
Sorry it took me a bit to get the code clean enough to really
understand what was wrong I reduced it to the one mondo hack at least
:)
See below also....
Mike
On 7/25/05, Davide Viti <[EMAIL PROTECTED]> wrote:
> Hi,
> I just finished packaging a new set of libs based on the following:
>
> ***********************
> *** dfb_2.7.2-0.tgz ***
> ***********************
>
> DirectFB - cvs snapshot 20050725
> atk - cvs snapshot 20050608
> cairodfb - cvs snapshot 20050725
> gdk-directfb - cvs snapshot 20050725
> glib 2.7.2
> gtk+ 2.7.2
> libic - cvs snapshot 20050608
> libpixman - cvs snapshot 20050608
> libpixregion - cvs snapshot 20050608
> pango 1.9.0
> slim - cvs snapshot 20050608
>
> I then tried to run the debian-intstaller; since during my tests
> I use qemu and I haven't found a way to copy'n'paste the output,
> I uploaded a PNG image with the output:
>
> http://www.webalice.it/zinosat/dfb_2.7.2-0_err.png
>
> As you can see the number of errors dropped drastically since the
> tests I run at the beginning of July.
>
> I'd also like to know if you think I should move to more recent version
> of the outdated libs (atk, libic, libpixman, libpixregion, slim)
>
> Thanx in advance,
>
> Davide
>
Hmm you crashed pretty early I just checked in a new update on monday.
Can you test on a host system with SDL.
export DFBARGS=system=sdl
That will see if its a library problem.
Also on your build system try running a simple DFB test app to see if
the driver etc is installing right.
I'm running the latest versions of the various support libs atk libpng etc etc.
Here is a list of the ones I'm linking agianst.
libatk-1.0.so libgdk-x11-2.0.so libpangocairo-1.0.so
libcairo.so libglib-2.0.so libpangoft2-1.0.so
libdirectfb.so libgmodule-2.0.so libpangox-1.0.so
libdirect.so libgobject-2.0.so libpangoxft-1.0.so
libexpat.so libgthread-2.0.so libpixman.so
libfontconfig.so libgtk-directfb-2.0.so libpng12.so
libfreetype.so libgtk-x11-2.0.so libpng.so
libfusion.so libjpeg.so libssp.so
libgcc_s.so libmudflap.so libz.so
libgdk-directfb-2.0.so libmudflapth.so profile_rt.so
libgdk_pixbuf-2.0.so libobjc.so
libgdk_pixbuf_xlib-2.0.so libpango-1.0.so
Plus some other stuff I'm hacking a bit on gcc right now.
I do a siteconfig and a env file here is the env file.
unset PKG_CONFIG_PATH
unset GTK_PATH
unset CONFIG_SITE
unset LD_LIBRARY_PATH
export BUILD_DIR=$PWD
mkdir -p $BUILD_DIR/lib/pkgconfig
mkdir -p $BUILD_DIR/var
export PKG_CONFIG_TOP_BUILD_DIR=$(dirname $BUILD_DIR)
export PKG_CONFIG_PATH=$BUILD_DIR/lib/pkgconfig
export CONFIG_SITE=$BUILD_DIR/config.site
export LD_LIBRARY_PATH=$BUILD_DIR/lib
export PATH=$PWD:$PWD/bin:$PATH
export DFBARGS=system=sdl
export CVS_RSH=ssh
And here is the contents of config.site
# config.site for configure
#
# Change some defaults.
test "$prefix" = NONE && prefix=$BUILD_DIR
# Give Autoconf 2.x generated configure scripts a shared default
# cache file for feature test results, architecture-specific.
if test "$cache_file" = /dev/null; then
cache_file="$prefix/var/config.cache"
touch $cache_file
# A cache file is only valid for one C compiler.
CC=gcc
fi
Hope this helps.
> _______________________________________________
> directfb-dev mailing list
> [email protected]
> http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev
>
_______________________________________________
directfb-dev mailing list
[email protected]
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev