You are not logged in.

#1 2010-05-09 14:29:10

martvefun
Member
From: The Internets
Registered: 2009-12-19
Posts: 180

gishdemo : library problem (sdl, openal) [solved]

Hi,

I want to test the demo of the game gish.
I downloaded the demo here and tried to execute it.

$ ./gish
./gish: error while loading shared libraries: libSDL-1.2.so.0: wrong ELF class: ELFCLASS64
$ ls -l /usr/lib/libSDL*
lrwxrwxrwx 1 root root     20 Oct 21  2009 /usr/lib/libSDL-1.2.so.0 -> libSDL-1.2.so.0.11.3
-rwxr-xr-x 1 root root 493546 Oct 21  2009 /usr/lib/libSDL-1.2.so.0.11.3
-rw-r--r-- 1 root root 807396 Oct 21  2009 /usr/lib/libSDL.a
lrwxrwxrwx 1 root root     25 Jan 23 11:11 /usr/lib/libSDL_image-1.2.so.0 -> libSDL_image-1.2.so.0.8.2
-rwxr-xr-x 1 root root  55471 Jan 23 11:11 /usr/lib/libSDL_image-1.2.so.0.8.2
-rw-r--r-- 1 root root  87574 Jan 23 11:11 /usr/lib/libSDL_image.a
lrwxrwxrwx 1 root root     25 Jan 23 11:11 /usr/lib/libSDL_image.so -> libSDL_image-1.2.so.0.8.2
-rw-r--r-- 1 root root    794 Oct 21  2009 /usr/lib/libSDLmain.a
lrwxrwxrwx 1 root root     20 Oct 21  2009 /usr/lib/libSDL.so -> libSDL-1.2.so.0.11.3

I installed the package sdl but no change

Thank you

Last edited by martvefun (2010-05-10 11:01:04)


English is not my native language, sorry for the mistakes
Arch amd64, GNOME, Thinkpad

Offline

#2 2010-05-09 14:41:09

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: gishdemo : library problem (sdl, openal) [solved]

Wrong ELF class errors mean that a program was looking for some library, in this case libSDL-1.2.so.0, and found it, but it is for the wrong architecture. The program wants the 32 bit version but only found the 64 bit version. Install lib32-sdl.

Offline

#3 2010-05-09 14:42:40

martvefun
Member
From: The Internets
Registered: 2009-12-19
Posts: 180

Re: gishdemo : library problem (sdl, openal) [solved]

thank you it works but now I've

error while loading shared libraries: libopenal.so.0: cannot open shared object file: No such file or directory

I guess lib32-openal

edit

$ ls -l /usr/lib/*openal*
lrwxrwxrwx 1 root root     14 Apr 11 14:35 /usr/lib/libopenal.so -> libopenal.so.1
lrwxrwxrwx 1 root root     21 Apr 11 14:35 /usr/lib/libopenal.so.1 -> libopenal.so.1.12.854
-rwxr-xr-x 1 root root 284046 Apr 11 14:35 /usr/lib/libopenal.so.1.12.854

I miss the libopenal.so.0
I read that doing symlink are not so good, so what should I do ?

Last edited by martvefun (2010-05-09 14:47:47)


English is not my native language, sorry for the mistakes
Arch amd64, GNOME, Thinkpad

Offline

#4 2010-05-09 15:26:09

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: gishdemo : library problem (sdl, openal) [solved]

symlinks for this kind of thing are bad. Also, lib32 libraries are in /opt and not in /usr.

Did you install lib32-openal?

Offline

#5 2010-05-09 16:11:35

martvefun
Member
From: The Internets
Registered: 2009-12-19
Posts: 180

Re: gishdemo : library problem (sdl, openal) [solved]

yes the one in /usr/lib was because I installed the package openal at first.

$ ls -l /opt/lib32/usr/lib/*openal*
lrwxrwxrwx 1 root root     14 Apr 11 14:33 /opt/lib32/usr/lib/libopenal.so -> libopenal.so.1
lrwxrwxrwx 1 root root     21 Apr 11 14:33 /opt/lib32/usr/lib/libopenal.so.1 -> libopenal.so.1.12.854
-rwxr-xr-x 1 root root 242805 Apr 11 14:33 /opt/lib32/usr/lib/libopenal.so.1.12.854

English is not my native language, sorry for the mistakes
Arch amd64, GNOME, Thinkpad

Offline

#6 2010-05-09 16:23:48

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: gishdemo : library problem (sdl, openal) [solved]

I don't know why lib32-openal isn't being seen. I don't use it, so I'm not going to investigate. You may want to try to export LD_LIBRARY_PATH to see that directory.

Offline

#7 2010-05-09 22:24:10

stqn
Member
Registered: 2010-03-19
Posts: 1,191
Website

Re: gishdemo : library problem (sdl, openal) [solved]

As I wrote in the humble indie bundle thread, I personnaly did symlink libopenal.so.0 to /usr/lib/libopenal.so, and the game worked fine then (Arch i686 here though.)

Offline

#8 2010-05-10 00:50:39

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: gishdemo : library problem (sdl, openal) [solved]

stqn wrote:

As I wrote in the humble indie bundle thread, I personnaly did symlink libopenal.so.0 to /usr/lib/libopenal.so, and the game worked fine then (Arch i686 here though.)

Yikes! I didn't notice that it was .so.0 before. A possibly more sane solution would be to track down an older version of openal and copy the correct library; Version bumps exist for a reason.

Offline

#9 2010-05-10 04:07:09

Artificial Intelligence
Member
From: Denmark
Registered: 2005-09-10
Posts: 53
Website

Re: gishdemo : library problem (sdl, openal) [solved]

A better solution (IMO) would be making a directory in gish demo calling eg. libs.  symblink the openal.so into it.
Then when you're done with the demo, no harm is done.

eg. gish demo in home directory;

mkdir -p ~/gish/libs
ln -s /opt/lib32/usr/lib/libopenal.so ~/gish/libs/libopenal.so.0

Launcher;

sh -c "cd ~/gish && LD_LIBRARY_PATH=libs ./gish"

| My Desktop | My Blog | My AUR Packages

Diversa ab illis virtute valemus

Offline

#10 2010-05-10 11:00:45

martvefun
Member
From: The Internets
Registered: 2009-12-19
Posts: 180

Re: gishdemo : library problem (sdl, openal) [solved]

yes it works thanks (nice game by the way)


English is not my native language, sorry for the mistakes
Arch amd64, GNOME, Thinkpad

Offline

Board footer

Powered by FluxBB