1:到zlib官网上下载zlib,本文下载的是1.2.8的版本. 2:进行./configure,然后make. 3:进入zlib库中的contrib/minizip/路径下make,生成的minizip是进行压缩,miniunz是进行解压zip文件. 下面讲解一下miniunz.c中的代码: /* miniunz.c Version 1.1, February 14h, 2010 sample part of the MiniZip project - ( http://www.winimag…