Hi, I'm trying to run the first sample application (the one drawing a 
horizontal line) on a ViXS XCode board (arc-uclibc).
I compiled DirectFB 1.2.3 as a _static_ library, so it should be 
embedded into my executable file and I shouldn't need to copy anything 
to the target device... is this correct?
Anyway I get the error:

[vixs]$ ./dfb_line

   ~~~~~~~~~~~~~~~~~~~~~~~~~~| DirectFB 1.2.3 |~~~~~~~~~~~~~~~~~~~~~~~~~~
        (c) 2001-2008  The world wide DirectFB Open Source Community
        (c) 2000-2004  Convergence (integrated media) GmbH
      ----------------------------------------------------------------

(*) DirectFB/Core: Single Application Core. (2008-08-26 16:02)
(!) DirectFB/core/system: No system found!
dfb_line.c <31>:
        (#) DirectFBError [DirectFBCreate(&dfb)]: No (suitable) 
implementation found!

where dfb_line.c <31> is:

    DFBCHECK(DirectFBCreate(&dfb));

Looking at the DirectFB code, I can see that:
* [src/directfb.c:193] DirectFBCreate() calls dfb_core_create( &core_dfb );
* [src/core/core.c:291] dfb_core_create() calls dfb_system_lookup();
* [src/core/system.c:273] dfb_system_lookup() calls 
direct_modules_explore_directory( &dfb_core_systems );
* [lib/direct/modules.c:141] direct_modules_explore_directory() contains:

140    int
141    direct_modules_explore_directory( DirectModuleDir *directory )
142    {
143    #ifdef DYNAMIC_LINKING
144...    ...<inactive code>...  
248    #else
249         return 0;
250    #endif
251    }

so the "system_module" variable (defined into src/core/system.c) still 
contains NULL (see src/core/system.c:82) causing the error.

Is there a way to properly initialize "system_module" when the 
DYNAMIC_LINKING macro is disabled?
How can I use DirectFB as a statically compiled library?

BTW, these are my framebuffer settings:

[vixs]$ fbset -i
mode "1920x1080-11"
        # D: 25.175 MHz, H: 12.103 kHz, V: 10.759 Hz
        geometry 1920 1080 1920 1080 32
        timings 39722 48 16 33 10 96 2
        accel false
        rgba 8/16,8/8,8/0,0/0
endmode

[vixs]$ ./fb_info
FB driver:      ViXS FB 0.11
FB mem len:     44040192
Acceleration:   143
Resolution:     1920 x 1080 @ 32
Resolution (virt):      1920 x 1080
RED:
        Offset: 16
        Length: 8
        MSB:    left
GREEN:
        Offset: 8
        Length: 8
        MSB:    left
BLUE:
        Offset: 0
        Length: 8
        MSB:    left
TRANSPARENCY:
        Offset: 0
        Length: 0
        MSB:    left
Pixel format:   non standard


Thank you,
  Piero


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

Reply via email to