【问题标题】:Problems Building MPFR using iOS SDK 8.3使用 iOS SDK 8.3 构建 MPFR 的问题
【发布时间】:2015-05-02 03:12:11
【问题描述】:

我在为 iOS、armv7s 架构构建 MPFR 时遇到问题。我在成功构建 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 

但是,我的配置给了我错误

找不到 libgmp 或使用不同的 ABI。

我用与上面相同的配置设置构建了 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/lib

分别,但我得到同样的错误。

有什么想法吗?

【问题讨论】:

    标签: ios build arm configure mpfr


    【解决方案1】:

    好吧,我觉得累了,我正在使用 x86_64 版本的 GMP 来尝试编译 armv7 mpfr。我今天重试了,一切正常。确保将 gmp 标头和 libgmp.a 文件移动到问题中提到的 iOS sdk 目录,否则在配置时会出现错误。除此之外,它应该可以工作。

    【讨论】:

      猜你喜欢
      • 2022-07-15
      • 1970-01-01
      • 1970-01-01
      • 2014-06-10
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-09-01
      相关资源
      最近更新 更多