Installing on Mandrake 9.2 SDL problem

NOTICE: This forum is archived as read only.
Please use the Github Discussions at https://github.com/exult/exult/discussions
Forum rules
NOTICE: This forum is archived as read only.
Please use the Github Discussions at https://github.com/exult/exult/discussions
Locked
Daemongar
Posts: 87
Joined: Thu May 14, 2020 1:34 pm

Installing on Mandrake 9.2 SDL problem

Post by Daemongar »

Ok - have been running fine on Win32 for quite some time but decided to give the Mandrake a try. I have the following setup:

Fresh download of Exult 1.1.10.rc2 and uncompressed to /usr/games/exultsrc

Complete copy of Ultima7 and SERPENT directories to
/usr/games/ultima/Ultima7 and
/usr/games/ultima/SERPENT respectively.

From the exultsrc directory i did a ./configure - everything went fine but the final part:

checking for SDL - version >= 1.2.0... no
*** The sdl-config script installed by SDL could not be found
*** If SDL was installed in PREFIX, make sure PREFIX/bin is in
*** your path, or set the SDL_CONFIG environment variable to the
*** full path to sdl-config.
configure: error: *** SDL version 1.2.0 not found!

But it is installed. When I try to install the SDL RPM I get:
package SDL-1.2.7-1 is already installed
file /usr/lib/libSDL-1.2.so.0 from install of SDL-1.2.7-1 conflicts with file from package libSDL1.2-1.2.5-12mdk

Any help would be appreciated - every patch and bugfix has been applied to my system. I don't have a clue what to do so if you could be very specific, it would really help.
nadir
Site Admin
Posts: 407
Joined: Thu May 14, 2020 1:34 pm

Re: Installing on Mandrake 9.2 SDL problem

Post by nadir »

You need to install the dev package for SDL and SDL_mixer
Daemongar
Posts: 87
Joined: Thu May 14, 2020 1:34 pm

Re: Installing on Mandrake 9.2 SDL problem

Post by Daemongar »

SDL ....................... : 1.2.7
Build tools................ : yes
Build ExultStudio.......... : no

Now type 'make' to build Exult
-------------------------------------------------

Thanks :)

ps: For future reference, the packages you mentioned were found at:

http://www.libsdl.org/download-1.2.php
http://www.libsdl.org/projects/SDL_mixer/
Daemongar
Posts: 87
Joined: Thu May 14, 2020 1:34 pm

Re: Installing on Mandrake 9.2 SDL problem

Post by Daemongar »

Ok - another question please - when I copied over my Ultima files, they were all in caps.

I had to manually create an .exult.cfg file, (I copied and pasted from the Documentation) now the .exult.cfg can't find the files because of case is wrong.

Easy way to change the case of my data files in linux/mandrake?
wjp
Site Admin
Posts: 1708
Joined: Thu May 14, 2020 1:34 pm

Re: Installing on Mandrake 9.2 SDL problem

Post by wjp »

All caps isn't a problem. Exult automatically tries those as well, so I'm guessing you have a different problem. What symptoms/errors do you get?
artaxerxes
Site Admin
Posts: 1310
Joined: Thu May 14, 2020 1:34 pm

Re: Installing on Mandrake 9.2 SDL problem

Post by artaxerxes »

also, you really shouldn't use the SDL package from libsdl.org, given they are already prepared for your mandrake installation on the CDs.

remove all your SDL package and do instead:
# urpmi libSDL
and same thing for libSDL-dev

Artaxerxes
Daemongar
Posts: 87
Joined: Thu May 14, 2020 1:34 pm

Re: Installing on Mandrake 9.2 SDL problem

Post by Daemongar »

Symptoms: when I start the program from console I get:

Exult version 1.1.10rc2
Built at: May 12 2004 13:17:06
Compile-time options: USE_EXULTSTUDIO, HAVE_ZIP_SUPPORT
Compiler: gcc, version: 3.3.1 (Mandrake Linux 9.2 3.3.1-2mdk)

Platform: Linux version 2.4.22-10mdk
Exult path settings:
Data : data
Digital music : data/music

Music player: Internal cheapass forked midi player
Black Gate : not found (/usr/games/ultima/ULTIMA7/STATIC/endgame.dat)
exult_bg.flx : found
Serpent Isle : not found (/usr/games/ultima/SERPENT/STATIC/sispeech.spc)
exult_si.flx : found

But I can manually type cd /usr/games/ultima/serpent/static and verify that the files are there, same as for endgame.dat.
Daemongar
Posts: 87
Joined: Thu May 14, 2020 1:34 pm

Re: Installing on Mandrake 9.2 SDL problem

Post by Daemongar »

Will do, Artaxerxes
wjp
Site Admin
Posts: 1708
Joined: Thu May 14, 2020 1:34 pm

Re: Installing on Mandrake 9.2 SDL problem

Post by wjp »

What's the exact case of the full path of BG's endgame.dat on your system and what's the exact case of the BG path in your .exult.cfg?
Daemongar
Posts: 87
Joined: Thu May 14, 2020 1:34 pm

Re: Installing on Mandrake 9.2 SDL problem

Post by Daemongar »

The case is -

/usr/games/ultima/ULTIMA7/STATIC
/usr/games/ultima/SERPENT/STATIC

and all files in the directories are in upper case - happened when I copied them - was thinking this was the problem.
Daemongar
Posts: 87
Joined: Thu May 14, 2020 1:34 pm

Re: Installing on Mandrake 9.2 SDL problem

Post by Daemongar »

Ok - thanks everyone - I changed every instance in the cfg files to lower case - including moving ULTIMA7 to ultima7, SERPENT to serpent, STATIC to static.

Now after I see the intro for either, I get:

An exception occured:
Error opening file /usr/games/ultima/serpent/gamedat/npc.dat
errno: 2
Error Description: No such file or directory

I'm going to look for this one, I think I might be able to figure this out myself - we'll see!
Daemongar
Posts: 87
Joined: Thu May 14, 2020 1:34 pm

Re: Installing on Mandrake 9.2 SDL problem

Post by Daemongar »

OK - I have it now and understand why everything went wrong.

1. I installed it to a directory where only root can write
2. When running as root, root had it's own .exult.cfg file
3. When running, it had to create files in the gamedat folder which only root could create.
4. I should have looked at the default .exult.cfg's first...

What an eye opener! It's running now, and I *finally* understand the whys and wherefores of my errors. Whew.

Thanks everyone - tomorrow I'll try to get sound to work, but my SBlive! isn't making any sounds for anything at the moment, so I'm working on it...
Dominus
Site Admin
Posts: 5656
Joined: Thu May 14, 2020 1:34 pm

Re: Installing on Mandrake 9.2 SDL problem

Post by Dominus »

glad it works now for you.
--
Read the documentation and the FAQ! There is no excuse for not reading them! RTFM
Read the Rules!
We do not support Piracy/Abandonware/Warez!
Daemongar
Posts: 87
Joined: Thu May 14, 2020 1:34 pm

Re: Installing on Mandrake 9.2 SDL problem

Post by Daemongar »

Thanks!

Running great with sound (by default it's turned all the way down in Kmix for KDE (oy!)) Have the ogg digital music - very, very nice. Also moved the location of the Ultima7 & Serpent directories to my home directory and did a CHOWN so I could modify them and not run as root.

Pretty cool...
Locked