I am working on application for iphone that needs Compression & Encryption(AES) so I went for ZipArchive Library I have Successfully Built the library using command make against the MAKEFILE by adding -m32 to Cflags as the following:
CFLAGS = -m32 -D _ZIP_SYSTEM_LINUX
then in the Terminal
make
that produced libzip.a
and that worked to the simulator but now I need to test the application on Device I tried adding
-arch armv6 also tried -arch arm
But both Did not work for the device, any help would be so much appreciated.
Thanks in Advance.
EDIT to be more specific here is a few lines from the makefile i use to build
CC=g++
CCC=cc
CCC=gcc
CFLAGS = -arch armv6 -D _ZIP_SYSTEM_LINUX
ifdef INTERNAL_BZIP2
CFLAGS += -D _ZIP_SYSTEM_LINUX
endif
ZIPARCHLIB = libziparch.a
And then using the terminal i write: make
which will output libziparch.a that i use in my iphone application