building gmp for ios on Mac

Laurent Desnogues laurent.desnogues at gmail.com
Wed Mar 25 10:37:23 UTC 2020


On Tue, Mar 24, 2020 at 10:00 PM gildas A <gildas2526 at gmail.com> wrote:
>
>  <gmp-discuss at gmplib.org>Hello
>
> i am trying to build gmp for ios13 but got some errors
>
> May anyone guide me please ?

Did you try this?

https://stackoverflow.com/questions/25844602/gmp-library-for-ios/60068738#60068738

Note I did not try as I don't have any machine to make iOS development.

Good luck,

Laurent

> thank you for help
>
> i tried this
>
>
> ./configure CC="$ios/usr/bin/clang" CPP="$ios/usr/bin/clang -E"
> CPPFLAGS="-target arm64-apple-darwin -isysroot
> $ios/Developer/SDKs/iPhoneOS13.2.sdk/  -miphoneos-version-min=10  --host
> aarch64-apple-darwin "
>
> and tried this
>
> ./configure CC=$ios/usr/bin/clang CFLAGS=-isysroot
> $ios/Developer/SDKs/iPhoneOS13.2.sdk/ -Wno-error
> -Wno-implicit-function-declaration -miphoneos-version-min=10  -arch
> aarch64-apple-ios --host=aarch64-apple-darwin --disable-assembly
> --enable-static --disable-shared
>
>
>
> and i get the following errors
>
> clang: error: unsupported option '--host=aarch64-apple-darwin'
> clang: error: invalid arch name '-arch aarch64-apple-ios'
> _______________________________________________
> gmp-discuss mailing list
> gmp-discuss at gmplib.org
> https://gmplib.org/mailman/listinfo/gmp-discuss


More information about the gmp-discuss mailing list