mhmm,Thanks alot.
solution 2 is means the /usr/miniDirectFB/lib/directfb-0.9.24/system
must be a share object?

2008/12/18 Niels Roest <ni...@directfb.org>:
> Hi, my mistake.
>
> for solution 2:
> I should have mentioned MODULEDIR instead of DATADIR,
> so in your case it should be probably
> /usr/miniDirectFB/lib/directfb-0.9.24/system for the system modules.
> Note that, for this to work, you have to have dynamic loadable files in
> there (*.so files).
>
> for solution 3:
> I forgot that the libraries do not contain required (undefined) symbols, so
> you need to force them in your code; more easily, just include the *.o file
> instead, so more or less *.o of your system/fbdev directory. I think that
> should work...
>
> hth
> Niels
>
> Steven Liu wrote:
>>
>> Hi Niels,
>>
>>          Thank you at first!
>>          I have try 'make install'
>>          and i have try the second way:
>> it request some message:
>> [r...@localhost DirectFB-0.9.24]# ls
>> /usr/miniDirectFB/share/directfb-0.9.24/
>> cursor.dat
>> [r...@localhost DirectFB-0.9.24]# grep "DATADIR" Makefile
>> DATADIR = ${prefix}/share/directfb-0.9.24
>> [r...@localhost DirectFB-0.9.24]# ls /usr/miniDirectFB/lib/
>> directfb-0.9.24-debug  libdirect.a  libdirectfb.a  libdirectfb.la
>> libdirect.la  libfusion.a  libfusion.la  pkgconfig
>> [r...@localhost DirectFB-0.9.24]# cp
>> systems/fbdev/.libs/libdirectfb_fbdev.* /usr/miniDirectFB/lib/
>> [r...@localhost DirectFB-0.9.24]# ls /usr/miniDirectFB/lib/
>> directfb-0.9.24-debug  libdirectfb.a        libdirectfb_fbdev.la
>> libdirectfb.la  libfusion.a   pkgconfig
>> libdirect.a            libdirectfb_fbdev.a  libdirectfb_fbdev.lai
>> libdirect.la    libfusion.la
>>
>> [r...@localhost DirectFB-0.9.24]# mkdir /usr/miniDirectFB/lib/systems
>> [r...@localhost DirectFB-0.9.24]# cp
>> systems/fbdev/.libs/libdirectfb_fbdev.* /usr/miniDirectFB/lib/systems/
>> [r...@localhost DirectFB-0.9.24]# ldconfig
>> [r...@localhost DirectFB-0.9.24]# mkdir /usr/miniDirectFB/share/systems
>> share/
>> [r...@localhost DirectFB-0.9.24]# mkdir
>> /usr/miniDirectFB/share/directfb-0.9.24/systems
>> directfb-0.9.24/
>> [r...@localhost DirectFB-0.9.24]# mkdir
>> /usr/miniDirectFB/share/directfb-0.9.24/systems
>> [r...@localhost DirectFB-0.9.24]# cp
>> systems/fbdev/.libs/libdirectfb_fbdev.*
>> /usr/miniDirectFB/share/directfb-0.9.24/systems
>> [r...@localhost DirectFB-0.9.24]# ldconfig
>>
>> [r...@localhost DirectFB-0.9.24]#
>> /root/DirectFB-examples-0.9.23/src/df_dioload
>> (-) [  NO NAME         0.000] (20236) DirectFB/Config: Unable to open
>> config file `/etc/directfbrc'!
>> (-) [  NO NAME         0.000] (20236) DirectFB/Config: Unable to open
>> config file `/root/.directfbrc'!
>> (-) [  NO NAME         0.000] (20236) DirectFB/Config: Unable to open
>> config file `/etc/directfbrc.df_dioload'!
>> (-) [  NO NAME         0.000] (20236) 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.000] (20236) DirectFB/Core:
>> dfb_core_create...
>> (-) [  NO NAME         0.001] (20236) Direct/Main:
>> direct_initialize() called...
>> (-) [Main Thread       0.001] (20236) Direct/Main:       ...initializing
>> now.
>> (-) [Main Thread       0.001] (20236) Direct/Signals:    Initializing...
>> (*) DirectFB/Core: Single Application Core. (2008-12-17 08:28) [ DEBUG ]
>> (!) DirectFB/core/system: No system found!
>> (-) [Main Thread       0.001] (20236) Direct/Main:
>> direct_shutdown() called...
>> (-) [Main Thread       0.001] (20236) Direct/Main:       ...shutting down
>> now.
>> (-) [Main Thread       0.001] (20236) Direct/Signals:    Shutting down...
>> (#) DirectFBError [DirectFBCreate() failed]: No (suitable) implementation
>> found!
>> [r...@localhost DirectFB-0.9.24]#
>>
>>
>>
>>             and i have try the third way:
>> it request the message:
>>
>>
>> [r...@localhost src]# gcc -static -D_REENTRANT -D_GNU_SOURCE
>> -I/usr/local/include/directfb   -D_GNU_SOURCE -Wall -O3 -pipe
>> -Werror-implicit-function-declaration -o df_dioload  df_dioload.c
>> -L/usr/miniDirectFB/lib/ -ldirectfb -lfusion -ldirect  -lpthread -ldl
>> /usr/miniDirectFB/share/directfb-0.9.24/systems/libdirectfb_fbdev.a
>> /usr/miniDirectFB/lib//libdirect.a(stream.o): In function `tcp_open':
>> /root/DirectFB-0.9.24/lib/direct/stream.c:517: warning: Using
>> 'getaddrinfo' in statically linked applications requires at runtime
>> the shared libraries from the glibc version used for linking
>> /usr/miniDirectFB/lib//libdirect.a(log.o): In function
>> `parse_host_addr_port':
>> /root/DirectFB-0.9.24/lib/direct/log.c:250: warning: Using
>> 'gethostbyname' in statically linked applications requires at runtime
>> the shared libraries from the glibc version used for linking
>> [r...@localhost src]# ./df_dioload
>> (-) [  NO NAME         0.000] (20235) DirectFB/Config: Unable to open
>> config file `/etc/directfbrc'!
>> (-) [  NO NAME         0.000] (20235) DirectFB/Config: Unable to open
>> config file `/root/.directfbrc'!
>> (-) [  NO NAME         0.000] (20235) DirectFB/Config: Unable to open
>> config file `/etc/directfbrc.df_dioload'!
>> (-) [  NO NAME         0.000] (20235) 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.000] (20235) DirectFB/Core:
>> dfb_core_create...
>> (-) [  NO NAME         0.000] (20235) Direct/Main:
>> direct_initialize() called...
>> (-) [Main Thread       0.000] (20235) Direct/Main:       ...initializing
>> now.
>> (-) [Main Thread       0.000] (20235) Direct/Signals:    Initializing...
>> (*) DirectFB/Core: Single Application Core. (2008-12-17 08:28) [ DEBUG ]
>> (!) DirectFB/core/system: No system found!
>> (-) [Main Thread       0.000] (20235) Direct/Main:
>> direct_shutdown() called...
>> (-) [Main Thread       0.000] (20235) Direct/Main:       ...shutting down
>> now.
>> (-) [Main Thread       0.000] (20235) Direct/Signals:    Shutting down...
>> (#) DirectFBError [DirectFBCreate() failed]: No (suitable) implementation
>> found!
>> [r...@localhost src]#
>>
>>
>>
>> I just only want to use the /dev/fb0
>> my grub have configured with vga=0x314
>>
>>
>> Thanks for your anwser
>>
>>
>>
>> 2008/12/17 Niels Roest <ni...@directfb.org>:
>>
>>>
>>> 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 - 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