Disabled all default video outputs except dummy, but now dummy doesn't work

I’m trying to compile an extremely stripped down SDL
library for running programs on a server with no video
(it’s for writing PNG images for the backend of something
else). I only want the dummy video output, basically to
do surface to surface blitting and then output to PNG files
using the resulting surfaces.

I compiled SDL (1.2.9) with:

./configure
–disable-audio
–disable-oss
–disable-alsa
–disable-esd
–disable-arts
–disable-nas
–disable-diskaudio
–disable-mintaudio
–disable-nasm
–disable-video-x11
–disable-video-dga
–disable-video-photon
–disable-video-fbcon
–disable-video-directfb
–disable-video-ps2gs
–disable-video-xbios
–disable-video-gem
–disable-video-opengl

But now trying to run SDL_Init gives me:

fatal: No available video device

./configure --help | grep dummy
–enable-video-dummy use dummy video driver default=yes

Is there some glaring error that I’ve made somewhere?

thanks,
a1

I’m trying to compile an extremely stripped down SDL
library for running programs on a server with no video
(it’s for writing PNG images for the backend of something
else). I only want the dummy video output, basically to
do surface to surface blitting and then output to PNG files
using the resulting surfaces.

I compiled SDL (1.2.9) with:

./configure
–disable-audio
–disable-oss
–disable-alsa
–disable-esd
–disable-arts
–disable-nas
–disable-diskaudio
–disable-mintaudio
–disable-nasm
–disable-video-x11
–disable-video-dga
–disable-video-photon
–disable-video-fbcon
–disable-video-directfb
–disable-video-ps2gs
–disable-video-xbios
–disable-video-gem
–disable-video-opengl

But now trying to run SDL_Init gives me:

fatal: No available video device

./configure --help | grep dummy
–enable-video-dummy use dummy video driver default=yes

Is there some glaring error that I’ve made somewhere?

No, looks okay here. First, grab the 1.2.10 prerelease and see if its fixed:
http://www.libsdl.org/tmp/SDL-1.2.10.tar.gz

Second, if that doesn’t help, make sure the dummy video files are actually
getting compiled.

Third, if everything seems fine, build SDL with CFLAGS=-g and step through
the code in a debugger.

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

Hi, Sam.

I had forgotten to set SDL_VIDEODRIVER=“dummy”.

No panic!

cheers,
a1On 5/13/06, Sam Lantinga wrote:

Third, if everything seems fine, build SDL with CFLAGS=-g and step through
the code in a debugger.