News:

Zatikon is back and free to play! https://www.chroniclogic.com/zatikon.htm

Main Menu

Gish crashes in Linux

Started by Chronic Logic - Josiah, November 20, 2006, 06:09:05 PM

Previous topic - Next topic

Chronic Logic - Josiah

Here are some ways to solve problems with getting Gish working in Linux.

First make sure you are running Gish in the terminal from the directory it is installed in.

Second make sure X is running in 24 or 32 bit color.

Third make sure that you have http://www.libsdl.org" target="_blank">SDL, http://www.openal.org" target="_blank">OpenAL and http://www.vorbis.com" target="_blank">Ogg Vorbis installed for Linux

If anyone else has fixes for questions for crashes post them here.





Chronic Logic - Josiah

If you are getting a undefined symbol: alutInit try this:

Running 'ldd' on 'gish' should tell you what libs it is looking for.

You can preload a lib like this:

LD_PRELOAD=/usr/lib/libalut.so.0 ./gish

Someone reported having to kill "ESD" before the LD_PRELOAD would work.

rkline reported that to get gish to work on Linux for OpenAL 0.0.8 or newer, you have to install freealut.

Also if you run Gish with the sound turned off it should work, although it is not a fix for that problem.

./gish -nosound -nomusic

remember if you do this you need to turn the sound and music back on with:

./gish -sound -music





Chronic Logic - Josiah

Here is another fix from Matteo Azzali:

try the command:
LD_PRELOAD=/usr/lib/libalut.so:/usr/lib/libopenal.so:/usr/lib/libogg.so:/usr/lib/libvorbis.so ./gish -sound

or just try:
./gish -nomusic -nosound

if it works with nosound, then you're still missing something.

edit ~/.openalrc
and put inside:
Code:

(define alsa-device "default")
(define devices '(alsa native))

In this way the sound works 100% for me (I don't use dmix) with the LD_PRELOAD..... command line above.

if you're using dmix, in the first line use "plughw:0,0" or "plughw:0", or you can for example
try also "default:0" if you're not using dmix.

if you're not using alsa, skip first line and put (esd native) in second , for esd, or (arts native) for arts.

You can also use my scripts:
http://digilander.libero.it/Mattepiu/others/openalconf.sh" target="_blank">http://digilander.libero.it/Mattepiu/others/openalconf.sh :creates ~/.openalrc
http://digilander.libero.it/Mattepiu/others/gishconf.sh" target="_blank">http://digilander.libero.it/Mattepiu/others/gishconf.sh : creates ./gishsound.sh (and calls openalconf.sh if needed)

Put them in gish directory, then run "sh gishconf.sh" ,
follow the instructions, and then try ./gishsound.sh to start gish.

Chronic Logic - Josiah

Here are the files that Gish is looking for:

libopenal.so.0.0.7
libvorbis.so.0.3.0
libogg.so.0.5.0

If needed I can post a link to them.

Chronic Logic - Josiah

You can also use a symbolic link if you don't have the exact file installed that Gish is looking for (change the files to match your system files):

ln -s /usr/lib/libalut.so.0.1.0 /usr/lib/libalut.so.0

We are working on a patch for Gish which will remove the alut requirement and should solve this problem.