views:

33

answers:

1

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

A: 

Generally you should configure library for arm support using -arch=armv7 or -arch=armv6 switches. If you could post which library you are trying to compile I might be able to provide more specific help.

Bolek Tekielski
Thanks Bolek for your answer i am trying to compile ZipArchive Library which i installed from artpol-software.com/ZipArchive i use make file command in the Terminal, and i have modified the CFLags inside the makefile that is included with source code, i hope you can help me if you need more specific information i am able to post you anything.
Ahmad Kayyali