cxong / cdogs-sdl

Classic overhead run-and-gun game
https://cxong.github.io/cdogs-sdl/
GNU General Public License v2.0
868 stars 115 forks source link

Problem running itch.io version on Ubuntu 22.04 #841

Closed pwiecz closed 4 months ago

pwiecz commented 4 months ago

I wanted badly to play the good old Cyberdogs on CDogs engine, but running the itch version did not work for me. I'm not sure if it's the correct place to report an issue with the itch.io version, but it seems to have been built with a perhaps a newer version of libsdl2_mixer than the one provide in the current LTS release of Ubuntu (which is 2.0.4) When I try running it it complains with error: ./cdogs-sdl: undefined symbol: Mix_PlayChannel I've managed to build it from sources on my machine, though. Btw, I've had to create custom FindSDL2_image.cmake and FindSDL2_mixer.cmake files, as they did not seem to be provided with SDL2.

Thanks for all the fun!

cxong commented 4 months ago

Thanks for the info, I think the linux binary is not the best way to play on linux due to all the different distros and packaging systems. C-Dogs SDL is available on debian and a few other places so installing it from a package manager would be the way to go instead of itch.

FYI the build system uses homebrew to get the latest SDL libraries - the ones available in LTS releases are often old and sometimes we want to take advantage of new SDL features: https://github.com/cxong/cdogs-sdl/blob/master/.github/workflows/cmake.yml#L66