Hi Steven,
this happens because you have not linked a system module.

Default, DirectFB will traverse directories to find implementations for 
system modules, input modules, and graphics modules. It will try these 
in order until it has found a proper one. In your case, you do not have 
these modules installed correctly.

There are a number of solutions.
(1) try "make install".
(2) if this does not work, find the definition of DATADIR in a Makefile. 
This is where DirectFB looks for the modules. You need to put your 
system modules in DATADIR/systems, gfxdrivers in DATADIR/gfxdrivers etc. 
For example, if you use X11, you need to copy the following libraries: 
libdirectfb_x11.la, libdirectfb_x11.so, libdirectfb_linux_input.la and  
libdirectfb_linux_input.so.
(3) if this does not work, you can link your application with 1 system 
module, 1 graphics module, and the input modules you need. For example: 
if you use X11, you need to add the following 2 libraries when linking: 
libdirectfb_x11.a and libdirectfb_x11input.a.

hth
Niels

Steven Liu wrote:
> Hi all!
>
>              I'm a new user of DirectFB!I want to compile the
> DFB(DirectFB) with static,but there have some problem!
>
> I'm using the command:
>
> #./configure --prefix=/usr/miniDirectFB --enable-mmx=no
> --enable-sse=no --enable-sdl=no --enable-gif=yes --enable-jpeg=yes
> --with-gfxdrivers='none' --with-inputdrivers='none' --without-tools
> --disable-fast-install --disable-libtool-lock --enable-png=yes
> --enable-video4linux=no --enable-debug  --enable-freetype=yes
> --enable-static=yes --enable-shared=no
>
> #make;make install
>
> I'm sure there have no error when it compiling!
>
> but when i'm start the example!it can't work!
>
>
>
>
>
>
>
> [r...@localhost src]# ls
> df_andi          df_databuffer.o  df_fire.c   df_joystick
> df_palette     df_stress.o          df_window.c  ve.c
> df_andi.c        df_dioload       df_fire.o   df_joystick.c
> df_palette.c   df_texture           df_window.o  ve.h
> df_andi.o        df_dioload.c     df_flip     df_joystick.o
> df_palette.o   df_texture.c         Makefile     ve.o
> df_bltload       df_dioload.o     df_flip.c   df_knuckles
> df_particle    df_texture.o         Makefile.am  ve_test
> df_bltload.c     df_dok           df_flip.o   df_layer
> df_particle.c  df_video             Makefile.in  ve_test.c
> df_bltload.o     df_dok.c         df_fonts    df_layer.c
> df_particle.o  df_video.c           pngtest3.h   ve_test.o
> df_cpuload       df_dok.o         df_fonts.c  df_layer.o     df_porter
>      df_video.o           pss
> df_cpuload.c     df_drivertest    df_fonts.o  df_neo
> df_porter.c    df_video_particle    pss.c
> df_cpuload.o     df_drivertest.c  df_input    df_netload
> df_porter.o    df_video_particle.c  pss.o
> df_databuffer    df_drivertest.o  df_input.c  df_netload.c   df_stress
>      df_video_particle.o  spacedream
> df_databuffer.c  df_fire          df_input.o  df_netload.o
> df_stress.c    df_window            util.h
> [r...@localhost src]# ./df_dioload
> (-) [  NO NAME         0.000] (15038) DirectFB/Config: Unable to open
> config file `/etc/directfbrc'!
> (-) [  NO NAME         0.001] (15038) DirectFB/Config: Unable to open
> config file `/root/.directfbrc'!
> (-) [  NO NAME         0.001] (15038) DirectFB/Config: Unable to open
> config file `/etc/directfbrc.df_dioload'!
> (-) [  NO NAME         0.001] (15038) DirectFB/Config: Unable to open
> config file `/root/.directfbrc.df_dioload'!
>
>        ---------------------- DirectFB v0.9.24 ---------------------
>              (c) 2000-2002  convergence integrated media GmbH
>              (c) 2002-2004  convergence GmbH
>         -----------------------------------------------------------
>
> (-) [  NO NAME         0.001] (15038) DirectFB/Core:     dfb_core_create...
> (-) [  NO NAME         0.002] (15038) Direct/Main:
> direct_initialize() called...
> (-) [Main Thread       0.002] (15038) Direct/Main:       ...initializing now.
> (-) [Main Thread       0.002] (15038) Direct/Signals:    Initializing...
> (*) DirectFB/Core: Single Application Core. (2008-12-17 08:28) [ DEBUG ]
> (!) DirectFB/core/system: No system found!
> (-) [Main Thread       0.002] (15038) Direct/Main:
> direct_shutdown() called...
> (-) [Main Thread       0.002] (15038) Direct/Main:       ...shutting down now.
> (-) [Main Thread       0.002] (15038) Direct/Signals:    Shutting down...
> (#) DirectFBError [DirectFBCreate() failed]: No (suitable) implementation 
> found!
> [r...@localhost src]#
>
>
>
> who can help me?
>
> Is it must use shared object?
> _______________________________________________
> directfb-users mailing list
> directfb-users@directfb.org
> http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users
>
>   


-- 

.------------------------------------------.
| DirectFB - Hardware accelerated graphics |
| http://www.directfb.org/                 |
"------------------------------------------" 

_______________________________________________
directfb-users mailing list
directfb-users@directfb.org
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users

Reply via email to