Dynamic X11

Just checked in a large patch to make SDL dynamically load the X11 libs
at runtime, to match the ALSA, etc backends.

This touched a lot of code; please report build issues so I can fix them.

Thanks,
–ryan.

  1. Compilation produce the following error on Tru64 UNIX.
    cc: Severe: SDL_x11dyn.h, line 31: Cannot find file
    <X11/extensions/extutil.h> specified in #include directive. (noinclfilef)
    #include <X11/extensions/extutil.h>

Because Tru64 UNIX doesn’t have extutil.h, this error is caused.

  1. Compilation with --enable-x11-shared=no produce the following error.
    cc: Error: SDL_x11sym.h, line 115: In this statement,
    “Xutf8TextListToTextProperty” is not declared. (undeclared)
    SDL_X11_SYM(int,Xutf8TextListToTextProperty,(Display*,char**,int,XICCEncodingStyle,XTextProperty*))

Though it doesn’t have Xutf8TextListToTextProperty,
"pXutf8TextListToTextProperty = Xutf8TextListToTextProperty;"
in SDL_x11dyn.c,117-119
#define SDL_X11_SYM(r,fn,arg) p##fn = fn;
#include “SDL_x11sym.h”
#undef SDL_X11_SYM–
Hayashi Naoyuki
Key fingerprint = 60A0 D5D3 F58B 3633 2E52 0147 D17F 5578 3FDF F5B6
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed…
Name: SDL12-osf1.patch
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20051106/ff1c88aa/attachment.txt

Just checked in a large patch to make SDL dynamically load the X11 libs
at runtime, to match the ALSA, etc backends.

Is this optional? There are systems which have X11 which don’t have
shared libraries…

-Sam Lantinga, Software Engineer, Blizzard Entertainment
  1. Compilation produce the following error on Tru64 UNIX.

I put your fixes in CVS, thanks!

–ryan.

In SDL12/configure.in:624-629
624 x11_lib_spec=’/usr/X11R6/lib/libX11.so.'
625 x11_lib=‘libX11.so.6’
626 echo "-- $x11_lib_spec -> $x11_lib"
627 x11ext_lib_spec=’/usr/X11R6/lib/libXext.so.
'
628 x11_lib='libXext.so.6’
629 echo “-- $x11ext_lib_spec -> $x11_lib”

Is x11_lib a misspelling of x11ext_lib in SDL12/configure.in,628-629 ?

Tru64 UNIX has not libX11.so.6 but /usr/shlib/libX11.so.
libXext.so.6 is also similar.–
Hayashi Naoyuki
Key fingerprint = 60A0 D5D3 F58B 3633 2E52 0147 D17F 5578 3FDF F5B6
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed…
Name: SDL12-osf1.patch
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20051107/260deea4/attachment.asc

Is this optional? There are systems which have X11 which don’t have
shared libraries…

It can be toggled in the configure script.

–ryan.