我试图使用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,我会得到同样的错误 - 就像指南建议的那样:
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?
谢谢!