Hey, SDL 1.3 is getting to the point where I want to start making
official alpha releases publicly available for testing. ?One of the
things preventing that is how to set up the SDL packages so that they
can coexist with SDL 1.2.
Do you guys have any suggestions on the best way to set up SDL 1.3 to
install cleanly next to SDL 1.2 and allow the user to pick which
library they want to link with? ?There is also the question of how to
handle the ancillary libraries like SDL_image, which are source
compatible with both, but need to be compiled to separate packages for
each.
Thoughts?
Well, I did a “locate libSDL” on Ubuntu 10.4 and this is what I got:
/usr/lib/libSDL-1.2.so.0
/usr/lib/libSDL-1.2.so.0.11.3
/usr/lib/libSDL.a
/usr/lib/libSDL.la
/usr/lib/libSDL.so
/usr/lib/libSDL_image-1.2.so.0
/usr/lib/libSDL_image-1.2.so.0.8.2
/usr/lib/libSDL_mixer-1.2.so.0
/usr/lib/libSDL_mixer-1.2.so.0.2.6
/usr/lib/libSDL_net-1.2.so.0
/usr/lib/libSDL_net-1.2.so.0.0.7
/usr/lib/libSDLmain.a
It looks like you can just change 1.2 to 1.3 to handle the problems
with the .so files.
/usr/lib/libSDL-1.3.so.0
/usr/lib/libSDL-1.3.so.0.11.3
/usr/lib/libSDL.a
/usr/lib/libSDL.la
/usr/lib/libSDL.so
/usr/lib/libSDL_image-1.3.so.0
/usr/lib/libSDL_image-1.3.so.0.8.2
/usr/lib/libSDL_mixer-1.3.so.0
/usr/lib/libSDL_mixer-1.3.so.0.2.6
/usr/lib/libSDL_net-1.3.so.0
/usr/lib/libSDL_net-1.3.so.0.0.7
/usr/lib/libSDLmain.a
The trouble seems to be with the .a and .la files. I’d just change the
prefix for all SDL related files form libSDL to libSDL13 and then
later to libSDL20 and drop the suffix so that for 1.3 the file names
would be:
/usr/lib/libSDL13.so.0
/usr/lib/libSDL13.so.0.11.3
/usr/lib/libSDL13.a
/usr/lib/libSDL13.la
/usr/lib/libSDL13.so
/usr/lib/libSDL13_image.so.0
/usr/lib/libSDL13_image.so.0.8.2
/usr/lib/libSDL13_mixer.so.0
/usr/lib/libSDL13_mixer.so.0.2.6
/usr/lib/libSDL13_net.so.0
/usr/lib/libSDL13_net.so.0.0.7
/usr/lib/libSDL13main.a
Doing something like this would allow many versions of SDL to coexist
and put the name of the version of SDL used to build an add on
directly in the name of the add on file.
I will admit that it is sort of ugly, but it should work.
Bob PendletonOn Sat, Jul 17, 2010 at 10:15 AM, Sam Lantinga wrote:
–
? ? -Sam Lantinga, Founder and President, Galaxy Gameworks LLC
SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
–
±----------------------------------------------------------