Hi SDL List
In August last year Pasi K?rkk?inen posted a message to this list on
the same subject:
On Linux (and perhaps on other platforms using the X Window System)
SDL_init() never returns when the environment variable DISPLAY is set
to a remote computer.
Last year there did not seem to be a solution to his problem, although
some people thought it had to do with an XFree86 function call.
I have exactly the same problem now and I wonder if a fix has been
found in the meantime. To reproduce the hang on x86 Linux (bash)
platforms running XFree86:
$ rlogin remote_computer
$ export DISPLAY=local_computer:0
I have confirmed this on Red Hat 7.1 (kernel 2.4.2, SDL 1.1.7, XFree86
4.0.3, glibc 2.96) and Fedora Core 1 (kernel 2.4.22, SDL 1.2.5,
XFree86 4.3.0, glibc 2.3.2).
My little test program is:
if (SDL_Init(SDL_INIT_VIDEO) == -1)
printf(“SDL returned an error code.\n”);
printf(“Could not initialize SDL: %s.\n”, SDL_GetError());
printf(“SDL initialized OK.\n”);
printf(“SDL quit OK.\n”);
which was compiled with:
gcc -g -O2 -Wall -W -I/usr/include/SDL -L/usr/lib -lSDL -lpthread
SDL-example-1-1.c -o SDL-example-1-1
I also tried SDL_INIT_VIDEO|SDL_NO_PARACHUTE as the argument to
I have searched the FAQ and the rest of the libsdl.org site, as well
as the googling the Net. Not a sausage.
Johann Schoonees Imaging & Sensing Team
Industrial Research Limited, PO Box 2225, Auckland, New Zealand
Phone +64 9 9203679 Fax +64 9 3028106 http://www.is.irl.cri.nz/
Camwire’s home: http://kauri.auck.irl.cri.nz/~johanns/camwire/