No video output with SDL compiled with gcc-3.2

Hi,
I am using mandrake-9.0 (gcc-3.2 based). Both avifile (latest cvs)
and mplayer (latest cvs, using sdl video output) show a black window (no
video, but audio is present) when used with SDL compiled with gcc-3.2.
I have tested this with different SDL versions:
- SDL1.2.4 precompiled that comes with mandrake-9.0
- gcc3.2 compiled cvs of Oct 14
- gcc3.2 compiled SDL-1.2.5 stable
- gcc3.2 compiled SDL-1.2.4 cvs

In all of the above cases:
- video present if SDL compiled with gcc-2.96 (and used on
gcc-2.96 or gcc-3.2 based systems)
- no video if SDL compiled with gcc-3.2 (and used on gcc-3.2 based
systems)

I have checked this with the same SDL cvs: gcc-2.96-compiled SDL
binaries work fine but gcc3.2-compiled SDL binaries show no video on my
gcc-3.2 based system.

The problem is obviously not with avifile (or mplayer), but

between SDL and gcc-3.2. I want to know if others have faced the same
problem with gcc-3.2 based systems and is there is a way out (some
compilation option).

thanks

  • Nil

Hi,

I am a new programmer using SDL. Basically I am trying to display an
image captured from a Fire-wire Camera connected to my PC. The Camera
returns a frame, where each pixel is in unsigned char form. I only see
SDL_LoadBMP in the list and there is no direct method to display an
image in unsigned char format. Do I need to do any conversion ?? Or how
do I go about ?

Any help in this regard will be highly apreciated !

Thanks,
Raj
PS: Is there any site where I can get good Documentation on SDL ?> ----- Original Message -----

From: sdl-admin@libsdl.org [mailto:sdl-admin at libsdl.org] On Behalf Of
Nilmoni Deb
Sent: October 19, 2002 3:25 PM
To: sdl at libsdl.org
Subject: [SDL] no video output with SDL compiled with gcc-3.2

Hi,
I am using mandrake-9.0 (gcc-3.2 based). Both avifile (latest
cvs)
and mplayer (latest cvs, using sdl video output) show a black window (no
video, but audio is present) when used with SDL compiled with gcc-3.2. I
have tested this with different SDL versions:

  • SDL1.2.4 precompiled that comes with mandrake-9.0
  • gcc3.2 compiled cvs of Oct 14
  • gcc3.2 compiled SDL-1.2.5 stable
  • gcc3.2 compiled SDL-1.2.4 cvs

In all of the above cases:

  • video present if SDL compiled with gcc-2.96 (and used on
    gcc-2.96 or gcc-3.2 based systems)
  • no video if SDL compiled with gcc-3.2 (and used on gcc-3.2
    based
    systems)

I have checked this with the same SDL cvs: gcc-2.96-compiled SDL
binaries work fine but gcc3.2-compiled SDL binaries show no video on my
gcc-3.2 based system.

The problem is obviously not with avifile (or mplayer), but
between SDL and gcc-3.2. I want to know if others have faced the same
problem with gcc-3.2 based systems and is there is a way out (some
compilation option).

thanks

  • Nil

SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl

I am a new programmer using SDL. Basically I am trying to display an
image captured from a Fire-wire Camera connected to my PC. The Camera
returns a frame, where each pixel is in unsigned char form. I only see
SDL_LoadBMP in the list and there is no direct method to display an
image in unsigned char format. Do I need to do any conversion ?? Or how
do I go about ?

The function you want is SDL_CreateRGBSurfaceFrom. You can pass it your raw
data and some info about the image, and it wiil create an SDL_Surface from
the data with which you can work.

PS: Is there any site where I can get good Documentation on SDL ?

There are docs, faqs, and tutorials linked from the main SDL page at
http://www.libsdl.org . But I prefer to read the headers. :slight_smile:

P.S: Do not reply to another post if you are starting a new subject, it messes
up the message threading for people with threaded mail readers.On Saturday 19 October 2002 20:22, V.Rajashekar wrote:


Max Watson <@Max_Watson>

Hi,
I am using mandrake-9.0 (gcc-3.2 based). Both avifile (latest cvs)
and mplayer (latest cvs, using sdl video output) show a black window (no
video, but audio is present) when used with SDL compiled with gcc-3.2.
I have tested this with different SDL versions:

  • SDL1.2.4 precompiled that comes with mandrake-9.0
  • gcc3.2 compiled cvs of Oct 14
  • gcc3.2 compiled SDL-1.2.5 stable
  • gcc3.2 compiled SDL-1.2.4 cvs

In all of the above cases:

  • video present if SDL compiled with gcc-2.96 (and used on
    gcc-2.96 or gcc-3.2 based systems)
  • no video if SDL compiled with gcc-3.2 (and used on gcc-3.2 based
    systems)

Just to follow up, this turned out to be an incomplete gcc installation.
Once gcc was completely removed and cleanly installed video output was fine.

See ya!
-Sam Lantinga, Software Engineer, Blizzard Entertainment