Hi all.
i'm trying to make a simple program that paints an image with ++dfb
library. this is the code:
#include <iostream>
#include <unistd.h>
#include <stdlib.h>
#include <stdio.h>
#include <++dfb.h>
int main()
{
IDirectFB dfb;
IDirectFBImageProvider provider;
IDirectFBSurface surface;
DFBSurfaceDescription desc;
DirectFB::Init();
dfb = DirectFB::Create();
provider =
dfb.CreateImageProvider("/etc/usplash/background.jpg");
provider.GetSurfaceDescription( &desc );
surface = dfb.CreateSurface( desc );
provider.RenderTo( surface, NULL );
}
I've compiled this source with:
$ g++ -l++dfb -I /usr/include/++dfb -I /usr/include/directfb prova.cc
then i tried to run it :
$ sudo ./a.out
but i get some errors:
Nothing is showed, but the terminal is switched correctly, if i came
back to the shell i can read:
---------------------- DirectFB v0.9.22 ---------------------
(c) 2000-2002 convergence integrated media GmbH
(c) 2002-2004 convergence GmbH
-----------------------------------------------------------
(*) DirectFB/Core: Single Application Core. (2005-03-08 15:29)
(*) Direct/Memcpy: Using MMXEXT optimized memcpy()
(*) Direct/Thread: Running 'VT Switcher' (CRITICAL, 9421)...
(*) Direct/Thread: Running 'PS/2 Input' (INPUT, 9438)...
(!!!) *** UNIMPLEMENTED [fusion_reactor_set_lock] *** [reactor.c:802]
(*) DirectFB/Input: IMPS/2 Mouse 1.0 (Convergence GmbH)
(*) Direct/Thread: Running 'Linux Input' (INPUT, 9439)...
(*) DirectFB/Input: AT Translated Set 2 keyboard (1) 0.1 (convergence
integrated media GmbH)
(*) Direct/Thread: Running 'Linux Input' (INPUT, 9440)...
(*) DirectFB/Input: ImPS/2 Generic Wheel Mouse (2) 0.1 (convergence
integrated media GmbH)
(*) Direct/Thread: Running 'Linux Input' (INPUT, 9441)...
(*) DirectFB/Input: PC Speaker (3) 0.1 (convergence integrated media
GmbH)
(*) Direct/Thread: Running 'Keyboard Input' (INPUT, 9442)...
(*) DirectFB/Input: Keyboard 0.9 (convergence integrated media GmbH)
(*) DirectFB/Genefx: MMX detected and enabled
(*) DirectFB/Graphics: MMX Software Rasterizer 0.6 (convergence
integrated media GmbH)
(*) DirectFB/Core/WM: Default 0.2 (Convergence GmbH)
(*) Direct/Interface: Loaded 'JPEG' implementation of
'IDirectFBImageProvider'.
does anybody know how to solve this?
_______________________________________________
directfb-users mailing list
[email protected]
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users