0

我正在尝试使用 Xcode 7.3.1 为 iOS(arch arm64)构建 Botan-1.10.12。我尝试遵循 Botan 网站上的指南:https ://github.com/randombit/botan/blob/master/doc/manual/building.rst#for-ios-using-xcode

通过一些更改,我设法为 armv7 构建了以下内容:

./configure.py --prefix="armv7" --cpu=armv7 --with-zlib --cc=clang --cc-bin="clang++ -arch armv7"
sudo xcrun --sdk iphoneos make install

但是当我尝试对 arm64 做同样的事情时:

./configure.py --prefix="arm64" --cpu=arm64 --with-zlib --cc=clang --cc-bin="clang++ -arch arm64"

我收到以下错误:

ERROR: Unknown or unidentifiable processor "arm64"

如果我尝试将 arm64 更改为 armv8-a,就像指南建议的那样,我会得到同样的错误:

ERROR: Unknown or unidentifiable processor "armv8-a"

我也尝试过使用--cpu=arm:

configure.py --prefix="arm64" --cpu=arm --with-zlib --cc=clang --cc-bin="clang++ -arch arm64"

这适用于配置步骤,但是当我运行时sudo xcrun --sdk iphoneos make install,我收到以下错误:

In file included from src/asn1/asn1_alt.cpp:16:
In file included from build/include/botan/loadstor.h:13:
build/include/botan/bswap.h:58:11: error: unknown register name 'r3' in asm
    : "r3", "cc");
      ^
1 error generated.
make: *** [build/lib/asn1_asn1_alt.o] Error 1

我对为 iOS 构建东西不太熟悉。如何为 arm64 iOS 构建 Botan?
谢谢!

4

0 回答 0