🤑 Indie game store🙌 Free games😂 Fun games😨 Horror games
👷 Game development🎨 Assets📚 Comics
🎉 Sales🎁 Bundles

Slayer Shock

Assemble a team, hunt the vampires, and save your hometown! · By Minor Key Games

Unable to launch game under Linux

A topic by Rohit created Sep 01, 2016 Views: 428 Replies: 5
Viewing posts 1 to 6
Using Manjaro Linux. When running the executable:

./Vamp: error while loading shared libraries: ./libSDL2-2.0.so.0: file too short

Removing the included SDL2 libraries allowed me to run the game using my system libraries.

(1 edit)

Upon further troubleshooting, it seems the issue is with the symlinked SDL2 libraries included. Deleting them and making my own link with the included library worked. I wonder if the symlinks were not properly preserved in the zip file.

Developer (1 edit)

Thanks for the report and solution! I'll see if I can repackage it so the symlinks work as intended.

Edit: Okay, I've renamed the shared library and removed the bad symlinks. I don't know if that's a proper solution, but ~~it works on my machine~~. If this causes more problems, I'll revisit it.

Thanks, the issue seems fixed in the newest zip. Running ldd on ./Vamp shows the supplied SDL2 library is being preferred first.

I have one other issue/question. Where did you get your SDL2 shared lib from? It seems to be causing an issue that renders my monitor unusable when the game enters fullscreen. Using my system-provided SDL2 allows fullscreen to work.

I remember running into this issue with my own game when I compiled SDL2 myself without having some X11 libraries installed.

If you're not already doing this, you should probably be getting the SDL2 library from the Steam Runtime, which is what that the SDL wiki also recommends ("known good", it's called).


Ah, thanks, I wasn't aware of that recommendation! The .so that's in there now is one I compiled myself, and is probably older than the Steam RT one.

Same mistake I made a while ago. :)

The ./configure script for SDL2 should show what libraries/features are compiled into SDL2 at the end. I believe I had missed some important X11/OpenGL packages. Instead of failing, the build produced a flawed SDL2 shared library without all targets built in.

I really recommend getting the library from the Steam Runtime, but if you'd rather build yourself, see the dependencies here: