当前位置: 代码迷 >> Android >> NDK停的two-libs例子与zlib,libpng一起编译时出现连接不成功
  详细解决方案

NDK停的two-libs例子与zlib,libpng一起编译时出现连接不成功

热度:77   发布时间:2016-05-01 10:17:46.0
NDK下的two-libs例子与zlib,libpng一起编译时出现连接不成功
哪位高手能帮帮我
[email protected] /cygdrive/e/android-ndk-r2-windows-crystax-1/andro
id-ndk-r2-crystax
$ make APP=two-libs
Android NDK: Building for application 'two-libs'
Compile arm    : zlib <= apps/two-libs/project/jni/libpng/png.c
SharedLibrary  : libzlib.so
out/apps/two-libs//objs/zlib/png.o: In function `png_reset_zstream':
apps/two-libs/project/jni/libpng/png.c:806: undefined reference to `inflateReset
'
out/apps/two-libs//objs/zlib/png.o: In function `png_calculate_crc':
apps/two-libs/project/jni/libpng/png.c:240: undefined reference to `crc32'
out/apps/two-libs//objs/zlib/png.o: In function `png_reset_crc':
apps/two-libs/project/jni/libpng/png.c:214: undefined reference to `crc32'
out/apps/two-libs//objs/zlib/pngpread.o: In function `png_process_IDAT_data':
apps/two-libs/project/jni/libpng/pngpread.c:874: undefined reference to `inflate
'
out/apps/two-libs//objs/zlib/pngpread.o: In function `png_push_read_zTXt':
apps/two-libs/project/jni/libpng/pngpread.c:1405: undefined reference to `inflat
e'
apps/two-libs/project/jni/libpng/pngpread.c:1408: undefined reference to `inflat
eReset'
apps/two-libs/project/jni/libpng/pngpread.c:1466: undefined reference to `inflat
eReset'
apps/two-libs/project/jni/libpng/pngpread.c:1466: undefined reference to `inflat
eReset'
apps/two-libs/project/jni/libpng/pngpread.c:1466: undefined reference to `inflat
eReset'
apps/two-libs/project/jni/libpng/pngpread.c:1466: undefined reference to `inflat
eReset'
out/apps/two-libs//objs/zlib/pngread.o: In function `png_read_destroy':
apps/two-libs/project/jni/libpng/pngread.c:1480: undefined reference to `inflate
End'
out/apps/two-libs//objs/zlib/pngread.o: In function `png_destroy_read_struct':
apps/two-libs/project/jni/libpng/pngread.c:1350: undefined reference to `inflate
End'
out/apps/two-libs//objs/zlib/pngread.o: In function `png_configure_decoder':
apps/two-libs/project/jni/libpng/pngread.c:958: undefined reference to `inflateE
nd'
apps/two-libs/project/jni/libpng/pngread.c:959: undefined reference to `inflateC
opy'
out/apps/two-libs//objs/zlib/pngread.o: In function `png_read_row':
apps/two-libs/project/jni/libpng/pngread.c:769: undefined reference to `inflate'

apps/two-libs/project/jni/libpng/pngread.c:769: undefined reference to `inflate'
  相关解决方案