Author Topic: Gish crashes in Linux  (Read 6260 times)

Chronic Logic - Josiah

  • Administrator
  • Hero Member
  • *****
  • Posts: 977
    • View Profile
Gish crashes in Linux
« on: November 20, 2006, 12:09:05 PM »
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 SDL, OpenAL and Ogg Vorbis installed for Linux

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





Chronic Logic - Josiah

  • Administrator
  • Hero Member
  • *****
  • Posts: 977
    • View Profile
Gish crashes in Linux
« Reply #1 on: November 20, 2006, 12:12:41 PM »
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

  • Administrator
  • Hero Member
  • *****
  • Posts: 977
    • View Profile
Gish crashes in Linux
« Reply #2 on: November 20, 2006, 12:14:36 PM »
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 :creates ~/.openalrc
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

  • Administrator
  • Hero Member
  • *****
  • Posts: 977
    • View Profile
Gish crashes in Linux
« Reply #3 on: November 20, 2006, 12:27:26 PM »
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

  • Administrator
  • Hero Member
  • *****
  • Posts: 977
    • View Profile
Gish crashes in Linux
« Reply #4 on: December 11, 2007, 11:41:47 AM »
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.