How to debug "Unable to init SDL" error

I am attempting to port SDL 1.2.4 tot he Agenda VR3 Linux-based PDA. To
do this, I had to first hack SDL to with with 4bpp (16-color) displays.
I’m not certain my message Friday on how I got this to work made it to
the list, but to make a long story short, I did get SDL working on a
4bpp X11 display on my Linux workstation.

After I got this working, I compiled SDL for the Agenda VR3, which runs
XFree86 4.0 with a 16-color grayscale screen with 320x240 resolution.
I compiled a couple of test applications, including testsprite from the
SDL test directory, but when I try to run them, I get the error:

Unable to init SDL: No available video device

Apparently, SDL doesn’t recognise that X is available, or somehow X
support was not compiled-in. Here’s the configure command line I used
when compiling SDL for the Agenda VR3:

./configure --disable-audio --disable-debug --disable-joystick
–disable-cdrom --disable-video-fbcon --disable-video-opengl --with-x
–enable-video-x11 --disable-video-x11-xinerama

Any suggestions on how to determine the cause of the problem would be
greatly appreciated!

-Karl

I am attempting to port SDL 1.2.4 tot he Agenda VR3 Linux-based PDA. To
do this, I had to first hack SDL to with with 4bpp (16-color) displays.
I’m not certain my message Friday on how I got this to work made it to
the list, but to make a long story short, I did get SDL working on a
4bpp X11 display on my Linux workstation.

Very cool. :slight_smile:

After I got this working, I compiled SDL for the Agenda VR3, which runs
XFree86 4.0 with a 16-color grayscale screen with 320x240 resolution.
I compiled a couple of test applications, including testsprite from the
SDL test directory, but when I try to run them, I get the error:

Unable to init SDL: No available video device

Apparently, SDL doesn’t recognise that X is available, or somehow X
support was not compiled-in. Here’s the configure command line I used
when compiling SDL for the Agenda VR3:

./configure --disable-audio --disable-debug --disable-joystick
–disable-cdrom --disable-video-fbcon --disable-video-opengl --with-x
–enable-video-x11 --disable-video-x11-xinerama

Any suggestions on how to determine the cause of the problem would be
greatly appreciated!

I usually start printing trace messages to a file to find out what’s
happening. I assume you don’t actually have access to a debugger for
the platform?

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