./golly: error while loading shared libraries: libpng12.so.0: cannot open shared object file: No such file or directory
./golly: /usr/lib/x86_64-linux-gnu/libpng12.so.0: version `PNG12_0' not found (required by ./golly)
Debian 10 Buster: libpng12 not available, only 16
could libpng.so be used in code as a generic?
I assume you're using the Linux binary distribution of golly?
If so, I'd suggest trying either installing the official golly Debian package (https://packages.debian.org/buster/golly, though version 3.2 is somewhat out of date), or building the latest version from source (instructions are in docs/Build.html).