我下载的是最新版本
pnglibconf.h文件。找到这个scripts/pnglibconf.h.prebuilt文件,重命名为pnglibconf.h放到根目录即可。
Android.mk
LOCAL_PATH :=$(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE :=png
LOCAL_SRC_FILES := pngget.c \
pngread.c \
pngrutil.c \
pngtrans.c \
pngwtran.c \
png.c \
pngmem.c \
pngrio.c \
pngset.c \
pngwio.c \
pngwutil.c \
pngerror.c \
pngpread.c \
pngrtran.c \
pngwrite.c \
arm/arm_init.c \
arm/filter_neon.S \
arm/filter_neon_intrinsics.c \
arm/palette_neon_intrinsics.c
LOCAL_LDLIBS += -lz
include $(BUILD_SHARED_LIBRARY)