Hello, I am a newbie trying to snap some old games (note: it seems almost impossible with 32 bits games).
When I launch snapcraft on different snaps I get the error message in the title about ‘libpng12’. I tried differents core versions (24, 22, 20) without more success.
Why Snapcraft 8 is not using a more recent libpng version ? (I have libpng 1.6 on my Kubuntu 22.04).
Or should I use a older computer with Ubuntu 18.04 to make the snap ?
% ls /snap/core2?/current/**/libpng16.so.16.*
/snap/core22/current/usr/lib/x86_64-linux-gnu/libpng16.so.16.37.0
/snap/core24/current/usr/lib/x86_64-linux-gnu/libpng16.so.16.43.0
trying to snap some old games … I get the error message in the title about ‘libpng12’
libpng12 can be required by their (old games) build system, not?
Why Snapcraft 8 is not using a more recent libpng version?
It is rather the opposite: The game you’re packaging depends on an ancient libpng library version(1.2) that the Ubuntu software archive no longer ships.
Snapcraft uses whatever packages the software archive of the Ubuntu release your targeting base snap based on(core20 → 20.04, core22 → 22.04, etc.) provides. If a library is not available you need to either:
Switch to an older/newer base that provides it.
Provide them yourself by building them from their source code.
Provide them via a third-party package source that is compatible with the base that you’re targeting.
Request the upstream(the game developers) to port their game against the newer library.