尝试在 Cygwin 下编译 Android 树中的 Skia

发布于 2024-11-27 19:17:33 字数 1143 浏览 1 评论 0原文

我尝试在 Cygwin 下的 Android 树中编译 Skia,但收到以下错误消息:

<pre>
PLATFORM_VERSION_CODENAME=AOSP </br>
PLATFORM_VERSION=3.1.4.1.5.9.2.6.5
TARGET_PRODUCT=full
TARGET_BUILD_VARIANT=eng
TARGET_SIMULATOR=
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a
HOST_ARCH=x86
HOST_OS=windows
HOST_BUILD_TYPE=release
BUILD_ID=OPENMASTER
============================================
make: Entering directory `/cygdrive/c/Users/mycpu/Android/androidsrc'
target asm: libskia 〈= external/skia/src/opts/memset.arm.S
cc1: error: unrecognized command line option "-mfloat-abi=softfp"
cc1: error: unrecognized command line option "-mfpu=vfpv3-d16"
cc1: error: unrecognized command line option "-mthumb-interwork"
cc1: error: unrecognized command line option "-Wno-psabi"
cc1: warning: -fpic ignored for target (all code is position independent)
cc1: error: bad value (armv7-a) for -march= switch
cc1: error: bad value (armv7-a) for -mtune= switch
make: *** [out/target/product/generic/obj/SHARED_LIBRARIES/libskia_intermediates
/src/opts/memset.arm.o] Error 1

是因为GCC不支持ARMv7-A吗?

I'm trying to compile Skia in Android tree under Cygwin, but I get these error messages:

<pre>
PLATFORM_VERSION_CODENAME=AOSP </br>
PLATFORM_VERSION=3.1.4.1.5.9.2.6.5
TARGET_PRODUCT=full
TARGET_BUILD_VARIANT=eng
TARGET_SIMULATOR=
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a
HOST_ARCH=x86
HOST_OS=windows
HOST_BUILD_TYPE=release
BUILD_ID=OPENMASTER
============================================
make: Entering directory `/cygdrive/c/Users/mycpu/Android/androidsrc'
target asm: libskia 〈= external/skia/src/opts/memset.arm.S
cc1: error: unrecognized command line option "-mfloat-abi=softfp"
cc1: error: unrecognized command line option "-mfpu=vfpv3-d16"
cc1: error: unrecognized command line option "-mthumb-interwork"
cc1: error: unrecognized command line option "-Wno-psabi"
cc1: warning: -fpic ignored for target (all code is position independent)
cc1: error: bad value (armv7-a) for -march= switch
cc1: error: bad value (armv7-a) for -mtune= switch
make: *** [out/target/product/generic/obj/SHARED_LIBRARIES/libskia_intermediates
/src/opts/memset.arm.o] Error 1

Is it because GCC doesn't support ARMv7-A?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文