SDL configuration for DirectFB video driver

Hello,

I am new to SDL. I am developing SDL application for ARM platform which has
a LCD display. Until now i was using SDL with Fbcon (Linux Frame buffer
Console) driver which is “/dev/fb0” and it was working fine. Here i was
using a single SDL application.
When i tried to run Multiple SDL Applications simultaneously, (SDL with
FBcon) the second application failed to start. It has got stucked in
SDL_SetVideoMode() Function. When i stop the first application, the Second
one Starts working… I think with SDL we can’t run multiple
applications… and i figred out it was stucked in some tty
device…Can we disable the input device in any chance…

Please comment on the Above understanding…

But my new requirement is to run multiple SDL applications simultaneously…
Since DirectFB supports integrated windowing system, i thought of using SDL
with DirectFB support.

Is that Option Correct (SDL with DirectFB support for running multiple SDL
applications at the same time. )???

I have done the following steps:

  1. Build the SDL with --enable-video-directfb option

  2. Set the Environment Variable SDL_VIDEODRIVER=directfb

  3. DirectFB Library building with
    –enable-sdl --disable-x11 --enable-fbdev
    –with-inputdrivers=none --enable-jpeg --enable-png --enable-zlib
    –enable-freetype --disable-sysfs --disable-vnc --disable-video4linux
    –disable-video4linux2 --enable-fusion --enable-debug --enable-multi

In the Above config options the use of “–enable-sdl” is correct??? i think
that is used if the DirectFB applications runs over SDL. Please correct me
on this understanding…

With the Above settings , when i tried to run the SDL application, i am
getting the Error saying, the pixel format is not supported…

Please anyone help me on this, since its an urgent requirement…

Or anyone please Suggest me an alternative option for running multiple SDL
applications on ARM platform (without X11).

Thanks in advance …,
Ansa Najeeb.

Hi,

I have attached the logs i captured when i ran the SDL(using DirectFB)
application.

Starting g2g_displayGatewaySettings()…

Video Driver = directfb

initSdl :: SDL_Init() Success

SDL_Init() : SDL_GetError() --> .

 =======================|  DirectFB 1.0.1  |=======================
      (c) 2001-2007  The DirectFB Organization (directfb.org)
      (c) 2000-2004  Convergence (integrated media) GmbH------------------------------------------------------------

() DirectFB/Core: Single Application Core. (2009-07-03 08:53)
(
) Direct/Thread: Running ‘VT Switcher’ (CRITICAL, 1358)…
() Direct/Thread: Running ‘Keyboard Input’ (INPUT, 1363)…
(
) DirectFB/Input: Keyboard 0.9 (directfb.org)
() Direct/Thread: Running ‘Linux Input’ (INPUT, 1364)…
(
) DirectFB/Input: gpio-keys 0.1 (directfb.org)
() Direct/Thread: Running ‘PS/2 Input’ (INPUT, 1366)…
(
) DirectFB/Input: IMPS/2 Mouse 1.0 (directfb.org)
(!) Direct/Modules: Could not open module directory
`/lib/directfb-1.0-0/gfxdrivers’!
–> No such file or directory
() DirectFB/Graphics: Generic Software Rasterizer 0.6 (directfb.org)
(
) DirectFB/Core/WM: Default 0.3 (directfb.org)
SDL DirectFB_SetVideoMode: 240x320 at 16, flags: 0x00000000
SDL_DirectFB: Unsupported pixelformat (0x0020079c)!

initSdl :: SDL_SetVideoMode() Success

SDL_SetVideoMode() : SDL_GetError() --> Fill rect on unsupported surface
format.

---------- Forwarded message ----------
From: @ansa_ahammed (ansa ahammed)
Date: Fri, Jul 3, 2009 at 1:14 PM
Subject: SDL configuration for DirectFB video driver
To: sdl at lists.libsdl.org

Hello,

I am new to SDL. I am developing SDL application for ARM platform which has
a LCD display. Until now i was using SDL with Fbcon (Linux Frame buffer
Console) driver which is “/dev/fb0” and it was working fine. Here i was
using a single SDL application.
When i tried to run Multiple SDL Applications simultaneously, (SDL with
FBcon) the second application failed to start. It has got stucked in
SDL_SetVideoMode() Function. When i stop the first application, the Second
one Starts working… I think with SDL we can’t run multiple
applications… and i figred out it was stucked in some tty
device…Can we disable the input device in any chance…

Please comment on the Above understanding…

But my new requirement is to run multiple SDL applications simultaneously…
Since DirectFB supports integrated windowing system, i thought of using SDL
with DirectFB support.

Is that Option Correct (SDL with DirectFB support for running multiple SDL
applications at the same time. )???

I have done the following steps:

  1. Build the SDL with --enable-video-directfb option

  2. Set the Environment Variable SDL_VIDEODRIVER=directfb

  3. DirectFB Library building with
    –enable-sdl --disable-x11 --enable-fbdev
    –with-inputdrivers=none --enable-jpeg --enable-png --enable-zlib
    –enable-freetype --disable-sysfs --disable-vnc --disable-video4linux
    –disable-video4linux2 --enable-fusion --enable-debug --enable-multi

In the Above config options the use of “–enable-sdl” is correct??? i think
that is used if the DirectFB applications runs over SDL. Please correct me
on this understanding…

With the Above settings , when i tried to run the SDL application, i am
getting the Error saying, the pixel format is not supported…

Please anyone help me on this, since its an urgent requirement…

Or anyone please Suggest me an alternative option for running multiple SDL
applications on ARM platform (without X11).

Thanks in advance …,
Ansa Najeeb.