cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: How to compile on ios XCode 5/iOS 7

From: Jeffrey Walton <noloader_at_gmail.com>
Date: Thu, 10 Oct 2013 10:10:05 -0400

If you are doing it from the command line:

. ./setenv-ios.sh

export CPP="cpp"
export CC="clang -arch armv7 -arch armv7s --sysroot=$IOS_SYSROOT"
export CXX="clang++ -arch armv7 -arch armv7s s--sysroot=$IOS_SYSROOT"

 ./configure --host=x86_64-darwin --host=arm --with-sysroot=$IOS_SYSROOT ...

*If* you want to build for ARM64, you will likely need to add
-mios-version-min=7.0. OpenSSL did not need it when compiling under
Clang, while Crypto++ and libevent, and libcurl did.

On Thu, Oct 10, 2013 at 9:03 AM, Mario Damico-ITA
<Mario.Damico_at_jeppesen.com> wrote:
> With the new XCode 5 the llmv-gcc-4.2 complier was removed and I’m unable
> to compile the Curl 7.28.1 under iOS
>
> Someone has a script to accomplish that?
>
> I tried to use clang but without success.
>
>
>
>
> -------------------------------------------------------------------
> List admin: http://cool.haxx.se/list/listinfo/curl-library
> Etiquette: http://curl.haxx.se/mail/etiquette.html

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2013-10-10