porting XDirectFB to Xorg 7.1

Ville Syrjälä syrjala at sci.fi
Sat Sep 23 11:26:06 PDT 2006


On Tue, Sep 19, 2006 at 09:12:36AM +0800, ye janboe wrote:
> xdirectfb seems that it can not work well. I can just start xterm on it.
> gnome-terminal will crash the xdirectfb, and xdirectfb print some invalid
> address is accessed.
> Is there any one that had met this problem?

I got XDirectFB working with xorg-server-1.0.2 quite nicely.

I replaced the fbcmap #ifndef test with #if 0. It would be nice to fix 
this without having to patch fbcmap.c but I have to figure out if 
defining XFree86Server in xdirectfb-config.h would have unwanted side 
effects...

I also disabled most extension via xdirectfb-config.h. This fixed the 
apps geting a BadRequest errors. I don't know exactly which extension is 
the culprit. I had to re-enable LBX because some generic code would 
segfault with it disabled (that might be a bug in the generic code). 
I've attached the xdirectfb-config.h I used.

> 2006/9/13, Ville Syrjälä <syrjala at sci.fi>:
> >
> >On Tue, Sep 12, 2006 at 09:54:48PM +0200, Denis Oliver Kropp wrote:
> >> Ville Syrjälä schrieb:
> >> >>>I started (with Xorg 7.0) by getting XDirectFB to build against
> >> >>>xorg-server 1.0.2. Unfrtunately getting it to build wasn't enough
> >> >>>to make it work. Things go bad somewhere in the fb code when starting
> >> >>>gnome, twm+xterm almost worked but the colors were all wrong.
> >>
> >> Maybe you didn't bring over this one?
> >>
> >>
> >> diff -ur programs/Xserver/fb/fbcmap.c programs/Xserver/fb/fbcmap.c
> >> --- programs/Xserver/fb/fbcmap.c        2005-03-01 
> >21:14:18.000000000+0200
> >> +++ programs/Xserver/fb/fbcmap.c        2005-03-01 
> >21:29:33.000000000+0200
> >> @@ -37,7 +37,7 @@
> >>  #include "resource.h"
> >>  #include "fb.h"
> >>
> >> -#ifndef XFree86Server
> >> +#if !defined(XFree86Server) && !defined(DIRECTFBSERVER)
> >>  ColormapPtr FbInstalledMaps[MAXSCREENS];
> >>
> >>  int
> >
> >Yes, I missed that one. Actually I just assumed the ifdef was removed
> >because the file is not included in libfb.a. That fixed the colors and
> >gnome now starts. Thanks!
> >
> >It's still not perfect though. Some programs don't want to start and
> >others exit at various stages. gnome-terminal, for example, gets a
> >BadRequest on startup.
> >
> >--
> >Ville Syrjälä
> >syrjala at sci.fi
> >http://www.sci.fi/~syrjala/
> >

-- 
Ville Syrjälä
syrjala at sci.fi
http://www.sci.fi/~syrjala/
-------------- next part --------------
/*
 */

#ifndef XDIRECTFB_CONFIG_H
#define XDIRECTFB_CONFIG_H

#include <dix-config.h>
#include <xkb-config.h>

#undef BIGREQS
#undef COMPOSITE
#undef DAMAGE
#undef DBE
#undef DPSEXT
// DPMSExtension
#undef EVI
#undef FONTCACHE
#undef GLXEXT
//#undef LBX
#undef SCREENSAVER
// MITSHM
#undef MITMISC
#undef MULTIBUFFER
// RANDR
// RENDER
// SHAPE
#undef XCSECURITY
#undef XSYNC
#undef TOGCUP
#undef RES
#undef XAPPGROUP
#undef XCMISC
#undef XEVIE
#undef XF86BIGFONT
// XFreeXDGA
#undef XF86DRI
#undef XF86MISC
#undef XF86VIDMODE
#undef XFIXES
// XKB
#undef PANORAMIX
#undef XINPUT
#undef XIDLE
// XV
#undef XRECORD
#undef XPRINT
#undef XTEST
#undef XTESTEXT1
#undef XTRAP
#undef DMXEXT

#endif /* XDIRECTFB_CONFIG_H */


More information about the xorg mailing list