XDirectFB:About

How you compile it on Debian Etch:

First, I am very newbie of DirectFB ( and Ich bin Japaner), so this would contain a lot of funny stuff in both language and technology. So far so good? then, lets go.

1. Get sources.

DirectFB 1.0.0 http://www.directfb.org/downloads/Core/DirectFB-1.0.0.tar.gz XDirectFB Snapshot http://www.directfb.org/index.php?path=Development%2FSource+Code%2FSnapshots

Xorg Server 1.1.1 http://xorg.freedesktop.org/releases/individual/xserver/xorg-server-1.1.1.tar.bz2

2. Install debs.

gcc (4.1 or 3.x)

make

libc6-dev

libpng-dev

libjpeg-dev

--- aboves are for DirectFB itself ---

libdrm-dev

xorg-dev ( This is important. This has most necessary headers for XDirectFB. )

Maybe xutils-dev would be also required.

autoconf

automake

autoconf-archive

libtools (maybe libtool, not with "s"?)

3. Compile fusion driver "fusion" is kernel mode shm/mutex driver specialized for directfb. Not all directfb apps need it, but XDirectFB needs.

The steps are:

3-1. Recompile the kernel. See other docs about this, if you dont know how. actually fusion.ko does not need kernel rebuilded, but fusion.ko needs some headers which kernel rebuilding generates automatically, and this is the reason you should do it. This is very usual for most .ko compiles.

If you dont like to rebuild whole, start rebuilding for 10 or 20 secs, and then stop it. Probably all necessary hearders will be generated. And dont forget to assign a right place of the headers to fusion.ko Makefile.

3-2. Get the source. http://www.directfb.org/downloads/Core/linux-fusion-3.2.3.tar.gz

3-3. Compile fusion.ko. Just do make, and there comes fusion.ko. If errors, check you really have auto generated headers and Makefile really points to it.

3-4. mkdir /dev/fusion; mknod /dev/fusion/0... See a doc included in the tgz file.

3-5. insmod fusion.ko. Check /proc/fusion appeared. The dir seems to be empty, but if it appears, it is Okay.

4. Compile DirectFB

Just do ./configure --enable-multi; make; make install.

Dont forget to add --enable-multi.

Note: You have to do this prior to compile XDirectFB, because it needs headers of DirectFB. Maybe you sould remove (apt-get remove ) debian packages of directfb, if you installed.

5. Compile XDirectFB

cd xorg-server-1.1.1

patch -p1  SRCS / @APP_MAN_SUFFIX@ -> man

and add

AM_CONDITIONAL([BUILD_PDFDOC], [ test x = y ])

AM_CONDITIONAL([BUILD_LINUXDOC], [ test x = y ])

to configure.am