| Summary: | error while loading shared libraries: libSDL-1.2.so.0: wrong ELF class: ELFCLASS64 | ||
|---|---|---|---|
| Product: | sdl12-compat | Reporter: | spzakulec |
| Component: | everything | Assignee: | Ryan C. Gordon <icculus> |
| Status: | RESOLVED INVALID | QA Contact: | Sam Lantinga <slouken> |
| Severity: | normal | ||
| Priority: | P2 | ||
| Version: | unspecified | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
|
Description
spzakulec
2019-03-20 23:44:33 UTC
So what this is telling you is that libSDL-1.2.so.0 is a 64-bit library, but the game in question is 32-bit. Assuming you have a 32-bit SDL2 somewhere, which sdl12-compat will eventually try to load in this case, you can probably get a 32-bit libSDL-1.2.so.0 by adding "-m32" to your compile command line. (you might need some 32-bit compatibility packages installed, too, but hopefully this will Just Work when you use -m32.) Building a 32-bit SDL2 on a 64-bit system with all the desired features turns out to be more difficult, so the quickest solution is to grab the prebuilt version out of the Steam Runtime, which tends to be built with all the features in a distro-agnostic way. If you have Steam installed, this is sitting in $HOME/steam/ubuntu12_32/steam-runtime/i386/usr/lib/i386-linux-gnu, but I've put a copy here for convenience, too: https://icculus.org/~icculus/tmp/SDL2-x86-steam-runtime-03222019.tar.bz2 --ryan. |