EEVblog Electronics Community Forum

Products => Computers => Programming => Topic started by: DiTBho on February 16, 2022, 09:05:44 pm

Title: DirectFP + XDirectFP: anyone?
Post by: DiTBho on February 16, 2022, 09:05:44 pm
DirectFB is a Direct Frame Buffer implementation of a set of graphics APIs implemented on top of the Linux Frame Buffer abstraction layer.

Goals of DirectFB:
+Small memory Footprint
+Maximize utilities of hardware 2D acceleration
+Support for simple multiple alpha blending modes
+No kernel modifications
+No library dependencies, except for libc

DirectFB runs on top of the Frame Buffer Device (/dev/fb0), and utilize hardware 2D acceleration (other features are experimental) with their (1) chipset drivers.

XDirectFB is a kind super-simple "X Server" for DirectFB



(1) MGA is supported, 40% documented, but all the 2D stuff is in perfect working order.
Title: Re: DirectFP + XDirectFP: anyone?
Post by: DiTBho on February 16, 2022, 09:07:46 pm
I have an embedded board with a slow-CPU (166Mhz), and I am thinking of replacing Xorg-server with something lighter.

This, combined with a light Windows Manager, like DWM, or something i2.
Title: Re: DirectFP + XDirectFP: anyone?
Post by: DiTBho on February 18, 2022, 08:22:14 pm
DirectFB does not compile with GCC- v11, but it compiles with GCC v6.5.0

XDirectFB is a rootless X Server using DirectFB windows for X11 toplevel windows.

I am a bit confused about this line in the instructions file of XDirectFB

Quote
- Check out module "xc" from XFree CVS (www.xfree.org (http://www.xfree.org))

What? Which version?  :o :o :o
Title: Re: DirectFP + XDirectFP: anyone?
Post by: DiTBho on February 18, 2022, 09:12:24 pm
I brutally tried all the versions in the archive (http://ftp.xfree86.org/pub/pub/XFree86), with an automatic { download | extract | patch } script

The only one that can be successfully patched is this one:

Code: [Select]
trying xc-v4.3.0 ...

list_preparing, getting /index.html ... success
preparing /list ... done
/pub/pub/XFree86/4.3.0/ is ignored
downloading [/FILES] ... success
downloading [/README] ... success
downloading [/SUMS.md5] ... success
downloading [/SUMS.md5sum] ... success
downloading [/X430src_1.tgz] ... success
downloading [/X430src_1_tgz.asc] ... success
downloading [/X430src_2.tgz] ... success
downloading [/X430src_2_tgz.asc] ... success
downloading [/X430src_3.tgz] ... success
downloading [/X430src_3_tgz.asc] ... success
downloading [/X430src_4.tgz] ... success
downloading [/X430src_4_tgz.asc] ... success
downloading [/X430src_5.tgz] ... success
downloading [/X430src_5_tgz.asc] ... success
downloading [/X430src_6.tgz] ... success
downloading [/X430src_6_tgz.asc] ... success
downloading [/X430src_7.tgz] ... success
downloading [/X430src_7_tgz.asc] ... success
downloading [/doctools_1_3_1.tgz] ... success
downloading [/doctools_1_3_1_tgz.asc] ... success
downloading [/utils_1_1_0.tgz] ... success
downloading [/utils_1_1_0_tgz.asc] ... success

unpacking ....
X430src-1.tgz  ... done
X430src-2.tgz  ... done
X430src-3.tgz  ... done
X430src-4.tgz  ... done
X430src-5.tgz  ... done
X430src-6.tgz  ... done
X430src-7.tgz  ... done

entering xc folder, patching with XDirectFB/xc-directfb.diff ....

patching file config/cf/linux.cf
Hunk #1 succeeded at 975 (offset 17 lines).
patching file programs/Xserver/Imakefile
Hunk #1 succeeded at 520 (offset 32 lines).
Hunk #2 succeeded at 1375 (offset 17 lines).
patching file programs/Xserver/Xserver.man
Hunk #1 succeeded at 714 (offset 1 line).
patching file programs/Xserver/fb/fbcmap.c


So, XDriectFP is a ~19 years old software, ~2003  :o :o :o