Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Hi again. I've got sound!

Similar issue to libstdc++ I think. LD_PRELOAD=/usr/lib/libSDL.so ./Skeletris works. Can you make a build with the same trick you used for libstdc++ and apply it to libSDL?

Oh nice! That's quite interesting. SDL is essentially the core dependency of pygame - so I don't think it's a good idea to swap it out for a different version on the fly like that. It could cause pygame to crash in bizarre ways at runtime if it ever tries to call a method or something that differs between the two versions.

And actually now that I'm reading the pygame wiki, it's become apparent that there are different pygame packages for the different families of linux distros... which is probably why nothing is working correctly... so that's my bad.

In terms of what to do next... I don't think there actually is a legitimate way for me to build the game on my machine (Mint) in a way that will run correctly on Arch. Even beyond libSDL and libstdc++ I don't think it's safe to assume that any of the dependencies will be 100% compatible.

If you want a real, totally functional build, you'd probably need to download the source code, install the Arch versions of all the dependencies, and build it yourself. I'm thinking this is probably more trouble than it's worth though. The game is about an hour long, after all haha.

And thanks for your dedication! You've gone way above and beyond what I'd expect from a player to help me fix this and I've learned a lot about Linux + pygame distribution in the meantime so I really appreciate it. On my next game I promise I will try to find an Arch machine that I can use to distribute it properly!

Thanks for the prompt reply. I've also learned a lot of things along this little debugging journey we took :) I completely understand that we should probably stop here. Using LD_PRELOAD is good enough for my usecase and other Arch users will probably find this thread.

Regarding compatibility for future game projects: feel free to hit me up if you need testing on an Arch machine :)

Awesome, thanks! I may take you up on that offer :)