[Splashy-devel] Fwd: libdirectfb ft2.a

Luis M lemsx1 at gmail.com
Sun Feb 19 17:47:05 UTC 2006


Hello Guillem,

I've attached an old version of an email I sent you previously. Could
you please help us?
We need to be able to compile Splashy on debian (statically) with font
support (tt2 or whatever).

Right now when we compile it, it complaints about missing
implementation for the font class.

I've asked the same question in directfb-users and this is how they
say to do it. As you will read, the .o files are important. And they
are not included in the directfb package...

Luis M wrote:
> Hello,
>
> (This is my first shot at this list, so, please be patience)
>
> I'm the project leader of Splashy, a user-space boot splashing system
> for Linux (and other POSIX systems). It has taken us a big deal of
> time to get Splashy off the ground and we are about to reach a major
> milestone.
>
> The issue we are having right now is that for some reason we can't get
> Splashy to compile statically with font support. We are using
> libdirectfb 0.9.22. The package compiles well and runs well, but the
> minute that I try to load a font to display text, i get a "interface
> not implemented" error.

You can't simply link statically against DirectFB, because you'll miss
all modules. I'm wondering why you get to the font error though. It
should fail earlier when trying to load the system module.

You need to link the application(s) against all required modules,
to be more precise against the .o versions of the static module libs.

To ease finding the correct linker commands, try directfb-config:

dok at shizo[~] directfb-config --libs --graphics=matrox,r200,r100,nvidia
--font=ft2

-static
/usr/local/lib/directfb-0.9.25/systems/libdirectfb_fbdev.o
/usr/local/lib/directfb-0.9.25/wm/libdirectfbwm_default.o
/usr/local/lib/directfb-0.9.25/interfaces/IDirectFBFont/libidirectfbfont_ft2.o
-lfreetype
/usr/local/lib/directfb-0.9.25/gfxdrivers/libdirectfb_matrox.o
/usr/local/lib/directfb-0.9.25/gfxdrivers/libdirectfb_r200.o
/usr/local/lib/directfb-0.9.25/gfxdrivers/libdirectfb_r100.o
/usr/local/lib/directfb-0.9.25/gfxdrivers/libdirectfb_nvidia.o
-L/usr/local/lib -ldirectfb -lfusion -ldirect -lpthread -lz


---------- Forwarded message ----------
From: Luis M <lemsx1 at gmail.com>
Date: Dec 26, 2005 12:21 PM
Subject: libdirectfb ft2.a
To: guillem at debian.org
Cc: splashy-devel at lists.alioth.debian.org


Hello Guillem,

 Some time ago we filed a bug against libdirectfb. This was in regards
to having .a's added so that we can compile Splashy statically. [1]

 Over the last few months I have noted a number of
problems/inconsistencies with the debian package for directfb:

 1. directfb-config doesn't work
 2. the .a and other devel libs are included with libdirectfb-$VER and
not in libdirectfb-dev as they should be
 3. some .a's are missing, the most important of which is
/usr/lib/directfb-0.9.22/interfaces/IDirectFBFont/libidirectfbfont_ft2.a

 I have not filed any bugs against the package waiting for the right
time (until we fully understand everything that was needed). I have
modified directfb-config so that it allows static compilations to work
on a debian system. You can get the latest version of this script from
our project svn repo on Alioth. [2]
 That script needs more work as it needs to find the correct path for
the library files (when doing static compilations). For now they are
simply hard coded in the script. This should be easy to fix though.
After that, it could be submitted upstream.

 I have tried unsucessfully to compile the directfb sources to include
the ft2.a library. Could you help us with that?

 I'll file bugs for other issues with the libdirectfb package if you
think the bug reports will help you better in keeping track of the
issues mentioned above.


 regards,


 [1] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=304983
[2] http://svn.debian.org/wsvn/splashy/trunk/directfb-config?op=file&rev=0&sc=0

 --
----)(-----
Luis M
System Administrator
Kiskeyix.org

"We think basically you watch television to turn your brain off, and
you work on your computer when you want to turn your brain on" --
Steve Jobs in an interview for MacWorld Magazine 2004-Feb

No .doc: http://www.fsf.org/philosophy/no-word-attachments.es.html

--
----)(-----
Luis Mondesi
System Administrator
Kiskeyix.org

"We think basically you watch television to turn your brain off, and
you work on your computer when you want to turn your brain on" --
Steve Jobs in an interview for MacWorld Magazine 2004-Feb

No .doc: http://www.gnu.org/philosophy/no-word-attachments.es.html


More information about the Splashy-devel mailing list