SDL apps on remote display on debian boxes

I apologize if this is a faq, but I’ve not found much on google…

Linux Debian/Sarge (on x86) with his stock:

ii libsdl1.2debia 1.2.7+1.2.8cvs Simple DirectMedia Layer

The following program:

#include <SDL.h>

int main()
{
SDL_Init(SDL_INIT_VIDEO);
printf(“Ok.\n”);
}

compiled with:

gcc -o test test.c sdl-config --cflags --libs

./test

(hangs forever without printing “OK.”)

IF the display is remote.

Every other X app works ok on the remote display except SDL ones.

Any workaround for this?

Do I need to replace SDL building the latest one from sources (or also
this is not enough)?

Bye,
Gabry

Works fine here. Which specific package for sdl do you have installed?
The one you have listed is just the base package, sarge also ships a
specific implementation depending on your selected sound system(s). For
example, on my system:On Mon, Apr 10, 2006 at 05:59:03PM +0200, Gabriele Greco wrote:

I apologize if this is a faq, but I’ve not found much on google…

Linux Debian/Sarge (on x86) with his stock:

ii libsdl1.2debia 1.2.7+1.2.8cvs Simple DirectMedia Layer

(hangs forever without printing “OK.”)

IF the display is remote.

##############################################################################
host> setenv COLUMNS 120 (“export COLUMNS=120” for bash)
host> dpkg -l | grep libsdl1.2debian | cut -c1-78
ii libsdl1.2debian 1.2.7+1.2.8cvs20041007-4 Simple DirectMedia Layer
pi libsdl1.2debian-alsa 1.2.7+1.2.8cvs20041007-4 Simple DirectMedia Layer
##############################################################################

The second one should be one of these:

libsdl1.2debian-all
libsdl1.2debian-alsa
libsdl1.2debian-arts
libsdl1.2debian-esd
libsdl1.2debian-nas
libsdl1.2debian-oss

…assuming you’re running Debian/i386 over Linux that is.


Steaphan Greene
GPG public key: http://www.cs.binghamton.edu/~sgreene/gpg.key.txt
-------------- next part --------------
A non-text attachment was scrubbed…
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20060410/4fff9d39/attachment.pgp

Stea Greene wrote:

IF the display is remote.
Works fine here. Which specific package for sdl do you have installed?

Have you tried to display the app on another machine desktop? (export
DISPLAY=x.y.z.t:0)

The one you have listed is just the base package, sarge also ships a
specific implementation depending on your selected sound system(s). For
example, on my system:

##############################################################################
host> setenv COLUMNS 120 (“export COLUMNS=120” for bash)
host> dpkg -l | grep libsdl1.2debian | cut -c1-78
ii libsdl1.2debian 1.2.7+1.2.8cvs20041007-4 Simple DirectMedia Layer
pi libsdl1.2debian-alsa 1.2.7+1.2.8cvs20041007-4 Simple DirectMedia Layer

The packages are the same:

carolina:~/multiview# dpkg -l | grep sdl
ii libsdl1.2-dev 1.2.7+1.2.8cvs20041007-4.1 Simple
DirectMedia Layer development files
ii libsdl1.2debian 1.2.7+1.2.8cvs20041007-4.1 Simple
DirectMedia Layer
ii libsdl1.2debian-alsa 1.2.7+1.2.8cvs20041007-4.1 Simple
DirectMedia Layer (with X11 and ALSA options)

Bye,
Gabry

Have you tried to display the app on another machine desktop? (export
DISPLAY=x.y.z.t:0)

Yep, works fine remotely. Sorry, that was my only suggestion, perhaps
you should take this up with the debian guys?

You also could look at the rest of your system, like your build
environment (compiler, libc, etc…) to make sure they aren’t causing
the problem. Also, problems with things like udev could cause this too.
If you’re not running straight sarge, my suggestion would be to look at
those pieces of your system that are not vanilla sarge.On Tue, Apr 11, 2006 at 09:31:52AM +0200, Gabriele Greco wrote:


Steaphan Greene
GPG public key: http://www.cs.binghamton.edu/~sgreene/gpg.key.txt
-------------- next part --------------
A non-text attachment was scrubbed…
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20060411/6d940cd8/attachment.pgp

The packages are the same:

carolina:~/multiview# dpkg -l | grep sdl
ii libsdl1.2-dev 1.2.7+1.2.8cvs20041007-4.1 Simple
DirectMedia Layer development files
ii libsdl1.2debian 1.2.7+1.2.8cvs20041007-4.1 Simple
DirectMedia Layer
ii libsdl1.2debian-alsa 1.2.7+1.2.8cvs20041007-4.1 Simple
DirectMedia Layer (with X11 and ALSA options)

Can you try the code in CVS and see if that works?
http://www.libsdl.org/cvs.php

Thanks!
-Sam Lantinga, Senior Software Engineer, Blizzard Entertainment