I am running a Test Code from DFBTutorials-0.5.0.
Filename: Simple.c

Code Snippet follows:

int main (int argc, char **argv)

{

DFBSurfaceDescription dsc;

DFBCHECK (DirectFBInit (&argc, &argv));

DFBCHECK (DirectFBCreate (&dfb));

DFBCHECK (dfb->SetCooperativeLevel (dfb, DFSCL_FULLSCREEN));

dsc.flags = DSDESC_CAPS;

dsc.caps = DSCAPS_PRIMARY | DSCAPS_FLIPPING;


DFBCHECK (dfb->CreateSurface( dfb, &dsc, &primary ));

DFBCHECK (primary->GetSize (primary, &screen_width, &screen_height));

DFBCHECK (primary->FillRectangle (primary, 0, 0, screen_width, screen_height));

DFBCHECK (primary->SetColor (primary, 0x80, 0x80, 0xff, 0xff));

DFBCHECK (primary->DrawLine (primary, 0, screen_height / 2,

screen_width - 1, screen_height / 2));

DFBCHECK (primary->Flip (primary, NULL, 0));

sleep (5);

primary->Release( primary );

dfb->Release( dfb );


return 23;

}

Program is crashing on DFBCHECK (DirectFBCreate (&dfb));


Regards,
Ujjal
  ----- Original Message ----- 
  From: Shivakumar Mishra 
  To: Ujjal Saha 
  Cc: directfb-dev@directfb.org ; Amit Pandya 
  Sent: Wednesday, April 21, 2010 2:29 PM
  Subject: Re: [directfb-dev] DirectFB/core/system: No system found!



  which application you are running and tell me your surface description flag 
and cooperative level of your application

  On Wed, Apr 21, 2010 at 2:23 PM, Ujjal Saha <ujjals...@tataelxsi.co.in> wrote:


    I have successfully cross compiled Directfb for TI  DaVinci DM365.

    But when I try to run Directfb Tutorial example applications on board .I am 
getting the following errors.......
    ~~~~~~~~~~~~~~~~~~~~~~~~~~| DirectFB 1.2.0 |~~~~~~~~~~~~~~~~~~~~~~~~~~
    (c) 2001-2008 The world wide DirectFB Open Source Community
    (c) 2000-2004 Convergence (integrated media) GmbH
    ----------------------------------------------------------------
    (*) DirectFB/Core: Single Application Core. (2010-04-21 05:54)
    (!) DirectFB/core/system: No system found!
    simple.c <96>:
    (#) DirectFBError [DirectFBCreate (&dfb)]: No (suitable) implementation 
found!

    Hello,

    For cross compilation, I am doing following steps

    1) configure

    ./configure CC=arm_v5t_le-gcc 
LDFLAGS="-L/opt/mv_pro_5.0/montavista/pro/devkit/arm/v5t_le/target/lib/" 
CFLAGS="-I/opt/mv_pro_5.0/montavista/pro/devkit/arm/v5t_le/include/" 
PKG_CONFIG=/home/Harris/workdir/filesys/usr/lib/pkgconfig/ 
--prefix=/home/Harris/workdir/filesys/usr 
--exec-prefix=/home/Harris/workdir/filesys/usr --build=i686 --host=arm-linux 
--enable-x11=no --with-gfxdrivers=davinci --with-inputdrivers=none 
--enable-fbdev=yes --enable-png=no --enable-freetype=no --enable-jpeg=no
    where, /home/Harris/workdir/filesys is out target file system.

    2) make ; make install 

    I have also checked putting data on /dev/fb0 [echo "aaaaaaaaaaaaaaaaaaaa" 
>/dev/fb0]
    I am able to see the data after wrinting on int. [cat /dev/fb0]


    Please Help...!!!


    Thanks,
    Ujjal

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





  -- 
  "The best way to find yourself is to lose yourself in the service of others".

  Shiva The Great 

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

Reply via email to