Adding PSyton to the comment, here's how we solved it. Compile arm/*.c files. However, this only works for Android. For iOS, we also had to create a new pnglibconf.h with entries:
#undef PNG_ARM_NEON_API_SUPPORTED #undef PNG_ARM_NEON_CHECK_SUPPORTED #define PNG_ARM_NEON_OPT 0
Looking at ARM defines in libpng, it looks like they are currently a bit buggy, since PNG_ARM_NEON_API_SUPPORTED should be enough to disable NEON compilation.
source share