Build GMP for iOS

谁说我不能喝 提交于 2019-12-04 07:26:35

As suggested by rob, I will answer my question and accept the answer. I'm new to this, so if there is an easier way forgive me, this is how I managed do it.

To build GMP for iphone you must build three the library from the command line three times. Build for the armv6, armv7, and i386 architectures. To ensure no problems in xcode make sure you add -DNO_ASM to CPPFLAGS. Once you have the three .a files, lipo them together into one library.

You can now add the library you created with lipo into xcode and include the headers, you now have GMP working for iphone development.

I hope this helps. I spent a couple days trying to figure this out.

You may be inspired by this bash script for OpenSSL and adapt it for GMP. It uses the standard configure script and substitutes CC and CFLAGS using perl.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!