Quoting Eric Christopherson ([EMAIL PROTECTED]):
> On Mon, Jun 02, 2003 at 01:07:17PM +0200, Denis Oliver Kropp wrote:
> > Quoting Eric Christopherson ([EMAIL PROTECTED]):
> > > I've been having a lot of trouble lately with DirectFB (from CVS). I've
> > > already mentioned here my trouble with the PIC detection, but even when I do
> > > get DFB compiled I keep getting errors of the form "Interface implementation
> > > not available!". The only example programs I can seem to run are ones that
> > > don't use any PNGs, JPEGs, fonts, etc., such as df_fire. For example, with
> > > df_window, I get:
> > >
> > > df_window.c <114>:
> > > (#) DirectFBError [dfb->CreateFont( dfb, FONT, &desc, &font )]:
> > > Interface implementation not available!
> > >
> > > Does anyone else have this problem? Anyone know how to solve it?
> >
> > If you are linking statically you need additional LDFLAGS
> > generated by "directfb-config".
>
> I'm really trying to get it to link dynamicly, although I've tried static
> linking to try to rule out possible reasons for the failure. Neither one
> works.
Which compiler and libc are you using?
The DirectFB modules use a gcc specific attribute "constructor" for a
function that will register the module at load time (dlopen() if dynamic,
just before main() if static).
But if you got that far everything should be fine with the attribute,
because the fbdev core system registers itself while libdirectfb is loaded.
> I'm not sure how directfb-config works; I didn't see any docs for it.
Example for static linking:
LDFLAGS=`directfb-config --libs --input=keyboard,ps2mouse
--graphics=matrox --font=ft2 --imageprovider=jpeg,png,gif`
The goal behind all this is to decide at application linking time
which drivers are included. So you only need to build DirectFB
once and have a construction kit for different targets.
--
Best regards,
Denis Oliver Kropp
.------------------------------------------.
| DirectFB - Hardware accelerated graphics |
| http://www.directfb.org/ |
"------------------------------------------"
Convergence GmbH
--
Info: To unsubscribe send a mail to [EMAIL PROTECTED] with
"unsubscribe directfb-users" as subject.