Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#11 Abuse of DirectFB internals doesn't work any more

version 2.2.x
open
libggi (22)
5
2006-02-13
2003-10-16
Anonymous
No

In the build process in default/fbdev/directfb:

(DirectFB version is latest at the time, 0.9.19.)

1. I needed to add -I/usr/local/include/directfb
-I/usr/local/include/directfb-internal to CFLAGS to get all the
directfb headers being installed

2. in ggidirectfb.h, about line 132:

#ifdef _FBDEV_DIRECTFB_GLOBALS
# define extern
# define dfb_fbdev dfb_fbdev = NULL
# include <directfb-internal/core/fbdev/fbdev.h>
# undef dfb_fbdev
# undef extern
#else
...

dfb_fbdev is no longer exported in the
directfb-internal/core/fbdev.h header, so the above is insufficient
(errors in directfbglobal.c I think it was); adding the following to
the above block works but of course it's a nasty hack and not a
real fix:

extern FBDev *dfb_fbdev;

3. in directfbglobals.c:
void *dfb_gfxcard_memory_virtual( unsigned int offset )
is already defined in the current version of DirectFB; I just #ifdef
0'd out the function and it built OK, "make check" passed too.

HTH,

David Robins
dbr@davidrobins.net

Discussion

    • labels: --> libggi
    • assigned_to: nobody --> skids
     
    • milestone: --> version 2.2.x