我建立如下:
../configure --with-ios-target=iphoneos --with-ios-version=11.0 --with-ios-min-version=8.0 --with-arch=arm64 --disable-shared-js
并收到以下错误:
checking whether the chosen combination of compiler flags (-march=arm64) works... configure: error: no
------ config.log ------
#include "confdefs.h"
int main() {
XtMalloc()
; return 0; }
configure:6418: /usr/bin/clang -c -march=arm64 conftest.c 1>&5
error: unknown target CPU 'arm64'
configure: failed program was:
#line 6411 "configure"
#include "confdefs.h"
int main() {
return sizeof(__thumb2__);
; return 0; }
configure:6527: checking whether the chosen combination of compiler flags (-march=arm64) works
configure:6536: /usr/bin/clang -c -march=arm64 conftest.c 1>&5
error: unknown target CPU 'arm64'
configure: failed program was:
#line 6529 "configure"
#include "confdefs.h"
int main() {
return 0;
; return 0; }
configure: error: no
march
的方法是什么?即使我使用--with-target=i386
运行,也会收到相同的错误。
我该怎么办?