You are not logged in.
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.3I 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
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
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 directoryI 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.854I 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
symlinks for this kind of thing are bad. Also, lib32 libraries are in /opt and not in /usr.
Did you install lib32-openal?
Offline
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.854English is not my native language, sorry for the mistakes
Arch amd64, GNOME, Thinkpad
Offline
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
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
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
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.0Launcher;
sh -c "cd ~/gish && LD_LIBRARY_PATH=libs ./gish"Offline
yes it works thanks (nice game by the way)
English is not my native language, sorry for the mistakes
Arch amd64, GNOME, Thinkpad
Offline