简体   繁体   English

使用iOS SDK 8.3构建MPFR时出现问题

[英]Problems Building MPFR using iOS SDK 8.3

I am having trouble building MPFR for iOS, armv7s architecture. 我在为iOS,armv7s体系结构构建MPFR时遇到问题。 I am using this command after successfully building GMP, 成功建立GMP后,我正在使用此命令,

./configure CC=clang CPP="/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -E" CPPFLAGS="-isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.3.sdk/ -miphoneos-version-min=8.0 -arch armv7s -target arm-apple-darwin" --host=aarch64-apple-darwin --disable-assembly --enable-static --disable-shared 

However, I configure is giving me the error 但是,我配置给我错误

libgmp not found or uses a different ABI. 找不到libgmp或使用其他ABI。

I built GMP with the same configure settings as above, then make, make install, etc. After this, I copied the gmp.h file and libgmp.la file to 我使用与上面相同的配置设置来构建GMP,然后进行make,make install等。此后,我将gmp.h文件和libgmp.la文件复制到

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.3.sdk/usr/include/ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.3.sdk/usr/include/

and

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.3.sdk/usr/lib /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.3.sdk/usr/lib

respectively, but I get the same error. 分别,但我得到相同的错误。

Any ideas? 有任何想法吗?

Okay, I think being tired got to me, and I was using an x86_64 version of GMP to try to compile the armv7 mpfr. 好的,我觉得很累,我正在使用x86_64版本的GMP尝试编译armv7 mpfr。 I retried today, and everything worked. 我今天重试了,一切正常。 Make sure to move the gmp header and the libgmp.a file to the iOS sdk directories as mentioned in the question, else you will get an error at configure time. 确保将gmp标头和libgmp.a文件移动到问题中提到的iOS sdk目录中,否则在配置时会出现错误。 Other than that, it should work. 除此之外,它应该工作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM