Libzip, download, compile,
Compile the command line as follows:
./Configure cflags = "-arch i386"
. /Configure -- prefix =/usr/local/iPhone -- Host = arm-apple-Darwin -- enable-static = yes -- enable-shared = no cc =/developer/platforms/iphoneos. platform/developer/usr/bin/gcc-4.2 cflags = "-arch armv6-pipe-mdynamic-no-pic-STD = c99-wno-trigraphs-fpascal-strings-O2
-Wreturn-type-wunused-variable-fmessage-length = 0-fvisibility = hidden-miphoneos-version-min = 4.2-I/developer/platforms/iphoneos. platform/developer/sdks/iphoneos4.2.sdk/usr/include/libxml2-isysroot/developer/platforms/iphoneos. platform/developer/sdks/iphoneos4.2.sdk"
CPP =/developer/platforms/iphoneos. platform/developer/usr/bin/cpp ar =/developer/platforms/iphoneos. platform/developer/usr/bin/AR ldflags = "-arch armv6-isysroot/developer/platforms/iphoneos. platform/developer/sdks/iphoneos4.2.sdk-miphoneos-version-min = 4.2"
. /Configure -- prefix =/usr/local/iPhone -- Host = arm-apple-Darwin -- enable-static = yes -- enable-shared = no cc =/developer/platforms/iphoneos. platform/developer/usr/bin/gcc-4.2 cflags = "-arch armv7-pipe-mdynamic-no-pic-STD = c99-wno-trigraphs-fpascal-strings-O2
-Wreturn-type-wunused-variable-fmessage-length = 0-fvisibility = hidden-miphoneos-version-min = 4.2-I/developer/platforms/iphoneos. platform/developer/sdks/iphoneos4.2.sdk/usr/include/libxml2-isysroot/developer/platforms/iphoneos. platform/developer/sdks/iphoneos4.2.sdk"
CPP =/developer/platforms/iphoneos. platform/developer/usr/bin/cpp ar =/developer/platforms/iphoneos. platform/developer/usr/bin/AR ldflags = "-arch armv7-isysroot/developer/platforms/iphoneos. platform/developer/sdks/iphoneos4.2.sdk-miphoneos-version-min = 4.2"
Generate the libzip. A file and reference it in the project.
However, during project compilation, the following message is always displayed:
"_ Zerror", referenced from:
"_ Inflateinit2 _", referenced from:
"_ Get_crc_table", referenced from:
"_ CRC32", referenced from:
Ld: symbol (s) not found
Libz. dlib must be added to the project.
It can be used smoothly.
Despise csdn and the plaintext storage password!