SDL on irix

I tried to install SDL on a SGI O2 / IRIX 6.5
machine, and ran into some problems. IRIX is
listed as a supported OS, but I’m failing to
find any more information about it.

I got the 1.2.5 sources. Then spent some time wondering
why it would want to install to some absolute path like
/usr/lib, can’t do that without root account. But luckily
I found --prefix just before coming to ask here.

…/configure --prefix=/myhomedir/SDL
reports only one problem:

checking for ESD - version >= 0.2.8… no
*** The esd-config script installed by ESD could not be found
*** If ESD was installed in PREFIX, make sure PREFIX/bin is in
*** your path, or set the ESD_CONFIG environment variable to the
*** full path to esd-config.

What is ESD and does this matter?

At least, it didn’t seem it matter, since compilation
succeeded. Then I had to add SDL/bin to PATH and SDL/lib
to LD_LIBRARY_N32_PATH, and then ran into the real problem.

Trying to build the tests or run any program compiled with
gcc -o test test.c sdl-config --cflags --libs
results in

19807:./test: rld: Error: unresolvable symbol in /myhomedir/SDL/lib/libSDL-1.2.so.1: SDL_PrivateKeyboard
19807:./test: rld: Error: unresolvable symbol in /myhomedir/SDL/lib/libSDL-1.2.so.1: SDL_TranslateUNICODE
19807:./test: rld: Error: unresolvable symbol in /myhomedir/SDL/lib/libSDL-1.2.so.1: X11_EnableAutoRefresh
19807:./test: rld: Error: unresolvable symbol in /myhomedir/SDL/lib/libSDL-1.2.so.1: X11_DisableAutoRefresh
19807:./test: rld: Error: unresolvable symbol in /myhomedir/SDL/lib/libSDL-1.2.so.1: SDL_BuildAudioCVT
19807:./test: rld: Error: unresolvable symbol in /myhomedir/SDL/lib/libSDL-1.2.so.1: SDL_mutexP
19807:./test: rld: Error: unresolvable symbol in /myhomedir/SDL/lib/libSDL-1.2.so.1: SDL_SYS_StartTimer

Is the IRIX port incomplete or am I just missing
some all-important installation step?

gtxayf1q001 at sneakemail.com wrote:

Is the IRIX port incomplete or am I just missing
some all-important installation step?

it’s been awhile since i played with SDL on irix. but it worked great about
the time SDL-1.2 was released. ESD is nothing to worry about, it is a sound
daemon on linux. SDL will just use a different backend that works for SGI.

the linking errors you get sure make it seem like SDL didn’t compile
everything it needed for its own internals, strange. are you using gcc or
the SGI mipspro compiler?

it’s been awhile since i played with SDL on irix. but it worked great about
the time SDL-1.2 was released. ESD is nothing to worry about, it is a sound
daemon on linux. SDL will just use a different backend that works for SGI.

the linking errors you get sure make it seem like SDL didn’t compile
everything it needed for its own internals, strange. are you using gcc or
the SGI mipspro compiler?

gcc, that’s what it defaulted to. How should I change it?

No compiler errors, or anything like that.

Damn, those O2s would have been a great portability test for
my program. And just cool machines, even if a bit old. :wink:

gtxayf1q001 at sneakemail.com wrote:

gcc, that’s what it defaulted to. How should I change it?

No compiler errors, or anything like that.

i was building it with gcc also, so i think that should work. it’s been
awhile since i played with SDL on IRIX. maybe i’ll try to snag it again and
see if i can get it to dance or not.

Pete Shinners wrote:

gtxayf1q001 at sneakemail.com wrote:

gcc, that’s what it defaulted to. How should I change it?

No compiler errors, or anything like that.

i was building it with gcc also, so i think that should work. it’s been
awhile since i played with SDL on IRIX. maybe i’ll try to snag it again and
see if i can get it to dance or not.

I have built 1.2.2 as an IRIX 6.5 N32 with the native compiler, by
typing

setenv CC cc

before configure and build.

Unfortunately, I had to do

./configure --disable-video-opengl

otherwise it pukes on SDL_x11gl. But I only use SDL for sound, my
visuals use Motif+Xt+X11, so that was OK, and I did not try and fix the
problem (BTW any one knows where I can E-buy a 48-hours day?)

Cheers,–
Michel Bardiaux
Peaktime Belgium S.A. Bd. du Souverain, 191 B-1160 Bruxelles
Tel : +32 2 790.29.41